pub struct BuzHashIncr<H: BuzHashHash> { /* private fields */ }Expand description
Self-contained buzhash which buffers it’s window of values internally
Note that this will be less efficient than using BuzHash on a slice directly,
but may be more convenient.
Trait Implementations§
Source§impl<H: BuzHashHash> ChunkIncr for BuzHashIncr<H>
impl<H: BuzHashHash> ChunkIncr for BuzHashIncr<H>
Source§fn push(&mut self, data: &[u8]) -> Option<usize>
fn push(&mut self, data: &[u8]) -> Option<usize>
Return the index in data immeidately following the hash matching.
Note that you can call this multiple times to examine “subsequent” data slices, but the
index returned will always refer to the current data slice.
Source§fn iter_slices<'a>(self, data: &'a [u8]) -> IterSlices<'a, Self> ⓘwhere
Self: Sized,
fn iter_slices<'a>(self, data: &'a [u8]) -> IterSlices<'a, Self> ⓘwhere
Self: Sized,
Source§fn iter_slices_strict<'a>(self, data: &'a [u8]) -> IterSlicesStrict<'a, Self> ⓘwhere
Self: Sized,
fn iter_slices_strict<'a>(self, data: &'a [u8]) -> IterSlicesStrict<'a, Self> ⓘwhere
Self: Sized,
Given a
ChunkIncr and a single slice, return a list of slices chunked by the chunker.
Does not return the remainder (if any) in the iteration. Use [IterSlices::take_rem()] or
IterSlices::into_parts() to get the remainder. Read moreSource§impl<H: Clone + BuzHashHash> Clone for BuzHashIncr<H>
impl<H: Clone + BuzHashHash> Clone for BuzHashIncr<H>
Source§fn clone(&self) -> BuzHashIncr<H>
fn clone(&self) -> BuzHashIncr<H>
Returns a duplicate 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<H: Debug + BuzHashHash> Debug for BuzHashIncr<H>
impl<H: Debug + BuzHashHash> Debug for BuzHashIncr<H>
Source§impl<H: BuzHashHash + Clone> From<&BuzHash<H>> for BuzHashIncr<H>
impl<H: BuzHashHash + Clone> From<&BuzHash<H>> for BuzHashIncr<H>
Source§impl<H: BuzHashHash> From<BuzHash<H>> for BuzHashIncr<H>
impl<H: BuzHashHash> From<BuzHash<H>> for BuzHashIncr<H>
Source§impl<H: PartialEq + BuzHashHash> PartialEq for BuzHashIncr<H>
impl<H: PartialEq + BuzHashHash> PartialEq for BuzHashIncr<H>
impl<H: Eq + BuzHashHash> Eq for BuzHashIncr<H>
impl<H: BuzHashHash> StructuralPartialEq for BuzHashIncr<H>
Auto Trait Implementations§
impl<H> Freeze for BuzHashIncr<H>where
H: Freeze,
impl<H> RefUnwindSafe for BuzHashIncr<H>where
H: RefUnwindSafe,
impl<H> Send for BuzHashIncr<H>where
H: Send,
impl<H> Sync for BuzHashIncr<H>where
H: Sync,
impl<H> Unpin for BuzHashIncr<H>where
H: Unpin,
impl<H> UnsafeUnpin for BuzHashIncr<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for BuzHashIncr<H>where
H: UnwindSafe,
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