Trait PostcardSerialize

Source
pub trait PostcardSerialize
where Self: Serialize,
{ // Provided methods fn write_postcard<W: Write>(&self, writer: &mut W) -> Result<(), SmolStr> { ... } fn to_postcard(&self) -> Vec<u8> { ... } }

Provided Methods§

Source

fn write_postcard<W: Write>(&self, writer: &mut W) -> Result<(), SmolStr>

Source

fn to_postcard(&self) -> Vec<u8>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E> PostcardSerialize for E
where E: Serialize,