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§
Sourcefn try_as_iri(&self) -> Option<&Self::Iri>
fn try_as_iri(&self) -> Option<&Self::Iri>
Returns a reference to the iri value, if any.