pub struct BinCodec<T>(/* private fields */);Expand description
A binary codec that uses AsRef<[u8]> and From<Vec<u8>> to encode and decode respectively.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BinCodec<T>
impl<T> RefUnwindSafe for BinCodec<T>where
T: RefUnwindSafe,
impl<T> Send for BinCodec<T>where
T: Send,
impl<T> Sync for BinCodec<T>where
T: Sync,
impl<T> Unpin for BinCodec<T>where
T: Unpin,
impl<T> UnwindSafe for BinCodec<T>where
T: UnwindSafe,
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