Skip to main content

Projector

Trait Projector 

Source
pub trait Projector {
    // Required methods
    fn columns(&self) -> Vec<String>;
    fn kind(&self) -> CorpusKind;
    fn source(&self) -> String;
    fn project(self: Box<Self>, sink: &mut dyn FnMut(Situation)) -> Result<()>;
}
Expand description

A push-based reader over one source. project drives the sink once per source record.

Required Methods§

Source

fn columns(&self) -> Vec<String>

Source

fn kind(&self) -> CorpusKind

Source

fn source(&self) -> String

Source

fn project(self: Box<Self>, sink: &mut dyn FnMut(Situation)) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§