Trait subxt_core::utils::bits::BitStore

source ·
pub trait BitStore {
    const FORMAT: StoreFormat;
    const BITS: u32;
}
Expand description

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

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

Required Associated Constants§

source

const FORMAT: StoreFormat

Corresponding scale_bits::StoreFormat value.

source

const BITS: u32

Number of bits that the backing store types holds.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BitStore for u8

source§

const FORMAT: StoreFormat = StoreFormat::U8

source§

const BITS: u32 = 8u32

source§

impl BitStore for u16

source§

const FORMAT: StoreFormat = StoreFormat::U16

source§

const BITS: u32 = 16u32

source§

impl BitStore for u32

source§

const FORMAT: StoreFormat = StoreFormat::U32

source§

const BITS: u32 = 32u32

source§

impl BitStore for u64

source§

const FORMAT: StoreFormat = StoreFormat::U64

source§

const BITS: u32 = 64u32

Implementors§