pub struct Zstd { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Chunk for Zstd
impl Chunk for Zstd
Source§type SearchState = ZstdSearchState
type SearchState = ZstdSearchState
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 Zstd
impl ToChunkIncr for Zstd
impl Eq for Zstd
impl StructuralPartialEq for Zstd
Auto Trait Implementations§
impl Freeze for Zstd
impl RefUnwindSafe for Zstd
impl Send for Zstd
impl Sync for Zstd
impl Unpin for Zstd
impl UnwindSafe for Zstd
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