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>
impl<S, T, F> Stream for DedupByKey<S, T, F>
impl<'__pin, S, T, F> Unpin for DedupByKey<S, T, F>where
PinnedFieldsOf<__Origin<'__pin, S, T, F>>: Unpin,
Auto Trait Implementations§
impl<S, T, F> Freeze for DedupByKey<S, T, F>
impl<S, T, F> RefUnwindSafe for DedupByKey<S, T, F>
impl<S, T, F> Send for DedupByKey<S, T, F>
impl<S, T, F> Sync for DedupByKey<S, T, F>
impl<S, T, F> UnwindSafe for DedupByKey<S, T, F>
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_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>
fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>
Deduplicate consecutive items that the given function produces the same
key for.
Source§fn batch_with<S>(self, batch_done_stream: S) -> BatchWith<Self, S>
fn batch_with<S>(self, batch_done_stream: S) -> BatchWith<Self, S>
Buffer the items from
self
until batch_done_stream
produces a value,
and return all buffered values in one batch. Read more