Trait Bit

Source
pub trait Bit {
    // Required method
    const fn bit(&self, bit: usize) -> bool;
}
Expand description

A trait to retrieve a single bit as a boolean.

Required Methods§

Source

const fn bit(&self, bit: usize) -> bool

Get a single bit and return as boolean. (true = set, false = clear)

Implementors§

Source§

impl<T: BitRange<u8>> Bit for T