AsBitIndex

Trait 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 CoreIndex

Source§

impl AsBitIndex for CandidateIndex

Implementors§