referrerpolicy=no-referrer-when-downgrade

Trait polkadot_node_primitives::approval::v2::AsBitIndex

source ·
pub trait AsBitIndex {
    // Required method
    fn as_bit_index(&self) -> BitIndex;
}
Expand description

Helper trait to convert primitives to BitIndex.

Required Methods§

source

fn as_bit_index(&self) -> BitIndex

Returns the index of the corresponding bit in Bitfield.

Implementations on Foreign Types§

source§

impl AsBitIndex for usize

source§

impl AsBitIndex for CandidateIndex

source§

impl AsBitIndex for CoreIndex

Implementors§