Trait dsi_bitstream::traits::Endianness
source · 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§
Object Safety§
This trait is not object safe.