struct ApproximateByteSet(u64);
Expand description
A bitset used to track whether a particular byte exists in a needle or not.
Namely, bit ‘i’ is set if and only if byte%64==i for any byte in the needle. If a particular byte in the haystack is NOT in this set, then one can conclude that it is also not in the needle, and thus, one can advance in the haystack by needle.len() bytes.
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
source§impl Clone for ApproximateByteSet
impl Clone for ApproximateByteSet
source§fn clone(&self) -> ApproximateByteSet
fn clone(&self) -> ApproximateByteSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApproximateByteSet
impl Debug for ApproximateByteSet
impl Copy for ApproximateByteSet
Auto Trait Implementations§
impl Freeze for ApproximateByteSet
impl RefUnwindSafe for ApproximateByteSet
impl Send for ApproximateByteSet
impl Sync for ApproximateByteSet
impl Unpin for ApproximateByteSet
impl UnwindSafe for ApproximateByteSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more