pub trait LinkedDataResource<I: Interpretation = (), V: Vocabulary = ()> {
// Required method
fn interpretation(
&self,
vocabulary: &mut V,
interpretation: &mut I,
) -> ResourceInterpretation<'_, I, V>;
// Provided methods
fn lexical_representation<'a>(
&'a self,
vocabulary: &'a mut V,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a, V>>
where I: ReverseTermInterpretation<Iri = V::Iri, BlankId = V::BlankId, Literal = V::Literal> { ... }
fn reference_interpretation(
&self,
vocabulary: &mut V,
interpretation: &mut I,
) -> ResourceInterpretation<'_, I, V> { ... }
}Expand description
Type that can have an interpretation.
Required Methods§
fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
Provided Methods§
fn lexical_representation<'a>( &'a self, vocabulary: &'a mut V, interpretation: &'a mut I, ) -> Option<CowRdfTerm<'a, V>>
fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".