pub struct WithLen<T>(pub T);
Expand description
A value serialized by first having its size as a nat0, then the encoding of the value itself.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: BinProtRead> BinProtRead for WithLen<T>
impl<T: BinProtRead> BinProtRead for WithLen<T>
Source§impl<T: BinProtWrite + BinProtSize> BinProtWrite for WithLen<T>
impl<T: BinProtWrite + BinProtSize> BinProtWrite for WithLen<T>
impl<T: Eq> Eq for WithLen<T>
impl<T> StructuralPartialEq for WithLen<T>
Auto Trait Implementations§
impl<T> Freeze for WithLen<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithLen<T>where
T: RefUnwindSafe,
impl<T> Send for WithLen<T>where
T: Send,
impl<T> Sync for WithLen<T>where
T: Sync,
impl<T> Unpin for WithLen<T>where
T: Unpin,
impl<T> UnwindSafe for WithLen<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BinProtSize for Twhere
T: BinProtWrite,
impl<T> BinProtSize for Twhere
T: BinProtWrite,
fn binprot_size(&self) -> usize
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