zerocopy::byteorder

Trait ByteOrder

Source
pub trait ByteOrder:
    Copy
    + Clone
    + Debug
    + Display
    + Eq
    + PartialEq
    + Ord
    + PartialOrd
    + Hash
    + Sealed { }
Expand description

A type-level representation of byte order.

This type is implemented by BigEndian and LittleEndian, which represent big-endian and little-endian byte order respectively. This module also provides a number of useful aliases for those types: NativeEndian, NetworkEndian, BE, and LE.

ByteOrder types can be used to specify the byte order of the types in this module - for example, U32<BigEndian> is a 32-bit integer stored in big-endian byte order.

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.

Implementors§