Type Alias itertools::structs::Dedup

source ·
pub type Dedup<I> = DedupBy<I, DedupEq>;
Expand description

An iterator adaptor that removes repeated duplicates.

See .dedup() for more information.

Aliased Type§

struct Dedup<I> {
    iter: I,
    last: Option<Option<<NoCount as CountItem<<I as Iterator>::Item>>::CItem>>,
    f: DedupPred2CoalescePred<DedupEq>,
}

Fields§

§iter: I§last: Option<Option<<NoCount as CountItem<<I as Iterator>::Item>>::CItem>>

last is None while no item have been taken out of iter (at definition). Then last will be Some(Some(item)) until iter is exhausted, in which case last will be Some(None).

§f: DedupPred2CoalescePred<DedupEq>