Skip to main content

IriExpansionResult

Type Alias IriExpansionResult 

Source
pub type IriExpansionResult<N> = Result<Option<Arc<Term<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>>>, RejectVocab>;
Expand description

Result of expanding a term into an IRI without a loader.

Ok(None) means the term was dropped under Action::Drop, as opposed to expanding to Term::Null.

Aliased Type§

pub enum IriExpansionResult<N> {
    Ok(Option<Arc<Term<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>>>),
    Err(RejectVocab),
}

Variants§

§1.0.0

Ok(Option<Arc<Term<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>>>)

Contains the success value

§1.0.0

Err(RejectVocab)

Contains the error value