pub struct FastCdcIncr<'a> { /* private fields */ }
Expand description
FastCdcIncr provides an incrimental interface to FastCdc
This impl does not buffer data passing through it (the FastCDC algorithm does not require look-back) making it very efficient.
Trait Implementations§
Source§impl<'a> ChunkIncr for FastCdcIncr<'a>
impl<'a> ChunkIncr for FastCdcIncr<'a>
Source§fn push(&mut self, src: &[u8]) -> Option<usize>
fn push(&mut self, src: &[u8]) -> Option<usize>
The data “contained” within a implimentor of this trait is the history of all data slices
passed to feed. Read more
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<'a> Clone for FastCdcIncr<'a>
impl<'a> Clone for FastCdcIncr<'a>
Source§fn clone(&self) -> FastCdcIncr<'a>
fn clone(&self) -> FastCdcIncr<'a>
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<'a> Debug for FastCdcIncr<'a>
impl<'a> Debug for FastCdcIncr<'a>
Source§impl<'a> Default for FastCdcIncr<'a>
impl<'a> Default for FastCdcIncr<'a>
Source§fn default() -> FastCdcIncr<'a>
fn default() -> FastCdcIncr<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&FastCdc<'a>> for FastCdcIncr<'a>
impl<'a> From<&FastCdc<'a>> for FastCdcIncr<'a>
Source§impl<'a> PartialEq for FastCdcIncr<'a>
impl<'a> PartialEq for FastCdcIncr<'a>
impl<'a> Eq for FastCdcIncr<'a>
impl<'a> StructuralPartialEq for FastCdcIncr<'a>
Auto Trait Implementations§
impl<'a> Freeze for FastCdcIncr<'a>
impl<'a> RefUnwindSafe for FastCdcIncr<'a>
impl<'a> Send for FastCdcIncr<'a>
impl<'a> Sync for FastCdcIncr<'a>
impl<'a> Unpin for FastCdcIncr<'a>
impl<'a> UnwindSafe for FastCdcIncr<'a>
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