Trait sophia_api::parser::TripleParser
source · [−]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
type Source: TripleSource
type Source: TripleSource
The source produced by this parser