pub struct LZ77Compressor {
pub window_size: u32,
}Fields§
§window_size: u32Implementations§
Trait Implementations§
Source§impl Clone for LZ77Compressor
impl Clone for LZ77Compressor
Source§fn clone(&self) -> LZ77Compressor
fn clone(&self) -> LZ77Compressor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Compressor for LZ77Compressor
impl Compressor for LZ77Compressor
Source§type Context<T: Symbol> = LZ77Context
type Context<T: Symbol> = LZ77Context
Context is produced during compression and is used during decompression.
Source§fn compress_symbols<'a, T: Symbol>(
&self,
input: impl Iterator<Item = impl Iterator<Item = T>>,
output: &mut Vec<Vec<Token<T>>>,
) -> Result<Self::Context<T>>
fn compress_symbols<'a, T: Symbol>( &self, input: impl Iterator<Item = impl Iterator<Item = T>>, output: &mut Vec<Vec<Token<T>>>, ) -> Result<Self::Context<T>>
Compress the input symbols of type
T. Read moreSource§fn decompress_tokens<T: Symbol>(
&self,
_cx: &LZ77Context,
input: impl Iterator<Item = Token<T>>,
output: &mut impl Extend<T>,
) -> Result<()>
fn decompress_tokens<T: Symbol>( &self, _cx: &LZ77Context, input: impl Iterator<Item = Token<T>>, output: &mut impl Extend<T>, ) -> Result<()>
Decompress the input tokens of type
Self::Token<T>. Read morefn decompress_tokens2<T: Symbol>( &self, _cx: &LZ77Context, input: impl Iterator<Item = Result<Token<T>>>, ) -> impl Iterator<Item = Result<T>>
impl Copy for LZ77Compressor
Auto Trait Implementations§
impl Freeze for LZ77Compressor
impl RefUnwindSafe for LZ77Compressor
impl Send for LZ77Compressor
impl Sync for LZ77Compressor
impl Unpin for LZ77Compressor
impl UnsafeUnpin for LZ77Compressor
impl UnwindSafe for LZ77Compressor
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