pub trait Encode<E: ?Sized>: Encodable {
// Required method
fn encode(
&mut self,
encoder: &mut E,
slot: Slot<'_, Self::Encoded<'_>>,
) -> Result<(), EncodeError>;
}
Expand description
Encodes a value.
Required Methods§
Object Safety§
This trait is not object safe.