Trait timely::dataflow::operators::core::enterleave::Enter

source ·
pub trait Enter<G: Scope, T: Timestamp + Refines<G::Timestamp>, C: Container> {
    // Required method
    fn enter<'a>(&self, _: &Child<'a, G, T>) -> StreamCore<Child<'a, G, T>, C>;
}
Expand description

Extension trait to move a Stream into a child of its current Scope.

Required Methods§

source

fn enter<'a>(&self, _: &Child<'a, G, T>) -> StreamCore<Child<'a, G, T>, C>

Moves the Stream argument into a child 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<G: Scope, T: Timestamp + Refines<G::Timestamp>, C: Data + Container> Enter<G, T, C> for StreamCore<G, C>