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§
source§impl<'a, T> BitAnd<T> for &'a BitSetAllwhere
T: BitSetLike,
impl<'a, T> BitAnd<T> for &'a BitSetAllwhere
T: BitSetLike,
source§impl<T> BitAnd<T> for BitSetAllwhere
T: BitSetLike,
impl<T> BitAnd<T> for BitSetAllwhere
T: BitSetLike,
source§impl<'a, T> BitOr<T> for &'a BitSetAllwhere
T: BitSetLike,
impl<'a, T> BitOr<T> for &'a BitSetAllwhere
T: BitSetLike,
source§impl<T> BitOr<T> for BitSetAllwhere
T: BitSetLike,
impl<T> BitOr<T> for BitSetAllwhere
T: BitSetLike,
source§impl BitSetLike for BitSetAll
impl BitSetLike for BitSetAll
source§fn layer3(&self) -> usize
fn layer3(&self) -> usize
Return a
usize
where each bit represents if any word in layer2
has been set. Read moresource§fn 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 moresource§fn 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 moresource§fn 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 moresource§fn 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 moresource§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Returns true if this
BitSetLike
contains nothing, and false otherwise.source§fn iter(self) -> BitIter<Self> ⓘwhere
Self: Sized,
fn iter(self) -> BitIter<Self> ⓘwhere
Self: Sized,
Create an iterator that will scan over the keyspace
source§fn 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