Struct hibitset::BitSetOr

source ·
pub struct BitSetOr<A: BitSetLike, B: BitSetLike>(pub A, pub B);
Expand description

BitSetOr 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 BitSetOr<A, B>
where T: BitSetLike, A: BitSetLike, B: BitSetLike,

§

type Output = BitSetAnd<&'a BitSetOr<A, B>, T>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
source§

impl<A, B, T> BitAnd<T> for BitSetOr<A, B>
where T: BitSetLike, A: BitSetLike, B: BitSetLike,

§

type Output = BitSetAnd<BitSetOr<A, B>, T>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
source§

impl<'a, A, B, T> BitOr<T> for &'a BitSetOr<A, B>
where T: BitSetLike, A: BitSetLike, B: BitSetLike,

§

type Output = BitSetOr<&'a BitSetOr<A, B>, T>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
source§

impl<A, B, T> BitOr<T> for BitSetOr<A, B>
where T: BitSetLike, A: BitSetLike, B: BitSetLike,

§

type Output = BitSetOr<BitSetOr<A, B>, T>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
source§

impl<A: BitSetLike, B: BitSetLike> BitSetLike for BitSetOr<A, B>

source§

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

Return the usize from the array of usizes that indicates if any bit has been set in layer1
source§

fn layer1(&self, i: usize) -> usize

Return the usize from the array of usizes that indicates if any bit has been set in layer0
source§

fn layer0(&self, i: usize) -> usize

Return a usize that maps to the direct 1:1 association with each index of the set
source§

fn contains(&self, i: u32) -> bool

Allows checking if set bit is contained in the bit set.
source§

fn get_from_layer(&self, layer: usize, idx: usize) -> usize

Gets the usize corresponding to layer and index. Read more
source§

fn is_empty(&self) -> bool

Returns true if this BitSetLike contains nothing, and false otherwise.
source§

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,

Create a parallel iterator that will scan over the keyspace
source§

impl<'a, A, B, T> BitXor<T> for &'a BitSetOr<A, B>
where T: BitSetLike, A: BitSetLike, B: BitSetLike,

§

type Output = BitSetXor<&'a BitSetOr<A, B>, T>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
source§

impl<A, B, T> BitXor<T> for BitSetOr<A, B>
where T: BitSetLike, A: BitSetLike, B: BitSetLike,

§

type Output = BitSetXor<BitSetOr<A, B>, T>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
source§

impl<A: Clone + BitSetLike, B: Clone + BitSetLike> Clone for BitSetOr<A, B>

source§

fn clone(&self) -> BitSetOr<A, B>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<A: Debug + BitSetLike, B: Debug + BitSetLike> Debug for BitSetOr<A, B>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A: DrainableBitSet, B: DrainableBitSet> DrainableBitSet for BitSetOr<A, B>

source§

fn remove(&mut self, i: u32) -> bool

Removes bit from the bit set. Read more
source§

fn drain<'a>(&'a mut self) -> DrainBitIter<'a, Self>
where Self: Sized,

Create a draining iterator that will scan over the keyspace and clears it while doing so.
source§

impl<'a, A, B> IntoIterator for &'a BitSetOr<A, B>
where A: BitSetLike, B: BitSetLike,

§

type Item = <BitIter<&'a BitSetOr<A, B>> as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = BitIter<&'a BitSetOr<A, B>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<A, B> IntoIterator for BitSetOr<A, B>
where A: BitSetLike, B: BitSetLike,

§

type Item = <BitIter<BitSetOr<A, B>> as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = BitIter<BitSetOr<A, B>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, A, B> Not for &'a BitSetOr<A, B>
where A: BitSetLike, B: BitSetLike,

§

type Output = BitSetNot<&'a BitSetOr<A, B>>

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl<A, B> Not for BitSetOr<A, B>
where A: BitSetLike, B: BitSetLike,

§

type Output = BitSetNot<BitSetOr<A, B>>

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more

Auto Trait Implementations§

§

impl<A, B> Freeze for BitSetOr<A, B>
where A: Freeze, B: Freeze,

§

impl<A, B> RefUnwindSafe for BitSetOr<A, B>

§

impl<A, B> Send for BitSetOr<A, B>
where A: Send, B: Send,

§

impl<A, B> Sync for BitSetOr<A, B>
where A: Sync, B: Sync,

§

impl<A, B> Unpin for BitSetOr<A, B>
where A: Unpin, B: Unpin,

§

impl<A, B> UnwindSafe for BitSetOr<A, B>
where A: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.