pub struct BitSetAnd<A: BitSetLike, B: BitSetLike>(pub A, pub B);
Expand description
BitSetAnd
takes two BitSetLike
items, and merges the masks
returning a new virtual set, which represents an intersection of the
two original sets.
Tuple Fields§
§0: A
§1: B
Trait Implementations§
Source§impl<A: BitSetLike, B: BitSetLike> BitSetLike for BitSetAnd<A, B>
impl<A: BitSetLike, B: BitSetLike> BitSetLike for BitSetAnd<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.Source§fn layer2(&self, i: usize) -> usize
fn layer2(&self, i: usize) -> usize
Return the
usize
from the array of usizes that indicates if any
bit has been set in layer1Source§fn layer1(&self, i: usize) -> usize
fn layer1(&self, i: usize) -> usize
Return the
usize
from the array of usizes that indicates if any
bit has been set in layer0Source§fn 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 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: Clone + BitSetLike, B: Clone + BitSetLike> Clone for BitSetAnd<A, B>
impl<A: Clone + BitSetLike, B: Clone + BitSetLike> Clone for BitSetAnd<A, B>
Source§impl<A: Debug + BitSetLike, B: Debug + BitSetLike> Debug for BitSetAnd<A, B>
impl<A: Debug + BitSetLike, B: Debug + BitSetLike> Debug for BitSetAnd<A, B>
Source§impl<A: DrainableBitSet, B: DrainableBitSet> DrainableBitSet for BitSetAnd<A, B>
impl<A: DrainableBitSet, B: DrainableBitSet> DrainableBitSet for BitSetAnd<A, B>
Source§impl<'a, A, B> IntoIterator for &'a BitSetAnd<A, B>where
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B> IntoIterator for &'a BitSetAnd<A, B>where
A: BitSetLike,
B: BitSetLike,
Source§impl<A, B> IntoIterator for BitSetAnd<A, B>where
A: BitSetLike,
B: BitSetLike,
impl<A, B> IntoIterator for BitSetAnd<A, B>where
A: BitSetLike,
B: BitSetLike,
Source§impl<'a, A, B> Not for &'a BitSetAnd<A, B>where
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B> Not for &'a BitSetAnd<A, B>where
A: BitSetLike,
B: BitSetLike,
Auto Trait Implementations§
impl<A, B> Freeze for BitSetAnd<A, B>
impl<A, B> RefUnwindSafe for BitSetAnd<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for BitSetAnd<A, B>
impl<A, B> Sync for BitSetAnd<A, B>
impl<A, B> Unpin for BitSetAnd<A, B>
impl<A, B> UnwindSafe for BitSetAnd<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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