Skip to main content

ProjectionProvider

Trait ProjectionProvider 

Source
pub trait ProjectionProvider: Send + Sync {
    // Required methods
    fn kind(&self) -> &ProjectionKindRef;
    fn config_shape(&self) -> &ContentId;
    fn project(
        &self,
        inputs: &ProjectionInputs,
        config: &Datum,
    ) -> Result<ProjectionOutput, ProjectionError>;
}
Expand description

Loaded implementation of an open projection kind.

Required Methods§

Source

fn kind(&self) -> &ProjectionKindRef

Open kind implemented by this provider.

Source

fn config_shape(&self) -> &ContentId

Stable Shape identity used to check configuration before invocation.

Source

fn project( &self, inputs: &ProjectionInputs, config: &Datum, ) -> Result<ProjectionOutput, ProjectionError>

Projects solely over the bounded immutable input view.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§