Skip to main content

StreamExtKit

Trait StreamExtKit 

Source
pub trait StreamExtKit: Stream {
    // Required methods
    async fn count(self) -> usize;
    async fn for_each(self, f: impl FnMut(Self::Item));
}

Required Methods§

Source

async fn count(self) -> usize

Source

async fn for_each(self, f: impl FnMut(Self::Item))

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§