pub trait Endianness: Endianness {
const NAME: &'static str;
const IS_LITTLE: bool;
const IS_BIG: bool;
}
Expand description
Marker trait for endianness selector types.
Its only implementations are LittleEndian
and BigEndian
Note that in principle marker traits are not necessary to use selector types, but they are useful to avoid that the user specifies a nonsensical type, and to document the meaning of type parameters.
Required Associated Constants§
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.