pub trait ForkStream: Stream<Item: Clone> + Sized {
// Provided method
fn fork(self) -> CloneStream<Self> { ... }
}
Expand description
A trait that turns a Stream
with cloneable Item
s into a cloneable stream
that yields items of the same original item type.
Provided Methods§
Sourcefn fork(self) -> CloneStream<Self>
fn fork(self) -> CloneStream<Self>
Forks the stream into a new stream that can be cloned.
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.