pub trait DecodeFixed: Read<Cfg = ()> + FixedSize {
// Provided method
fn decode_fixed<const N: usize>(bytes: [u8; N]) -> Result<Self, Error> { ... }
}Expand description
Convenience trait for FixedSize types that can be decoded directly from a fixed-size array.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".