Trait proptest::bits::BitSetLike [] [src]

pub trait BitSetLike: Clone + Debug {
    fn new_bitset(max: usize) -> Self;
fn max(&self) -> usize;
fn test(&self, ix: usize) -> bool;
fn set(&mut self, ix: usize);
fn clear(&mut self, ix: usize); }

Trait for types which can be handled with BitSetStrategy.

Required Methods

Create a new value of Self with space for up to max bits, all initialised to zero.

Return an upper bound on the greatest bit set.

Test whether the given bit is set.

Set the given bit.

Clear the given bit.