[][src]Trait dubp_documents::DocumentParser

pub trait DocumentParser<S, D, E> {
    fn parse(source: S) -> Result<D, E>;
}

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

fn parse(source: S) -> Result<D, E>

Parse a source and return a document or an error.

Loading content...

Implementors

Loading content...