pub trait Interpretation {
type Resource;
// Required methods
fn iri(&self, iri: Iri<&str>) -> Option<Self::Resource>;
fn literal<'a>(
&self,
literal: impl Into<LiteralRef<'a>>,
) -> Option<Self::Resource>;
// Provided method
fn term<'a>(&self, term: impl Into<TermRef<'a>>) -> Option<Self::Resource> { ... }
}Expand description
RDF resource interpretation.
Required Associated Types§
Required Methods§
fn iri(&self, iri: Iri<&str>) -> Option<Self::Resource>
fn literal<'a>( &self, literal: impl Into<LiteralRef<'a>>, ) -> Option<Self::Resource>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".