pub struct Reduce<Op, S, Cache> { /* private fields */ }
Expand description

Bitsets iterator reduction, as lazy bitset.

Constructed by reduce and reduce_w_cache.

Trait Implementations§

source§

impl<'a, Op, S, Storage, Rhs> BitAnd<Rhs> for &'a Reduce<Op, S, Storage>

source§

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

Returns intersection of self and rhs bitsets.

§

type Output = BitSetOp<BitAndOp, &'a Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the & operator.
source§

impl<Op, S, Storage, Rhs> BitAnd<Rhs> for Reduce<Op, S, Storage>

source§

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

Returns intersection of self and rhs bitsets.

§

type Output = BitSetOp<BitAndOp, Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the & operator.
source§

impl<'a, Op, S, Storage, Rhs> BitOr<Rhs> for &'a Reduce<Op, S, Storage>

source§

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

Returns union of self and rhs bitsets.

§

type Output = BitSetOp<BitOrOp, &'a Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the | operator.
source§

impl<Op, S, Storage, Rhs> BitOr<Rhs> for Reduce<Op, S, Storage>

source§

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

Returns union of self and rhs bitsets.

§

type Output = BitSetOp<BitOrOp, Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the | operator.
source§

impl<Op, S, Cache> BitSetBase for Reduce<Op, S, Cache>
where Op: BinaryOp, S: Iterator + Clone, S::Item: LevelMasks,

§

type Conf = <<S as Iterator>::Item as BitSetBase>::Conf

source§

impl<'a, Op, S, Storage, Rhs> BitXor<Rhs> for &'a Reduce<Op, S, Storage>

source§

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

Returns symmetric difference of self and rhs bitsets.

§

type Output = BitSetOp<BitXorOp, &'a Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the ^ operator.
source§

impl<Op, S, Storage, Rhs> BitXor<Rhs> for Reduce<Op, S, Storage>

source§

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

Returns symmetric difference of self and rhs bitsets.

§

type Output = BitSetOp<BitXorOp, Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the ^ operator.
source§

impl<Op: Clone, S: Clone, Cache: Clone> Clone for Reduce<Op, S, Cache>

source§

fn clone(&self) -> Reduce<Op, S, Cache>

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, Op, S, Storage> IntoIterator for &'a Reduce<Op, S, Storage>
where Op: BinaryOp, S: Iterator + Clone, S::Item: LevelMasksExt, Storage: ReduceCache,

§

type Item = usize

The type of the elements being iterated over.
§

type IntoIter = <<&'a Reduce<Op, S, Storage> as BitSetInterface>::IntoBlockIter as BlockIterator>::IndexIter

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<Op, S, Storage> IntoIterator for Reduce<Op, S, Storage>
where Op: BinaryOp, S: Iterator + Clone, S::Item: LevelMasksExt, Storage: ReduceCache,

§

type Item = usize

The type of the elements being iterated over.
§

type IntoIter = <<Reduce<Op, S, Storage> as BitSetInterface>::IntoBlockIter as BlockIterator>::IndexIter

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, Op, S, Storage, Rhs> Sub<Rhs> for &'a Reduce<Op, S, Storage>

source§

fn sub(self, rhs: Rhs) -> Self::Output

Returns difference of self and rhs bitsets.

Or relative complement of rhs in self.

§

type Output = BitSetOp<BitSubOp, &'a Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the - operator.
source§

impl<Op, S, Storage, Rhs> Sub<Rhs> for Reduce<Op, S, Storage>

source§

fn sub(self, rhs: Rhs) -> Self::Output

Returns difference of self and rhs bitsets.

Or relative complement of rhs in self.

§

type Output = BitSetOp<BitSubOp, Reduce<Op, S, Storage>, Rhs>

The resulting type after applying the - operator.

Auto Trait Implementations§

§

impl<Op, S, Cache> RefUnwindSafe for Reduce<Op, S, Cache>

§

impl<Op, S, Cache> Send for Reduce<Op, S, Cache>
where Cache: Send, Op: Send, S: Send,

§

impl<Op, S, Cache> Sync for Reduce<Op, S, Cache>
where Cache: Sync, Op: Sync, S: Sync,

§

impl<Op, S, Cache> Unpin for Reduce<Op, S, Cache>
where Cache: Unpin, Op: Unpin, S: Unpin,

§

impl<Op, S, Cache> UnwindSafe for Reduce<Op, S, Cache>
where Cache: UnwindSafe, Op: UnwindSafe, S: 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> BitSetInterface for T
where T: LevelMasksExt + IntoIterator<Item = usize>,

§

type BlockIter<'a> = CachingBlockIter<&'a T> where T: 'a

source§

fn block_iter(&self) -> <T as BitSetInterface>::BlockIter<'_>

§

type Iter<'a> = <<T as BitSetInterface>::BlockIter<'a> as BlockIterator>::IndexIter where T: 'a

source§

fn iter(&self) -> <T as BitSetInterface>::Iter<'_>

§

type IntoBlockIter = CachingBlockIter<T>

source§

fn into_block_iter(self) -> <T as BitSetInterface>::IntoBlockIter

source§

fn contains(&self, index: usize) -> bool

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> 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> 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.