struct Lz4Compressor {
encoder: FrameEncoder<Vec<u8>>,
}Expand description
Reusable lz4 frame compressor, the lz4 counterpart of zstd::bulk::Compressor.
lz4_flex has no bulk frame API, so this wraps a [lz4_flex::frame::FrameEncoder] whose hash
table and block buffers are retained across calls to Self::compress_to_buffer.
Fields§
§encoder: FrameEncoder<Vec<u8>>Implementations§
Auto Trait Implementations§
impl Forget for Lz4Compressor
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§
impl<T> Allocation for T
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