pub trait ProstEncodeOwned: Sized{
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§
type EncodedType
Provided Methods§
fn encode<B>(self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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.