pub trait Loader {
    type Output;
    fn id(&self, iri: Iri<'_>) -> Option<Id>;
fn iri(&self, id: Id) -> Option<Iri<'_>>;
fn load_context<'a>(
        &'a mut self,
        url: Iri<'_>
    ) -> BoxFuture<'a, Result<RemoteContext<Self::Output>, Error>>; fn id_opt(&self, iri: Option<Iri<'_>>) -> Option<Id> { ... } }

Associated Types

Required methods

Returns the unique identifier associated to the given IRI, if any.

Returns the IRI with the given identifier, if any.

Provided methods

Returns the unique identifier associated to the given IRI, if any.

Returns None if the input iri is None.

Implementors