pub struct ZstdCodec { /* private fields */ }
Available on
codec_api
only.Expand description
Trait Implementations§
source§impl CodecImplementation for ZstdCodec
impl CodecImplementation for ZstdCodec
source§fn new(_hunk_size: u32) -> Result<Self>where
Self: Sized,
fn new(_hunk_size: u32) -> Result<Self>where
Self: Sized,
Creates a new instance of this codec for the provided hunk size.
source§fn decompress(
&mut self,
input: &[u8],
output: &mut [u8]
) -> Result<DecompressResult>
fn decompress( &mut self, input: &[u8], output: &mut [u8] ) -> Result<DecompressResult>
Decompress compressed bytes from the input buffer into the
output buffer. Read more
source§impl CompressionCodecType for ZstdCodec
impl CompressionCodecType for ZstdCodec
impl CompressionCodec for ZstdCodec
Auto Trait Implementations§
impl RefUnwindSafe for ZstdCodec
impl Send for ZstdCodec
impl Sync for ZstdCodec
impl Unpin for ZstdCodec
impl UnwindSafe for ZstdCodec
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