pub trait Encoder { // Required method fn as_bytes(&self) -> Cow<'_, [u8]>; }
The trait is usually implemented by the encoder that stores serialized objects.
Returns the serialized object as a slice.