[][src]Struct vec_collections::SortedIter

pub struct SortedIter<I: Iterator>(_);

An iterator that is guaranteed to be sorted according to the order of its elements

This implements Iterator, but in addition implements all the methods on Iterator that preserve the order.

It also provides additional methods to perform optimized operations on the iterators.

Methods

impl<K: Ord, I: Iterator<Item = K>> SortedIter<I>[src]

Important traits for SortedIter<I>
pub fn take(self, n: usize) -> SortedIter<impl Iterator<Item = K>>[src]

Important traits for SortedIter<I>
pub fn take_while<P: FnMut(&I::Item) -> bool>(
    self,
    predicate: P
) -> SortedIter<impl Iterator<Item = K>>
[src]

Important traits for SortedIter<I>
pub fn skip(self, n: usize) -> SortedIter<impl Iterator<Item = K>>[src]

Important traits for SortedIter<I>
pub fn skip_while<P: FnMut(&I::Item) -> bool>(
    self,
    predicate: P
) -> SortedIter<impl Iterator<Item = K>>
[src]

Important traits for SortedIter<I>
pub fn filter<P: FnMut(&I::Item) -> bool>(
    self,
    predicate: P
) -> SortedIter<impl Iterator<Item = K>>
[src]

Important traits for SortedIter<I>
pub fn step_by(self, step: usize) -> SortedIter<impl Iterator<Item = K>>[src]

Important traits for SortedIter<I>
pub fn intersection<J: Iterator<Item = K>>(
    self,
    that: SortedIter<J>
) -> SortedIter<impl Iterator<Item = K>>
[src]

Important traits for SortedIter<I>
pub fn union<J: Iterator<Item = K>>(
    self,
    that: SortedIter<J>
) -> SortedIter<impl Iterator<Item = K>>
[src]

Trait Implementations

impl<'a, T: Ord> From<Iter<'a, T>> for SortedIter<Iter<'a, T>>[src]

impl<'a, T: Ord> From<Union<'a, T>> for SortedIter<Union<'a, T>>[src]

impl<'a, T: Ord> From<Intersection<'a, T>> for SortedIter<Intersection<'a, T>>[src]

impl<'a, T: Ord> From<SymmetricDifference<'a, T>> for SortedIter<SymmetricDifference<'a, T>>[src]

impl<'a, T: Ord> From<Difference<'a, T>> for SortedIter<Difference<'a, T>>[src]

impl<'a, T: Ord> From<Range<'a, T>> for SortedIter<Range<'a, T>>[src]

impl<'a, K: Ord, V> From<Keys<'a, K, V>> for SortedIter<Keys<'a, K, V>>[src]

impl<T: Ord> From<IntoIter<T>> for SortedIter<IntoIter<T>>[src]

impl<K, I: Iterator<Item = K>> Iterator for SortedIter<I>[src]

type Item = K

The type of the elements being iterated over.

Auto Trait Implementations

impl<I> Send for SortedIter<I> where
    I: Send,
    <I as Iterator>::Item: Send

impl<I> Sync for SortedIter<I> where
    I: Sync,
    <I as Iterator>::Item: Sync

impl<I> Unpin for SortedIter<I> where
    I: Unpin,
    <I as Iterator>::Item: Unpin

impl<I> UnwindSafe for SortedIter<I> where
    I: UnwindSafe,
    <I as Iterator>::Item: UnwindSafe

impl<I> RefUnwindSafe for SortedIter<I> where
    I: RefUnwindSafe,
    <I as Iterator>::Item: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]