Struct Intersection

pub struct Intersection<'a, T, S> { /* private fields */ }

A lazy iterator producing elements in the intersection of IndexSets.

This struct is created by the IndexSet::intersection method. See its documentation for more.

Trait Implementations

impl<'a, T, S> Iterator for Intersection<'a, T, S> where T: Eq + Hash, S: BuildHasher,

type Item = &'a T;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

impl<T, S> Clone for Intersection<'_, T, S>

fn clone(&self) -> Self

impl<T, S> Debug for Intersection<'_, T, S> where T: Debug + Eq + Hash, S: BuildHasher,

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

impl<T, S> DoubleEndedIterator for Intersection<'_, T, S> where T: Eq + Hash, S: BuildHasher,

fn next_back(&mut self) -> Option<Self::Item>

impl<T, S> FusedIterator for Intersection<'_, T, S> where T: Eq + Hash, S: BuildHasher,

Auto Trait Implementations

impl<'a, T, S> Freeze for Intersection<'a, T, S> where Iter<'a, T>: Freeze, &'a IndexSet<T, S>: Freeze,

impl<'a, T, S> RefUnwindSafe for Intersection<'a, T, S> where Iter<'a, T>: RefUnwindSafe, &'a IndexSet<T, S>: RefUnwindSafe,

impl<'a, T, S> Send for Intersection<'a, T, S> where Iter<'a, T>: Send, &'a IndexSet<T, S>: Send,

impl<'a, T, S> Sync for Intersection<'a, T, S> where Iter<'a, T>: Sync, &'a IndexSet<T, S>: Sync,

impl<'a, T, S> Unpin for Intersection<'a, T, S> where Iter<'a, T>: Unpin, &'a IndexSet<T, S>: Unpin,

impl<'a, T, S> UnsafeUnpin for Intersection<'a, T, S> where Iter<'a, T>: UnsafeUnpin, &'a IndexSet<T, S>: UnsafeUnpin,

impl<'a, T, S> UnwindSafe for Intersection<'a, T, S> where Iter<'a, T>: UnwindSafe, &'a IndexSet<T, S>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for Intersection<'a, T, S> where I: Iterator,

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

impl<T> Borrow<T> for Intersection<'a, T, S> where T: ?Sized,

impl<T> BorrowMut<T> for Intersection<'a, T, S> where T: ?Sized,

impl<T> CloneToUninit for Intersection<'a, T, S> where T: Clone,

impl<T> From<T> for Intersection<'a, T, S>

impl<T> ToOwned for Intersection<'a, T, S> where T: Clone,

impl<T, U> Into<U> for Intersection<'a, T, S> where U: From<T>,

impl<T, U> TryFrom<U> for Intersection<'a, T, S> where U: Into<T>,

impl<T, U> TryInto<U> for Intersection<'a, T, S> where U: TryFrom<T>,