pub struct BitSet(pub u32);Expand description
A compact representation of a set of integers, 0-31 inclusive
Tuple Fields§
§0: u32A bitfield, with a 1 in bit N signifying that N is present in the BitSet
Implementations§
Source§impl BitSet
impl BitSet
Sourcepub fn iter(&self) -> impl Iterator<Item = u8>
pub fn iter(&self) -> impl Iterator<Item = u8>
An iterator over the integers currently in the set
Note this is not a “live” representation: a snapshot of set membership is taken when you call iter().
Trait Implementations§
impl Copy for BitSet
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 UnsafeUnpin 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