Trait bitfield::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