Trait Encode
pub unsafe trait Encode<E>: Encodablewhere
E: ?Sized,{
// Required method
fn encode(
&mut self,
encoder: &mut E,
out: &mut MaybeUninit<Self::Encoded>,
) -> Result<(), EncodeError>;
}
Expand description
Required Methods§
fn encode(
&mut self,
encoder: &mut E,
out: &mut MaybeUninit<Self::Encoded>,
) -> Result<(), EncodeError>
fn encode( &mut self, encoder: &mut E, out: &mut MaybeUninit<Self::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
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.