pub struct Dedup<S: Stream> { /* private fields */ }
Expand description
Stream adapter produced by StreamExt::dedup
.
Trait Implementations§
source§impl<S> Stream for Dedup<S>where
S: Stream,
S::Item: Clone + PartialEq,
impl<S> Stream for Dedup<S>where S: Stream, S::Item: Clone + PartialEq,
impl<'__pin, S: Stream> Unpin for Dedup<S>where __Origin<'__pin, S>: Unpin,
Auto Trait Implementations§
impl<S> RefUnwindSafe for Dedup<S>where S: RefUnwindSafe, <S as Stream>::Item: RefUnwindSafe,
impl<S> Send for Dedup<S>where S: Send, <S as Stream>::Item: Send,
impl<S> Sync for Dedup<S>where S: Sync, <S as Stream>::Item: Sync,
impl<S> UnwindSafe for Dedup<S>where S: UnwindSafe, <S as Stream>::Item: 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
source§impl<S> StreamExt for Swhere
S: Stream,
impl<S> StreamExt for Swhere S: Stream,
source§fn dedup(self) -> Dedup<Self>where
Self::Item: Clone + PartialEq,
fn dedup(self) -> Dedup<Self>where Self::Item: Clone + PartialEq,
Deduplicate consecutive identical items. Read more
source§fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>where
T: PartialEq,
F: FnMut(&Self::Item) -> T,
fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>where T: PartialEq, F: FnMut(&Self::Item) -> T,
Deduplicate consecutive items that the given function produces the same
key for.