pub trait IntoDistributedStream {
type DistStream: DistributedStream<Item = Self::Item>;
type Item;
// Required method
fn into_dist_stream(self) -> Self::DistStream
where Self: Sized;
// Provided methods
fn par_stream_mut(
&mut self,
) -> <&mut Self as IntoDistributedStream>::DistStream
where for<'a> &'a mut Self: IntoDistributedStream { ... }
fn dist_stream(&self) -> <&Self as IntoDistributedStream>::DistStream
where for<'a> &'a Self: IntoDistributedStream { ... }
}Required Associated Types§
type DistStream: DistributedStream<Item = Self::Item>
type Item
Required Methods§
fn into_dist_stream(self) -> Self::DistStreamwhere
Self: Sized,
Provided Methods§
fn par_stream_mut(&mut self) -> <&mut Self as IntoDistributedStream>::DistStreamwhere
for<'a> &'a mut Self: IntoDistributedStream,
fn dist_stream(&self) -> <&Self as IntoDistributedStream>::DistStreamwhere
for<'a> &'a Self: IntoDistributedStream,
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.