pub trait TripleParser<T> {
    type Source: TripleSource;
    fn parse(&self, data: T) -> Self::Source;

    fn parse_str<'t>(&self, txt: &'t str) -> Self::Source
    where
        &'t str: IntoParsable<Target = T>
, { ... } }
Expand description

A parser takes some data of type T, and returns a TripleSource.

Associated Types

The source produced by this parser

Required methods

Parses data into a triple source.

Provided methods

Convenient shortcut method for parsing strings.

It may not be available on some exotic parsers, but will be automatically supported for parsers supporting any BufRead or Read.

Implementors