srdf::srdf_parser

Trait RDFParse

Source
pub trait RDFParse<RDF: SRDF> {
    type Output;

    // Required method
    fn parse(&mut self, rdf: RDF) -> Result<Self::Output, RDF::Err>;
}
Expand description

The following code is an attempt to define parser combinators where the input is an RDF graph instead of a sequence of characters Some parts of this code are inspired by Combine

Represents a generic parser of RDF data

Required Associated Types§

Source

type Output

The type which is returned if the parser is successful.

Required Methods§

Source

fn parse(&mut self, rdf: RDF) -> Result<Self::Output, RDF::Err>

Implementors§