IntoStreamTuple

Trait IntoStreamTuple 

Source
pub trait IntoStreamTuple<I> {
    type Output: StreamTuple<I>;

    // Required method
    fn into_stream_tuple(self) -> Self::Output;
}
Expand description

Conversion into StreamTuple.

Required Associated Types§

Source

type Output: StreamTuple<I>

Output type of conversion.

Required Methods§

Source

fn into_stream_tuple(self) -> Self::Output

Converts a tuple of stream references into a stream tuple.

§Examples
use zrx_stream::combinator::IntoStreamTuple;
use zrx_stream::workspace::Workspace;

// Create workspace and workflow
let workspace = Workspace::<&str>::new();
let workflow = workspace.add_workflow();

// Create streams (heterogeneous)
let a = workflow.add_source::<i32>();
let b = workflow.add_source::<bool>();

// Create stream tuple
let tuple = (&a, &b).into_stream_tuple();

Implementations on Foreign Types§

Source§

impl<I, T1> IntoStreamTuple<I> for (&Stream<I, T1>,)

Source§

type Output = (Stream<I, T1>,)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2, T3> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>, &Stream<I, T3>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>, Stream<I, T3>)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2, T3, T4> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>, &Stream<I, T3>, &Stream<I, T4>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>, Stream<I, T3>, Stream<I, T4>)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2, T3, T4, T5> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>, &Stream<I, T3>, &Stream<I, T4>, &Stream<I, T5>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>, Stream<I, T3>, Stream<I, T4>, Stream<I, T5>)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2, T3, T4, T5, T6> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>, &Stream<I, T3>, &Stream<I, T4>, &Stream<I, T5>, &Stream<I, T6>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>, Stream<I, T3>, Stream<I, T4>, Stream<I, T5>, Stream<I, T6>)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2, T3, T4, T5, T6, T7> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>, &Stream<I, T3>, &Stream<I, T4>, &Stream<I, T5>, &Stream<I, T6>, &Stream<I, T7>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>, Stream<I, T3>, Stream<I, T4>, Stream<I, T5>, Stream<I, T6>, Stream<I, T7>)

Source§

fn into_stream_tuple(self) -> Self::Output

Source§

impl<I, T1, T2, T3, T4, T5, T6, T7, T8> IntoStreamTuple<I> for (&Stream<I, T1>, &Stream<I, T2>, &Stream<I, T3>, &Stream<I, T4>, &Stream<I, T5>, &Stream<I, T6>, &Stream<I, T7>, &Stream<I, T8>)

Source§

type Output = (Stream<I, T1>, Stream<I, T2>, Stream<I, T3>, Stream<I, T4>, Stream<I, T5>, Stream<I, T6>, Stream<I, T7>, Stream<I, T8>)

Source§

fn into_stream_tuple(self) -> Self::Output

Implementors§

Source§

impl<I, T> IntoStreamTuple<I> for &Stream<I, T>

Source§

type Output = (Stream<I, T>,)