Trait ProstEncodeOwned

Source
pub trait ProstEncodeOwned: Sized
where Self::EncodedType: ProstMessage + From<Self>,
{ type EncodedType; // Provided methods fn encode<B>(self, buf: &mut B) -> Result<(), EncodeError> where B: BufMut { ... } fn encode_to_vec(self) -> Vec<u8> { ... } }

Required Associated Types§

Provided Methods§

Source

fn encode<B>(self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut,

Source

fn encode_to_vec(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§