pub trait PrioBitmap: Init + Send + Sync + Clone + Copy + Debug + 'static {
    // Required methods
    fn get(&self, i: usize) -> bool;
    fn clear(&mut self, i: usize);
    fn set(&mut self, i: usize);
    fn find_set(&self) -> Option<usize>;
}
Expand description

Trait for FixedPrioBitmap.

All methods panic when the given bit position is out of range.

Required Methods§

source

fn get(&self, i: usize) -> bool

Get the bit at the specified position.

source

fn clear(&mut self, i: usize)

Clear the bit at the specified position.

source

fn set(&mut self, i: usize)

Set the bit at the specified position.

source

fn find_set(&self) -> Option<usize>

Get the position of the first set bit.

Implementations on Foreign Types§

source§

impl PrioBitmap for ()

source§

fn get(&self, _: usize) -> bool

source§

fn clear(&mut self, _: usize)

source§

fn set(&mut self, _: usize)

source§

fn find_set(&self) -> Option<usize>

Implementors§