Struct hibitset::BitSetXor
[−]
[src]
pub struct BitSetXor<A: BitSetLike, B: BitSetLike>(pub A, pub B);
BitSetXor
takes two BitSetLike
items, and merges the masks
returning a new virtual set, which represents an merged of the
two original sets.
Trait Implementations
impl<A: Debug + BitSetLike, B: Debug + BitSetLike> Debug for BitSetXor<A, B>
[src]
impl<A: BitSetLike, B: BitSetLike> BitSetLike for BitSetXor<A, B>
[src]
fn layer3(&self) -> usize
[src]
Return a usize where each bit represents if any word in layer2 has been set. Read more
fn layer2(&self, id: usize) -> usize
[src]
Return the usize from the array of usizes that indicates if any bit has been set in layer1 Read more
fn layer1(&self, id: usize) -> usize
[src]
Return the usize from the array of usizes that indicates if any bit has been set in layer0 Read more
fn layer0(&self, id: usize) -> usize
[src]
Return a usize that maps to the direct 1:1 association with each index of the set Read more
fn contains(&self, i: u32) -> bool
[src]
Allows checking if set bit is contained in the bit set.
fn iter(self) -> BitIter<Self> where
Self: Sized,
[src]
Self: Sized,
Create an iterator that will scan over the keyspace
fn par_iter(self) -> BitParIter<Self> where
Self: Sized,
[src]
Self: Sized,
Create a parallel iterator that will scan over the keyspace
impl<A, B> IntoIterator for BitSetXor<A, B> where
A: BitSetLike,
B: BitSetLike,
[src]
A: BitSetLike,
B: BitSetLike,
type Item = <BitIter<Self> as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = BitIter<Self>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<A, B> Not for BitSetXor<A, B> where
A: BitSetLike,
B: BitSetLike,
[src]
A: BitSetLike,
B: BitSetLike,
type Output = BitSetNot<Self>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
Performs the unary !
operation.
impl<A, B, T> BitAnd<T> for BitSetXor<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
[src]
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
type Output = BitSetAnd<Self, T>
The resulting type after applying the &
operator.
fn bitand(self, rhs: T) -> Self::Output
[src]
Performs the &
operation.
impl<A, B, T> BitOr<T> for BitSetXor<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
[src]
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
type Output = BitSetOr<Self, T>
The resulting type after applying the |
operator.
fn bitor(self, rhs: T) -> Self::Output
[src]
Performs the |
operation.
impl<A, B, T> BitXor<T> for BitSetXor<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
[src]
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
type Output = BitSetXor<Self, T>
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: T) -> Self::Output
[src]
Performs the ^
operation.
impl<'a, A, B> IntoIterator for &'a BitSetXor<A, B> where
A: BitSetLike,
B: BitSetLike,
[src]
A: BitSetLike,
B: BitSetLike,
type Item = <BitIter<Self> as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = BitIter<Self>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a, A, B> Not for &'a BitSetXor<A, B> where
A: BitSetLike,
B: BitSetLike,
[src]
A: BitSetLike,
B: BitSetLike,
type Output = BitSetNot<Self>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
Performs the unary !
operation.
impl<'a, A, B, T> BitAnd<T> for &'a BitSetXor<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
[src]
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
type Output = BitSetAnd<Self, T>
The resulting type after applying the &
operator.
fn bitand(self, rhs: T) -> Self::Output
[src]
Performs the &
operation.
impl<'a, A, B, T> BitOr<T> for &'a BitSetXor<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
[src]
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
type Output = BitSetOr<Self, T>
The resulting type after applying the |
operator.
fn bitor(self, rhs: T) -> Self::Output
[src]
Performs the |
operation.
impl<'a, A, B, T> BitXor<T> for &'a BitSetXor<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
[src]
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,