pub struct BlockIter<B> { /* private fields */ }
Expand description
Represents a view into the blocks of a set or combination of sets. An iterator over the elements
can be obtained with into_iter()
.
Implementations§
Source§impl<B> BlockIter<B>
impl<B> BlockIter<B>
Sourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Returns the iterator over raw blocks.
Source§impl<B> BlockIter<B>where
B: ExactSizeIterator<Item = Block>,
impl<B> BlockIter<B>where
B: ExactSizeIterator<Item = Block>,
Sourcepub fn collect<T>(self) -> Twhere
T: FromIterator<Id>,
pub fn collect<T>(self) -> Twhere
T: FromIterator<Id>,
Equivalent to self.into_iter().collect()
.
Sourcepub fn union<I>(self, other: I) -> BlockIter<Union<B, I::Blocks>>where
I: IntoBlockIterator,
pub fn union<I>(self, other: I) -> BlockIter<Union<B, I::Blocks>>where
I: IntoBlockIterator,
Takes the union of the blocks with another block iterator. Equivalent to self | other
.
Sourcepub fn intersection<I>(self, other: I) -> BlockIter<Intersection<B, I::Blocks>>where
I: IntoBlockIterator,
pub fn intersection<I>(self, other: I) -> BlockIter<Intersection<B, I::Blocks>>where
I: IntoBlockIterator,
Takes the intersection of the blocks with another block iterator. Equivalent to
self & other
.
Sourcepub fn difference<I>(self, other: I) -> BlockIter<Difference<B, I::Blocks>>where
I: IntoBlockIterator,
pub fn difference<I>(self, other: I) -> BlockIter<Difference<B, I::Blocks>>where
I: IntoBlockIterator,
Takes the difference of the blocks with another block iterator. Equivalent to
self - other
.
Sourcepub fn symmetric_difference<I>(
self,
other: I,
) -> BlockIter<SymmetricDifference<B, I::Blocks>>where
I: IntoBlockIterator,
pub fn symmetric_difference<I>(
self,
other: I,
) -> BlockIter<SymmetricDifference<B, I::Blocks>>where
I: IntoBlockIterator,
Takes the symmetric difference of the blocks with another block iterator. Equivalent to
self ^ other
.
Trait Implementations§
Source§impl<B> IntoBlockIterator for BlockIter<B>where
B: ExactSizeIterator<Item = Block>,
impl<B> IntoBlockIterator for BlockIter<B>where
B: ExactSizeIterator<Item = Block>,
Source§impl<B> IntoIterator for BlockIter<B>where
B: ExactSizeIterator<Item = Block>,
impl<B> IntoIterator for BlockIter<B>where
B: ExactSizeIterator<Item = Block>,
Auto Trait Implementations§
impl<B> Freeze for BlockIter<B>where
B: Freeze,
impl<B> RefUnwindSafe for BlockIter<B>where
B: RefUnwindSafe,
impl<B> Send for BlockIter<B>where
B: Send,
impl<B> Sync for BlockIter<B>where
B: Sync,
impl<B> Unpin for BlockIter<B>where
B: Unpin,
impl<B> UnwindSafe for BlockIter<B>where
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