pub trait EnterAt<G: Scope, T: Timestamp, D: Data> {
    // Required method
    fn enter_at<'a, F: FnMut(&D) -> T + 'static>(
        &self,
        scope: &Iterative<'a, G, T>,
        initial: F
    ) -> Stream<Iterative<'a, G, T>, D>;
}
Expand description

Extension trait to move a Stream into a child of its current Scope setting the timestamp for each element.

Required Methods§

source

fn enter_at<'a, F: FnMut(&D) -> T + 'static>( &self, scope: &Iterative<'a, G, T>, initial: F ) -> Stream<Iterative<'a, G, T>, D>

Moves the Stream argument into a child of its current Scope setting the timestamp for each element by initial.

§Examples
use timely::dataflow::scopes::Scope;
use timely::dataflow::operators::{EnterAt, Leave, ToStream};

timely::example(|outer| {
    let stream = (0..9u64).to_stream(outer);
    let output = outer.iterative(|inner| {
        stream.enter_at(inner, |x| *x).leave()
    });
});

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<G: Scope, T: Timestamp, D: Data, E: Enter<G, Product<<G as ScopeParent>::Timestamp, T>, Vec<D>>> EnterAt<G, T, D> for E