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

Maximum number of rows one project call emits. Emitting more panics, naming the projection and both counts. Retained scoring state sizes each entity’s row list by it, and sources combine it (a merge adds both bounds).

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§