pub struct Lz4Compressor;Expand description
LZ4 compressor using lz4 block API. Note: lz4 does not expose streaming encoder with dictionary/level, so we emulate streaming by compressing each chunk independently.
Implementations§
Source§impl Lz4Compressor
impl Lz4Compressor
pub fn new( _level: i32, _dict: Option<&[u8]>, ) -> Result<Box<dyn Compressor + Send>, CompressionError>
Trait Implementations§
Source§impl Compressor for Lz4Compressor
impl Compressor for Lz4Compressor
Auto Trait Implementations§
impl Freeze for Lz4Compressor
impl RefUnwindSafe for Lz4Compressor
impl Send for Lz4Compressor
impl Sync for Lz4Compressor
impl Unpin for Lz4Compressor
impl UnsafeUnpin for Lz4Compressor
impl UnwindSafe for Lz4Compressor
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