Module subxt::utils::bits

source ·
Expand description

Generic scale_bits over bitvec-like BitOrder and BitFormat types.

Structs

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

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

Traits

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