Trait ByteOrder

Source
pub trait ByteOrder {
    // Required methods
    fn load<O: BitStore, U: Integral>(src: &BitSlice<O>) -> U;
    fn store<O: BitStore, U: Integral>(dest: &mut BitSlice<O>, value: U);
}
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: BitStore, U: Integral>(src: &BitSlice<O>) -> U

Source

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

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§