pub trait Rdf: Sized {
type Subject: Subject + From<Self::IRI> + From<Self::BNode> + From<IriS> + TryFrom<Self::Term> + TryFrom<Object> + Matcher<Self::Subject>;
type IRI: Iri + From<IriS> + TryFrom<Self::Term> + Matcher<Self::IRI>;
type Term: Term + From<Self::Subject> + From<Self::IRI> + From<Self::BNode> + From<Self::Literal> + From<IriS> + From<Object> + Into<Object> + Matcher<Self::Term>;
type BNode: BlankNode + TryFrom<Self::Term>;
type Literal: Literal + From<bool> + From<String> + From<i128> + From<f64> + TryFrom<Self::Term> + From<SRDFLiteral>;
type Triple: Triple<Self::Subject, Self::IRI, Self::Term>;
type Err: Display;
// Required methods
fn qualify_iri(&self, iri: &Self::IRI) -> String;
fn qualify_subject(&self, subj: &Self::Subject) -> String;
fn qualify_term(&self, term: &Self::Term) -> String;
fn prefixmap(&self) -> Option<PrefixMap>;
fn resolve_prefix_local(
&self,
prefix: &str,
local: &str,
) -> Result<IriS, PrefixMapError>;
}
Required Associated Types§
type Subject: Subject + From<Self::IRI> + From<Self::BNode> + From<IriS> + TryFrom<Self::Term> + TryFrom<Object> + Matcher<Self::Subject>
type IRI: Iri + From<IriS> + TryFrom<Self::Term> + Matcher<Self::IRI>
type Term: Term + From<Self::Subject> + From<Self::IRI> + From<Self::BNode> + From<Self::Literal> + From<IriS> + From<Object> + Into<Object> + Matcher<Self::Term>
type BNode: BlankNode + TryFrom<Self::Term>
type Literal: Literal + From<bool> + From<String> + From<i128> + From<f64> + TryFrom<Self::Term> + From<SRDFLiteral>
type Triple: Triple<Self::Subject, Self::IRI, Self::Term>
type Err: Display
Required Methods§
fn qualify_iri(&self, iri: &Self::IRI) -> String
fn qualify_subject(&self, subj: &Self::Subject) -> String
fn qualify_term(&self, term: &Self::Term) -> String
fn prefixmap(&self) -> Option<PrefixMap>
Sourcefn resolve_prefix_local(
&self,
prefix: &str,
local: &str,
) -> Result<IriS, PrefixMapError>
fn resolve_prefix_local( &self, prefix: &str, local: &str, ) -> Result<IriS, PrefixMapError>
Resolves a a prefix and a local name and obtains the corresponding full IriS
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.