pub trait Codec{
// Provided methods
fn decode<R>(reader: &mut R) -> Result<Self>
where R: Read { ... }
fn encode<W>(&self, writer: &mut W) -> Result<()>
where W: Write { ... }
}
Expand description
Encoding and decoding
Provided Methods§
Object Safety§
This trait is not object safe.