pub struct BitSetXor<A: BitSetLike, B: BitSetLike>(pub A, pub B);
Expand description
BitSetXor
takes two BitSetLike
items, and merges the masks
returning a new virtual set, which represents an merged of the
two original sets.
Tuple Fields§
§0: A
§1: B
Trait Implementations§
source§impl<'a, A, B, T> BitAnd<T> for &'a BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitAnd<T> for &'a BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
source§impl<A, B, T> BitAnd<T> for BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitAnd<T> for BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
source§impl<'a, A, B, T> BitOr<T> for &'a BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitOr<T> for &'a BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
source§impl<A, B, T> BitOr<T> for BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitOr<T> for BitSetXor<A, B>where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
source§impl<A: BitSetLike, B: BitSetLike> BitSetLike for BitSetXor<A, B>
impl<A: BitSetLike, B: BitSetLike> BitSetLike for BitSetXor<A, B>
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