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.source§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 layer1source§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 layer0source§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 setsource§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
source§impl<'a, T> BitXor<T> for &'a BitSetAllwhere
T: BitSetLike,
impl<'a, T> BitXor<T> for &'a BitSetAllwhere
T: BitSetLike,
source§impl<T> BitXor<T> for BitSetAllwhere
T: BitSetLike,
impl<T> BitXor<T> for BitSetAllwhere
T: BitSetLike,
source§impl<'a> IntoIterator for &'a BitSetAll
impl<'a> IntoIterator for &'a BitSetAll
source§impl IntoIterator for BitSetAll
impl IntoIterator for BitSetAll
Auto Trait Implementations§
impl Freeze for BitSetAll
impl RefUnwindSafe for BitSetAll
impl Send for BitSetAll
impl Sync for BitSetAll
impl Unpin for BitSetAll
impl UnwindSafe for BitSetAll
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)