Trait IriInterpretation

Source
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§

Source

fn iri_interpretation(&self, iri: &I) -> Option<Self::Resource>

Returns the interpretation of the given IRI, if any.

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl IriInterpretation<Iri> for ()

Source§

fn iri_interpretation(&self, iri: &Iri) -> Option<Self::Resource>

Source§

impl IriInterpretation<IriBuf> for ()

Source§

impl<I, T: IriInterpretation<I>> IriInterpretation<I> for &T

Source§

fn iri_interpretation(&self, iri: &I) -> Option<Self::Resource>

Source§

impl<I, T: IriInterpretation<I>> IriInterpretation<I> for &mut T

Source§

fn iri_interpretation(&self, iri: &I) -> Option<Self::Resource>

Implementors§