pub struct RollSumIncr { /* private fields */ }
Expand description
Incrimental instance of RollSum
Performance note: Bup’s Roll sum algorithm requires tracking the entire window. As a result, this includes a circular buffer which all inputs are copied through. If your use case allows it, use the non-incrimental variant for improved performance.
Implementations§
Trait Implementations§
Source§impl ChunkIncr for RollSumIncr
impl ChunkIncr for RollSumIncr
Source§fn push(&mut self, data: &[u8]) -> Option<usize>
fn push(&mut self, data: &[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 Clone for RollSumIncr
impl Clone for RollSumIncr
Source§fn clone(&self) -> RollSumIncr
fn clone(&self) -> RollSumIncr
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 Debug for RollSumIncr
impl Debug for RollSumIncr
Source§impl Default for RollSumIncr
impl Default for RollSumIncr
Source§impl From<&RollSum> for RollSumIncr
impl From<&RollSum> for RollSumIncr
Source§impl PartialEq for RollSumIncr
impl PartialEq for RollSumIncr
impl Eq for RollSumIncr
impl StructuralPartialEq for RollSumIncr
Auto Trait Implementations§
impl Freeze for RollSumIncr
impl RefUnwindSafe for RollSumIncr
impl Send for RollSumIncr
impl Sync for RollSumIncr
impl Unpin for RollSumIncr
impl UnwindSafe for RollSumIncr
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