pub trait Decode: Sized {
// Required method
fn decode(r: &mut Reader<'_>) -> Result<Self, DecodeError>;
}Expand description
A type with a canonical decoding.
Required Methods§
Sourcefn decode(r: &mut Reader<'_>) -> Result<Self, DecodeError>
fn decode(r: &mut Reader<'_>) -> Result<Self, DecodeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".