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§
Sourcetype Output: StreamTuple<I>
type Output: StreamTuple<I>
Output type of conversion.
Required Methods§
Sourcefn into_stream_tuple(self) -> Self::Output
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();