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

pub trait SourceFactory {
    fn can_create_from_format(&self, format: &String) -> bool;
fn can_create_from_previewer(&self, previewer: &Box<dyn Preview>) -> bool;
fn create_source(
        &mut self,
        previewer: Box<dyn Preview>
    ) -> CliResult<Box<dyn Source>>; }

Required methods

fn can_create_from_format(&self, format: &String) -> bool

fn can_create_from_previewer(&self, previewer: &Box<dyn Preview>) -> bool

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

Loading content...

Implementors

impl SourceFactory for CSVFactory[src]

impl SourceFactory for DCFactory[src]

Loading content...