pub struct ZStdCctx { /* private fields */ }
Expand description
ZStandard compression context
Implementations§
Trait Implementations§
Source§impl From<ZStdCctx> for PolyCompressor
impl From<ZStdCctx> for PolyCompressor
Source§fn from(v: ZStdCctx) -> PolyCompressor
fn from(v: ZStdCctx) -> PolyCompressor
Converts to this type from the input type.
Source§impl ICompressor for ZStdCctx
impl ICompressor for ZStdCctx
Source§fn try_compress(
&mut self,
buf: &[u8],
preallocated: &mut Vec<u8>,
) -> Result<NonZeroUsize, CompressError>
fn try_compress( &mut self, buf: &[u8], preallocated: &mut Vec<u8>, ) -> Result<NonZeroUsize, CompressError>
Source§fn supported_levels(&self) -> RangeInclusive<usize>
fn supported_levels(&self) -> RangeInclusive<usize>
Get backend’s supported compression levels.
Source§impl TryInto<ZStdCctx> for PolyCompressor
impl TryInto<ZStdCctx> for PolyCompressor
impl Send for ZStdCctx
Auto Trait Implementations§
impl Freeze for ZStdCctx
impl RefUnwindSafe for ZStdCctx
impl !Sync for ZStdCctx
impl Unpin for ZStdCctx
impl UnwindSafe for ZStdCctx
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