[][src]Trait rust_bitfield::Bit

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<T>.

Required methods

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

Get a single bit.

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

Set a single bit.

Loading content...

Implementors

impl Bit for Bits<i16>[src]

impl Bit for Bits<i32>[src]

impl Bit for Bits<i64>[src]

impl Bit for Bits<i8>[src]

impl Bit for Bits<u16>[src]

impl Bit for Bits<u32>[src]

impl Bit for Bits<u64>[src]

impl Bit for Bits<u8>[src]

Loading content...