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§
sourcefn as_bit_index(&self) -> BitIndex
fn as_bit_index(&self) -> BitIndex
Returns the index of the corresponding bit in Bitfield
.