pub trait Leave<G: Scope, C: Container> {
// Required method
fn leave(&self) -> StreamCore<G, C>;
}
Expand description
Extension trait to move a Stream
to the parent of its current Scope
.
Required Methods§
sourcefn leave(&self) -> StreamCore<G, C>
fn leave(&self) -> StreamCore<G, C>
Moves a Stream
to the parent of its current Scope
.
§Examples
use timely::dataflow::scopes::Scope;
use timely::dataflow::operators::{Enter, Leave, ToStream};
timely::example(|outer| {
let stream = (0..9).to_stream(outer);
let output = outer.region(|inner| {
stream.enter(inner).leave()
});
});