Trait BitSetLike
pub trait BitSetLike: Clone + Debug {
// Required methods
fn new_bitset(max: usize) -> Self;
fn len(&self) -> usize;
fn test(&self, ix: usize) -> bool;
fn set(&mut self, ix: usize);
fn clear(&mut self, ix: usize);
// Provided method
fn count(&self) -> usize { ... }
}
Expand description
Trait for types which can be handled with BitSetStrategy
.
Required Methods§
fn new_bitset(max: usize) -> Self
fn new_bitset(max: usize) -> Self
Create a new value of Self
with space for up to max
bits, all
initialised to zero.
Provided Methods§
Object Safety§
This trait is not object safe.