pub trait IriInterpretation<I: ?Sized>: Interpretation {
// Required method
fn iri_interpretation(&self, iri: &I) -> Option<Self::Resource>;
// Provided method
fn lexical_iri_interpretation(
&self,
vocabulary: &impl IriVocabulary<Iri = I>,
iri: &Iri,
) -> Option<Self::Resource>
where I: Sized { ... }
}
Expand description
IRI Interpretation.
Required Methods§
Sourcefn iri_interpretation(&self, iri: &I) -> Option<Self::Resource>
fn iri_interpretation(&self, iri: &I) -> Option<Self::Resource>
Returns the interpretation of the given IRI, if any.
Provided Methods§
fn lexical_iri_interpretation(
&self,
vocabulary: &impl IriVocabulary<Iri = I>,
iri: &Iri,
) -> Option<Self::Resource>where
I: Sized,
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.