Trait bitfield::Bit[][src]

pub trait Bit {
    fn bit(&self, bit: usize) -> bool;
fn set_bit(&mut self, bit: usize, value: bool); }
[]

A trait to get or set a single bit.

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

Required methods

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

Get a single bit.

fn set_bit(&mut self, bit: usize, value: bool)[src][]

Set a single bit.

Implementors

impl<T: BitRange<u8>> Bit for T[src][+]