Trait ByteOrder

Source
pub trait ByteOrder {
    // Required methods
    fn load<O, U>(src: &BitSlice<O, Msb0>) -> U
       where O: BitStore,
             U: Integral;
    fn store<O, U>(dest: &mut BitSlice<O, Msb0>, value: U)
       where O: BitStore,
             U: Integral;
}
Expand description

This trait defines operations to load and store integral values from a buffer, and enables implementing them in different ways for the different byte orders (Big Endian and Little Endian).

Required Methods§

Source

fn load<O, U>(src: &BitSlice<O, Msb0>) -> U
where O: BitStore, U: Integral,

Source

fn store<O, U>(dest: &mut BitSlice<O, Msb0>, value: U)
where O: BitStore, U: Integral,

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§