Skip to main content

ByteOrderSpec

Trait ByteOrderSpec 

Source
pub trait ByteOrderSpec: Copy + Default {
    const ORDER: ByteOrder;
}
Expand description

Describes a type-level byte order.

Required Associated Constants§

Source

const ORDER: ByteOrder

Runtime value represented by this type-level byte order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ByteOrderSpec for BigEndian

Source§

const ORDER: ByteOrder = ByteOrder::BigEndian

Source§

impl ByteOrderSpec for LittleEndian

Source§

const ORDER: ByteOrder = ByteOrder::LittleEndian