pub trait Encode<C>where
C: Codec,{
// Required method
fn encode<W>(&self, c: C, w: &mut W) -> Result<(), Error>
where W: Write;
}
Expand description
Encode trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required Methods§
Object Safety§
This trait is not object safe.