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§
fn columns(&self) -> Vec<String>
fn kind(&self) -> CorpusKind
fn source(&self) -> String
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".