pub struct Lz4Codec;Expand description
LZ4 codec using lz4_flex (pure Rust, fast).
Trait Implementations§
Source§impl Codec for Lz4Codec
impl Codec for Lz4Codec
Source§fn kind(&self) -> CompressionKind
fn kind(&self) -> CompressionKind
Returns the compression kind for this codec.
Source§fn decompress(&self, input: &[u8]) -> Result<Vec<u8>, StorageError>
fn decompress(&self, input: &[u8]) -> Result<Vec<u8>, StorageError>
Decompresses previously compressed data.
impl Copy for Lz4Codec
Auto Trait Implementations§
impl Freeze for Lz4Codec
impl RefUnwindSafe for Lz4Codec
impl Send for Lz4Codec
impl Sync for Lz4Codec
impl Unpin for Lz4Codec
impl UnsafeUnpin for Lz4Codec
impl UnwindSafe for Lz4Codec
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