pub trait IntoStream {
    type Item;
    type IntoStream: Stream<Item = Self::Item>;
    fn into_stream(self) -> Self::IntoStream;
}
Expand description

Helper trait for converting values into a Stream.

By implementing IntoStream for a type, you define how it will be converted to an iterator. This is common for types which describe a collection of some kind.

Associated Types

The type of the elements being iterated over.

Which kind of stream are we turning this into?

Required methods

Creates a stream from a value.

Implementors