pub enum Value<T, B> {
Literal(Literal<StringLiteral, T, LanguageTagBuf<Vec<u8, Global>>>),
Reference(Subject<T, B>),
}
Expand description
RDF value.
Variants§
Trait Implementations§
source§impl<T, B, N> DisplayWithContext<N> for Value<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, N> DisplayWithContext<N> for Value<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
source§impl<T, B> Ord for Value<T, B>where
T: Ord,
B: Ord,
impl<T, B> Ord for Value<T, B>where
T: Ord,
B: Ord,
1.21.0 · 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<T, B> PartialEq<Value<T, B>> for Value<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
impl<T, B> PartialEq<Value<T, B>> for Value<T, B>where
T: PartialEq<T>,
B: PartialEq<B>,
source§impl<T, B> PartialOrd<Value<T, B>> for Value<T, B>where
T: PartialOrd<T>,
B: PartialOrd<B>,
impl<T, B> PartialOrd<Value<T, B>> for Value<T, B>where
T: PartialOrd<T>,
B: PartialOrd<B>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T, B> Eq for Value<T, B>where
T: Eq,
B: Eq,
impl<T, B> StructuralEq for Value<T, B>
impl<T, B> StructuralPartialEq for Value<T, B>
Auto Trait Implementations§
impl<T, B> RefUnwindSafe for Value<T, B>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> Send for Value<T, B>where
B: Send,
T: Send,
impl<T, B> Sync for Value<T, B>where
B: Sync,
T: Sync,
impl<T, B> Unpin for Value<T, B>where
B: Unpin,
T: Unpin,
impl<T, B> UnwindSafe for Value<T, B>where
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.