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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more