pub enum CowId<'a> {
BlankId(Cow<'a, BlankId>),
Iri(Cow<'a, IriBuf>),
}Variants§
Implementations§
Trait Implementations§
impl<'a> Eq for CowId<'a>
Source§impl From<BlankIdBuf> for CowId<'_>
impl From<BlankIdBuf> for CowId<'_>
Source§fn from(value: BlankIdBuf) -> Self
fn from(value: BlankIdBuf) -> Self
Converts to this type from the input type.
impl IsGraph for CowId<'_>
impl IsObject for CowId<'_>
impl IsSubject for CowId<'_>
Source§impl<'a> Ord for CowId<'a>
impl<'a> Ord for CowId<'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<'a> PartialOrd for CowId<'a>
impl<'a> PartialOrd for CowId<'a>
Source§impl RdfDisplay for CowId<'_>
impl RdfDisplay for CowId<'_>
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 CowId<'a>
Auto Trait Implementations§
impl<'a> Freeze for CowId<'a>
impl<'a> RefUnwindSafe for CowId<'a>
impl<'a> Send for CowId<'a>
impl<'a> Sync for CowId<'a>
impl<'a> Unpin for CowId<'a>
impl<'a> UnsafeUnpin for CowId<'a>
impl<'a> UnwindSafe for CowId<'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.