pub trait Decode<C: Codec>: Sized {
// Required method
fn decode<R: Read + Seek>(c: C, r: &mut R) -> Result<Self>;
}
Expand description
Decode trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required Methods§
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.