pub trait BitOps {
    // Required methods
    fn set_bit(&mut self, pos: u8);
    fn clear_bit(&mut self, pos: u8);
    fn check_bit(&self, pos: u8) -> BitState;
}
Expand description

simple bit ops

Required Methods§

source

fn set_bit(&mut self, pos: u8)

source

fn clear_bit(&mut self, pos: u8)

source

fn check_bit(&self, pos: u8) -> BitState

Implementations on Foreign Types§

source§

impl BitOps for u8

source§

fn set_bit(&mut self, pos: u8)

source§

fn clear_bit(&mut self, pos: u8)

source§

fn check_bit(&self, pos: u8) -> BitState

Implementors§