pub struct BoxedCodec(/* private fields */);Expand description
A boxed codec for type-erased storage.
Use Option<BoxedCodec> where None represents identity (no compression).
Implementations§
Source§impl BoxedCodec
impl BoxedCodec
Trait Implementations§
Source§impl Clone for BoxedCodec
impl Clone for BoxedCodec
Source§fn clone(&self) -> BoxedCodec
fn clone(&self) -> BoxedCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BoxedCodec
impl !RefUnwindSafe for BoxedCodec
impl Send for BoxedCodec
impl Sync for BoxedCodec
impl Unpin for BoxedCodec
impl !UnwindSafe for BoxedCodec
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