Trait TryAsIri

Source
pub trait TryAsIri: MaybeIri {
    // Required method
    fn try_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 try_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> TryAsIri for Id<I, B>

Source§

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