pub trait Leave<G: Scope, D: Container> {
    // Required method
    fn leave(&self) -> StreamCore<G, D>;
}
Expand description

Extension trait to move a Stream to the parent of its current Scope.

Required Methods§

source

fn leave(&self) -> StreamCore<G, D>

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()
    });
});

Implementors§

source§

impl<'a, G: Scope, D: Clone + Container, T: Timestamp + Refines<G::Timestamp>> Leave<G, D> for StreamCore<Child<'a, G, T>, D>