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§
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>>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".