pub trait Decode: Encode + Sized {
// Required method
fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>;
}Expand description
A Rust type that can be rebuilt from its HLA encoding.
Required Methods§
Sourcefn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>
fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>
Skips the padding the octet boundary requires and decodes one value.
Never panics; never allocates more than a small multiple of the remaining input.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".