Trait timely::dataflow::operators::core::enterleave::Leave

source ·
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§

source

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

Implementors§

source§

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