pub struct Ram { /* private fields */ }Expand description
Parameters for the Rapid Asymmetric Maximum (RAM) chunking algorithm
Is window free, with very small (
Implementations§
Trait Implementations§
Source§impl Chunk for Ram
impl Chunk for Ram
Source§type SearchState = RamState
type SearchState = RamState
SearchState allows searching for the chunk edge to resume without duplicating work
already done.Source§fn to_search_state(&self) -> Self::SearchState
fn to_search_state(&self) -> Self::SearchState
Provide an initial [
SearchState] for use with [find_chunk_edge()]. Generally, for each
input one should generate a new [SearchState].Source§fn find_chunk_edge(
&self,
state: &mut Self::SearchState,
data: &[u8],
) -> (Option<usize>, usize)
fn find_chunk_edge( &self, state: &mut Self::SearchState, data: &[u8], ) -> (Option<usize>, usize)
Find the next “chunk” in
data to emit Read moreSource§impl ToChunkIncr for Ram
impl ToChunkIncr for Ram
impl Eq for Ram
impl StructuralPartialEq for Ram
Auto Trait Implementations§
impl Freeze for Ram
impl RefUnwindSafe for Ram
impl Send for Ram
impl Sync for Ram
impl Unpin for Ram
impl UnsafeUnpin for Ram
impl UnwindSafe for Ram
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