pub trait Encode<E: Encoder>where
Self: Sized,{
// Required method
fn encode_data(&self, encoder: &mut E) -> Result<(), E::Error>;
}Expand description
The Encode trait is used to encode versioned data.
Many Encoders will provide a blanket implementation for this trait.
Required Methods§
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.