[][src]Trait chopper_lib::source::source_factory::SourceFactory

pub trait SourceFactory {
    fn can_create_from(&self, path: &Path) -> bool;
fn create_source(
        &mut self,
        reader: Box<dyn Read>
    ) -> CliResult<Box<dyn Source>>; }

Required methods

fn can_create_from(&self, path: &Path) -> bool

fn create_source(&mut self, reader: Box<dyn Read>) -> CliResult<Box<dyn Source>>

Loading content...

Implementors

impl SourceFactory for CSVFactory[src]

impl SourceFactory for DCFactory[src]

Loading content...