Struct async_rx::DedupByKey
source · pub struct DedupByKey<S, T, F> { /* private fields */ }
Expand description
Stream adapter produced by StreamExt::dedup_by_key
.
Trait Implementations§
source§impl<S, T, F> Stream for DedupByKey<S, T, F>where
S: Stream,
T: PartialEq,
F: FnMut(&S::Item) -> T,
impl<S, T, F> Stream for DedupByKey<S, T, F>where S: Stream, T: PartialEq, F: FnMut(&S::Item) -> T,
impl<'__pin, S, T, F> Unpin for DedupByKey<S, T, F>where __Origin<'__pin, S, T, F>: Unpin,
Auto Trait Implementations§
impl<S, T, F> RefUnwindSafe for DedupByKey<S, T, F>where F: RefUnwindSafe, S: RefUnwindSafe, T: RefUnwindSafe,
impl<S, T, F> Send for DedupByKey<S, T, F>where F: Send, S: Send, T: Send,
impl<S, T, F> Sync for DedupByKey<S, T, F>where F: Sync, S: Sync, T: Sync,
impl<S, T, F> UnwindSafe for DedupByKey<S, T, F>where F: UnwindSafe, S: UnwindSafe, T: 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.