pub trait Decodable: Sized {
type DecoderArray: DecoderArray<Decode = Self>;
// Required method
fn decode(
sticks: DynRootBranch<'_>,
options: &impl DecodeOptions,
) -> Result<Self, DecodeError>;
}
Required Associated Types§
type DecoderArray: DecoderArray<Decode = Self>
Required Methods§
fn decode( sticks: DynRootBranch<'_>, options: &impl DecodeOptions, ) -> Result<Self, DecodeError>
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.