pub unsafe trait PlatformEndian { }Expand description
Marker trait for constraining by platform endianness.
For example, LittleEndian only satisfies PlatformEndian on little-endian platforms.
This can be used to, for example, constrain ZeroCopy implementations only when the
configured byte order matches the platform endianness.
§Safety
Implementations must ensure that implementations are gated by the correct platform endianness.
Implementors§
impl PlatformEndian for LittleEndian
Available on little-endian only.