Skip to main content

DictParser

Trait DictParser 

Source
pub trait DictParser: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn format_id(&self) -> &'static str;
    fn validate(&self, path: &Path) -> Result<ValidationReport>;
    fn parse(
        &self,
        path: &Path,
    ) -> Result<Box<dyn Iterator<Item = Result<DictEntry>>>>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn format_id(&self) -> &'static str

Source

fn validate(&self, path: &Path) -> Result<ValidationReport>

Source

fn parse( &self, path: &Path, ) -> Result<Box<dyn Iterator<Item = Result<DictEntry>>>>

Implementors§