pub enum IdRef<'a> {
BlankId(&'a BlankId),
Iri(&'a Iri),
}Expand description
Resource identifier reference.
Variants§
Implementations§
Source§impl<'a> IdRef<'a>
impl<'a> IdRef<'a>
Sourcepub fn is_blank_id(&self) -> bool
pub fn is_blank_id(&self) -> bool
Checks if this is a blank node identifier.
Sourcepub fn as_blank_id(&self) -> Option<&'a BlankId>
pub fn as_blank_id(&self) -> Option<&'a BlankId>
Returns this identifier as a blank node identifier, if it is one.
Trait Implementations§
Source§impl Comparable<Id> for IdRef<'_>
impl Comparable<Id> for IdRef<'_>
impl<'a> Copy for IdRef<'a>
impl<'a> Eq for IdRef<'a>
Source§impl Equivalent<Id> for IdRef<'_>
impl Equivalent<Id> for IdRef<'_>
Source§fn equivalent(&self, key: &Id) -> bool
fn equivalent(&self, key: &Id) -> bool
Compare self to
key and return true if they are equal.Source§impl IntoOwned for IdRef<'_>
impl IntoOwned for IdRef<'_>
Source§type Owned = Id
type Owned = Id
The fully owned type produced by
into_owned.Source§fn into_owned(self) -> Id
fn into_owned(self) -> Id
Converts
self into a fully owned value, consuming it. Read moreSource§impl<'a> Ord for IdRef<'a>
impl<'a> Ord for IdRef<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&BlankIdBuf> for IdRef<'_>
impl PartialEq<&BlankIdBuf> for IdRef<'_>
Source§fn eq(&self, other: &&BlankIdBuf) -> bool
fn eq(&self, other: &&BlankIdBuf) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<BlankIdBuf> for IdRef<'_>
impl PartialEq<BlankIdBuf> for IdRef<'_>
Source§fn eq(&self, other: &BlankIdBuf) -> bool
fn eq(&self, other: &BlankIdBuf) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for IdRef<'a>
impl<'a> PartialOrd for IdRef<'a>
Source§impl PartialOrd<CowId<'_>> for IdRef<'_>
impl PartialOrd<CowId<'_>> for IdRef<'_>
Source§impl PartialOrd<Id> for IdRef<'_>
impl PartialOrd<Id> for IdRef<'_>
Source§impl PartialOrd<IdRef<'_>> for CowId<'_>
impl PartialOrd<IdRef<'_>> for CowId<'_>
Source§impl<'a> PartialOrd<IdRef<'a>> for Id
impl<'a> PartialOrd<IdRef<'a>> for Id
Source§impl RdfDisplay for IdRef<'_>
impl RdfDisplay for IdRef<'_>
Source§fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
Source§fn rdf_display(&self) -> RdfDisplayed<&Self>
fn rdf_display(&self) -> RdfDisplayed<&Self>
Prepare the value to be formatted as an RDF syntax element.
impl<'a> StructuralPartialEq for IdRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for IdRef<'a>
impl<'a> RefUnwindSafe for IdRef<'a>
impl<'a> Send for IdRef<'a>
impl<'a> Sync for IdRef<'a>
impl<'a> Unpin for IdRef<'a>
impl<'a> UnsafeUnpin for IdRef<'a>
impl<'a> UnwindSafe for IdRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.