pub struct BitSetNot<A: BitSetLike>(pub A);
Expand description
BitSetNot
takes a BitSetLike
item, and produced an inverted virtual set.
Note: the implementation is sub-optimal because layers 1-3 are not active.
Tuple Fields
0: A
Trait Implementations
sourceimpl<'a, A, T> BitAnd<T> for &'a BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
impl<'a, A, T> BitAnd<T> for &'a BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
sourceimpl<A, T> BitAnd<T> for BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
impl<A, T> BitAnd<T> for BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
sourceimpl<'a, A, T> BitOr<T> for &'a BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
impl<'a, A, T> BitOr<T> for &'a BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
sourceimpl<A, T> BitOr<T> for BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
impl<A, T> BitOr<T> for BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
sourceimpl<A: BitSetLike> BitSetLike for BitSetNot<A>
impl<A: BitSetLike> BitSetLike for BitSetNot<A>
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, _: usize) -> usize
fn layer2(&self, _: 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, _: usize) -> usize
fn layer1(&self, _: 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, i: usize) -> usize
fn layer0(&self, i: 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<'a, A, T> BitXor<T> for &'a BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
impl<'a, A, T> BitXor<T> for &'a BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
sourceimpl<A, T> BitXor<T> for BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
impl<A, T> BitXor<T> for BitSetNot<A> where
T: BitSetLike,
A: BitSetLike,
sourceimpl<A: Clone + BitSetLike> Clone for BitSetNot<A>
impl<A: Clone + BitSetLike> Clone for BitSetNot<A>
sourceimpl<A: Debug + BitSetLike> Debug for BitSetNot<A>
impl<A: Debug + BitSetLike> Debug for BitSetNot<A>
sourceimpl<'a, A> IntoIterator for &'a BitSetNot<A> where
A: BitSetLike,
impl<'a, A> IntoIterator for &'a BitSetNot<A> where
A: BitSetLike,
sourceimpl<A> IntoIterator for BitSetNot<A> where
A: BitSetLike,
impl<A> IntoIterator for BitSetNot<A> where
A: BitSetLike,
sourceimpl<'a, A> Not for &'a BitSetNot<A> where
A: BitSetLike,
impl<'a, A> Not for &'a BitSetNot<A> where
A: BitSetLike,
Auto Trait Implementations
impl<A> RefUnwindSafe for BitSetNot<A> where
A: RefUnwindSafe,
impl<A> Send for BitSetNot<A> where
A: Send,
impl<A> Sync for BitSetNot<A> where
A: Sync,
impl<A> Unpin for BitSetNot<A> where
A: Unpin,
impl<A> UnwindSafe for BitSetNot<A> where
A: UnwindSafe,
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