Module bits

Module bits 

Source
Expand description

Generic scale_bits over bitvec-like BitOrder and BitFormat types.

Structs§

DecodedBits
scale_bits::Bits generic over the bit store (u8/u16/u32/u64) and bit order (LSB, MSB) used for SCALE encoding/decoding. Uses scale_bits::Bits-default u8 and LSB format underneath.

Enums§

Lsb0
Type-level value that corresponds to scale_bits::OrderFormat::Lsb0 at run-time and bitvec::order::BitOrder::Lsb0 at the type level.
Msb0
Type-level value that corresponds to scale_bits::OrderFormat::Msb0 at run-time and bitvec::order::BitOrder::Msb0 at the type level.

Traits§

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