pub struct DeltaIndex { /* private fields */ }Expand description
Rolling-hash index over a base buffer for reuse when encoding many targets.
Implementations§
Source§impl DeltaIndex
impl DeltaIndex
Sourcepub fn new(base: &[u8]) -> Self
pub fn new(base: &[u8]) -> Self
Build an index over base for subsequent Self::encode calls.
Sourcepub fn index_stride(&self) -> usize
pub fn index_stride(&self) -> usize
Indexed stride used when subsampling large bases (Git indexes one entry per 16-byte rolling-hash window).
Auto Trait Implementations§
impl Freeze for DeltaIndex
impl RefUnwindSafe for DeltaIndex
impl Send for DeltaIndex
impl Sync for DeltaIndex
impl Unpin for DeltaIndex
impl UnsafeUnpin for DeltaIndex
impl UnwindSafe for DeltaIndex
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