pub struct BitSet { /* private fields */ }Implementations§
Source§impl BitSet
impl BitSet
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
pub fn all_false(cap: usize) -> Self
pub fn all_true(cap: usize) -> Self
pub fn insert(&mut self, value: bool)
pub fn toggle(&mut self, index: usize)
pub fn get(&self, index: usize) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> BitSetIter<'_> ⓘ
pub fn iter_true(&self) -> BitSetTrueIter<'_> ⓘ
Trait Implementations§
impl Eq for BitSet
impl StructuralPartialEq for BitSet
Auto Trait Implementations§
impl Freeze for BitSet
impl RefUnwindSafe for BitSet
impl Send for BitSet
impl Sync for BitSet
impl Unpin for BitSet
impl UnwindSafe for BitSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more