Pipeline

Trait Pipeline 

Source
pub trait Pipeline<A, B, C> {
    // Required methods
    fn first(&self, a: A) -> B;
    fn second(&self, b: B) -> C;

    // Provided method
    fn between(&self) { ... }
}
Expand description

Implement this trait for calling ParserIterator::pipeline.

Required Methods§

Source

fn first(&self, a: A) -> B

Transforms a batch of inputs in parallel

Source

fn second(&self, b: B) -> C

Transforms the same batch processed in first() in parallel

Provided Methods§

Source

fn between(&self)

Runs once the batch in first() has finished completely.

Implementors§