Skip to main content

DocumentParser

Trait DocumentParser 

Source
pub trait DocumentParser: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn supports_extension(&self, extension: &str) -> bool;
    fn parse(&self, input: ParserInput<'_>) -> ParsedDocument;
}

Required Methods§

Source

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

Source

fn supports_extension(&self, extension: &str) -> bool

Source

fn parse(&self, input: ParserInput<'_>) -> ParsedDocument

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§