pub struct BitSetAll;
Expand description
BitSetAll
is a bitset with all bits set. Essentially the same as
BitSetNot(BitSet::new())
but without any allocation.
Trait Implementations
sourceimpl<T> BitAnd<T> for BitSetAll where
T: BitSetLike,
impl<T> BitAnd<T> for BitSetAll where
T: BitSetLike,
sourceimpl<'a, T> BitAnd<T> for &'a BitSetAll where
T: BitSetLike,
impl<'a, T> BitAnd<T> for &'a BitSetAll where
T: BitSetLike,
sourceimpl<T> BitOr<T> for BitSetAll where
T: BitSetLike,
impl<T> BitOr<T> for BitSetAll where
T: BitSetLike,
sourceimpl<'a, T> BitOr<T> for &'a BitSetAll where
T: BitSetLike,
impl<'a, T> BitOr<T> for &'a BitSetAll where
T: BitSetLike,
sourceimpl BitSetLike for BitSetAll
impl BitSetLike for BitSetAll
sourcefn layer3(&self) -> usize
fn layer3(&self) -> usize
Return a usize
where each bit represents if any word in layer2
has been set. Read more
sourcefn layer2(&self, _id: usize) -> usize
fn layer2(&self, _id: usize) -> usize
Return the usize
from the array of usizes that indicates if any
bit has been set in layer1 Read more
sourcefn layer1(&self, _id: usize) -> usize
fn layer1(&self, _id: usize) -> usize
Return the usize
from the array of usizes that indicates if any
bit has been set in layer0 Read more
sourcefn layer0(&self, _id: usize) -> usize
fn layer0(&self, _id: usize) -> usize
Return a usize
that maps to the direct 1:1 association with
each index of the set Read more
sourcefn get_from_layer(&self, layer: usize, idx: usize) -> usize
fn get_from_layer(&self, layer: usize, idx: usize) -> usize
Gets the usize
corresponding to layer and index. Read more
sourcefn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Returns true if this BitSetLike
contains nothing, and false otherwise.
sourcefn iter(self) -> BitIter<Self>ⓘNotable traits for BitIter<T>impl<T> Iterator for BitIter<T> where
T: BitSetLike, type Item = u32;
where
Self: Sized,
fn iter(self) -> BitIter<Self>ⓘNotable traits for BitIter<T>impl<T> Iterator for BitIter<T> where
T: BitSetLike, type Item = u32;
where
Self: Sized,
T: BitSetLike, type Item = u32;
Create an iterator that will scan over the keyspace
sourcefn par_iter(self) -> BitParIter<Self> where
Self: Sized,
fn par_iter(self) -> BitParIter<Self> where
Self: Sized,
Create a parallel iterator that will scan over the keyspace
sourceimpl<T> BitXor<T> for BitSetAll where
T: BitSetLike,
impl<T> BitXor<T> for BitSetAll where
T: BitSetLike,
sourceimpl<'a, T> BitXor<T> for &'a BitSetAll where
T: BitSetLike,
impl<'a, T> BitXor<T> for &'a BitSetAll where
T: BitSetLike,
sourceimpl IntoIterator for BitSetAll
impl IntoIterator for BitSetAll
sourceimpl<'a> IntoIterator for &'a BitSetAll
impl<'a> IntoIterator for &'a BitSetAll
Auto Trait Implementations
impl RefUnwindSafe for BitSetAll
impl Send for BitSetAll
impl Sync for BitSetAll
impl Unpin for BitSetAll
impl UnwindSafe for BitSetAll
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more