pub trait DocumentParser<S, D, E> {
// Required method
fn parse(source: S) -> Result<D, E>;
}Expand description
Trait for a document parser from a S source
format to a D document. Will return the
parsed document or an E error.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.