Trait rdf_types::AsIri

source ·
pub trait AsIri: MaybeIri {
    // Required method
    fn as_iri(&self) -> Option<&Self::Iri>;

    // Provided method
    fn is_iri(&self) -> bool { ... }
}
Expand description

Types that may have an iri representation that can be borrowed.

Required Methods§

source

fn as_iri(&self) -> Option<&Self::Iri>

Returns a reference to the iri value, if any.

Provided Methods§

source

fn is_iri(&self) -> bool

Implementors§

source§

impl<I, B> AsIri for Id<I, B>

source§

impl<I: AsIri, L> AsIri for Term<I, L>