bitfield

Trait Bit

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

A trait to get a single bit.

This trait is implemented for all type that implement BitRange<u8>.

Required Methods§

Source

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

Get a single bit.

Implementors§

Source§

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