Skip to main content

ByteOrder

Trait ByteOrder 

Source
pub trait ByteOrder: 'static {
    const ENDIAN: Endian;
}
Expand description

Byte order trait.

Used for constraining byte order configuration in type bounds.

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.

Implementors§

Source§

impl ByteOrder for BigEndian

Source§

const ENDIAN: Endian = Endian::Big

Source§

impl ByteOrder for LittleEndian

Source§

const ENDIAN: Endian = Endian::Little