[][src]Struct itertools::structs::UniqueBy

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct UniqueBy<I: Iterator, V, F> { /* fields omitted */ }

An iterator adapter to filter out duplicate elements.

See .unique_by() for more information.

Trait Implementations

impl<I, V, F> Iterator for UniqueBy<I, V, F> where
    I: Iterator,
    V: Eq + Hash,
    F: FnMut(&I::Item) -> V, 
[src]

type Item = I::Item

The type of the elements being iterated over.

impl<I: Clone + Iterator, V: Clone, F: Clone> Clone for UniqueBy<I, V, F>[src]

impl<I, V, F> Debug for UniqueBy<I, V, F> where
    I: Iterator + Debug,
    V: Debug + Hash + Eq
[src]

Auto Trait Implementations

impl<I, V, F> Send for UniqueBy<I, V, F> where
    F: Send,
    I: Send,
    V: Send

impl<I, V, F> Sync for UniqueBy<I, V, F> where
    F: Sync,
    I: Sync,
    V: Sync

impl<I, V, F> Unpin for UniqueBy<I, V, F> where
    F: Unpin,
    I: Unpin,
    V: Unpin

impl<I, V, F> UnwindSafe for UniqueBy<I, V, F> where
    F: UnwindSafe,
    I: UnwindSafe,
    V: UnwindSafe

impl<I, V, F> RefUnwindSafe for UniqueBy<I, V, F> where
    F: RefUnwindSafe,
    I: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]