pub struct Wrap<A>(/* private fields */);Trait Implementations§
Source§impl<A> Value for Wrap<A>where
A: Value,
impl<A> Value for Wrap<A>where
A: Value,
const NAME: &'static str
const KIND: Kind<Definition>
type Native = <A as Value>::Native
fn postcard_write(value: &<A as Value>::Native, bytes: &mut Vec<u8>)
fn postcard_size(value: &<A as Value>::Native) -> usize
fn postcard_memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn postcard_read( input: &mut Reader<'_>, ) -> Result<<A as Value>::Native, MessageError>
const CARDINALITY: Cardinality = Cardinality::Required
Auto Trait Implementations§
impl<A> Freeze for Wrap<A>
impl<A> RefUnwindSafe for Wrap<A>
impl<A> Send for Wrap<A>
impl<A> Sync for Wrap<A>
impl<A> Unpin for Wrap<A>
impl<A> UnsafeUnpin for Wrap<A>
impl<A> UnwindSafe for Wrap<A>
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