pub trait AsIri: MaybeIri { // Required method fn as_iri(&self) -> Option<&Self::Iri>; // Provided method fn is_iri(&self) -> bool { ... } }
Types that may have an iri representation that can be borrowed.
Returns a reference to the iri value, if any.