pub trait LayoutParser: Send + Sync {
// Required methods
fn parse(&self, content: &str) -> DocumentStructure;
fn supports_format(&self, format: &str) -> bool;
fn name(&self) -> &'static str;
}Expand description
Trait for document layout parsers
Required Methods§
Sourcefn parse(&self, content: &str) -> DocumentStructure
fn parse(&self, content: &str) -> DocumentStructure
Parse document structure from content
Sourcefn supports_format(&self, format: &str) -> bool
fn supports_format(&self, format: &str) -> bool
Check if this parser supports a given format