Skip to main content

Projection

Trait Projection 

Source
pub trait Projection<A>: Send + Sync {
    type Out: Send + Sync + 'static;

    const MAX_EMITS: usize;

    // Required method
    fn project<Sink>(&self, input: &A, sink: &mut Sink)
       where Sink: ProjectionSink<Self::Out>;
}
Expand description

Retained projection for UniConstraintStream::project: maps one entity to a bounded number of scoring rows.

Required Associated Constants§

Source

const MAX_EMITS: usize

Declared maximum number of rows one project call emits. Sources combine it (a merge adds both bounds); nothing reads it at runtime.

Required Associated Types§

Source

type Out: Send + Sync + 'static

The emitted row type; it need not be Clone.

Required Methods§

Source

fn project<Sink>(&self, input: &A, sink: &mut Sink)
where Sink: ProjectionSink<Self::Out>,

Emits the rows for input into sink.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§