pub trait IterStream<I: IntoIterator + Send> {
// Required methods
fn stream(self) -> impl Stream<Item = <I as IntoIterator>::Item> + Send;
fn try_stream(
self,
) -> impl TryStream<Ok = <I as IntoIterator>::Item, Error = Error, Item = Result<<I as IntoIterator>::Item, Error>> + Send;
}Required Methods§
Sourcefn stream(self) -> impl Stream<Item = <I as IntoIterator>::Item> + Send
fn stream(self) -> impl Stream<Item = <I as IntoIterator>::Item> + Send
Convert an Iterator into a Stream
Sourcefn try_stream(
self,
) -> impl TryStream<Ok = <I as IntoIterator>::Item, Error = Error, Item = Result<<I as IntoIterator>::Item, Error>> + Send
fn try_stream( self, ) -> impl TryStream<Ok = <I as IntoIterator>::Item, Error = Error, Item = Result<<I as IntoIterator>::Item, Error>> + Send
Convert an Iterator into a TryStream
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.