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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)