BitOrder

Trait BitOrder 

Source
pub trait BitOrder {
    const FORMAT: OrderFormat;
}
Expand description

Associates bitvec::order::BitOrder trait with corresponding, type-erased scale_bits::OrderFormat enum.

Used to decode bit sequences in runtime by providing scale_bits::OrderFormat using bitvec-like type type parameters.

Required Associated Constants§

Source

const FORMAT: OrderFormat

Corresponding scale_bits::OrderFormat value.

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 BitOrder for Lsb0

Source§

const FORMAT: OrderFormat = OrderFormat::Lsb0

Source§

impl BitOrder for Msb0

Source§

const FORMAT: OrderFormat = OrderFormat::Msb0