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§
fn load<O, U>(src: &BitSlice<O, Msb0>) -> U
fn store<O, U>(dest: &mut BitSlice<O, Msb0>, 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.