Struct pancake_db_core::compression::zstd_codec::ZstdCodec
source · [−]pub struct ZstdCodec<P: Primitive> { /* private fields */ }Trait Implementations
sourceimpl<P: Primitive<A = u8>> Codec for ZstdCodec<P>
impl<P: Primitive<A = u8>> Codec for ZstdCodec<P>
type P = P
fn compress_atoms(&self, atoms: &[u8]) -> CoreResult<Vec<u8>>
fn decompress_atoms(&self, bytes: &[u8]) -> CoreResult<Vec<u8>>
Auto Trait Implementations
impl<P> RefUnwindSafe for ZstdCodec<P> where
P: RefUnwindSafe,
impl<P> Send for ZstdCodec<P>
impl<P> Sync for ZstdCodec<P>
impl<P> Unpin for ZstdCodec<P> where
P: Unpin,
impl<P> UnwindSafe for ZstdCodec<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more