pub trait TripleParser<T> {
type Source: TripleSource;
// Required method
fn parse(&self, data: T) -> Self::Source;
// Provided method
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
.
Required Associated Types§
Sourcetype Source: TripleSource
type Source: TripleSource
The source produced by this parser