Skip to main content

DerefIri

Trait DerefIri 

Source
pub trait DerefIri {
    // Required method
    fn deref_iri(
        self,
        base: Option<&IriS>,
        prefixmap: Option<&PrefixMap>,
    ) -> Result<Self, DerefError>
       where Self: Sized;
}
Expand description

A trait for dereferencing IRIs with an optional base IRI and a PrefixMap

Required Methods§

Source

fn deref_iri( self, base: Option<&IriS>, prefixmap: Option<&PrefixMap>, ) -> Result<Self, DerefError>
where Self: Sized,

Dereferences the IRI using the provided base IRI and PrefixMap

Returns a new instance with the dereferenced IRI or a DerefError if dereferencing fails

§Fields:
  • base: An optional base IRI
  • prefixmap: An optional PrefixMap

Implementations on Foreign Types§

Source§

impl<T: DerefIri> DerefIri for Option<T>

Source§

fn deref_iri( self, base: Option<&IriS>, prefixmap: Option<&PrefixMap>, ) -> Result<Self, DerefError>
where Self: Sized,

Source§

impl<T: DerefIri> DerefIri for Box<T>

Source§

fn deref_iri( self, base: Option<&IriS>, prefixmap: Option<&PrefixMap>, ) -> Result<Self, DerefError>
where Self: Sized,

Source§

impl<T: DerefIri> DerefIri for Vec<T>

Source§

fn deref_iri( self, base: Option<&IriS>, prefixmap: Option<&PrefixMap>, ) -> Result<Self, DerefError>
where Self: Sized,

Implementors§