pub trait LeDecode: Sized + Copy {
const SIZE: usize;
// Required method
fn from_le(bytes: &[u8]) -> Self;
}Expand description
A little-endian-decodable fixed-width numeric element of a borrowed sequence.
Implemented for the multi-byte CDR numeric primitives. Single-byte types
(u8/i8/bool) do not need this — they borrow directly as &[u8].
Required Associated Constants§
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.