pub enum Term<I = Id, L = Literal> {
Id(I),
Literal(L),
}Expand description
gRDF term.
Either a node identifier or a literal value.
Hash implementation
It is guaranteed that the Hash implementation of Term is transparent,
meaning that the hash of Term::Id(id) the same as id and the hash of
Term::Literal(l) is the same as l.
Variants§
Implementations§
source§impl<I, L> Term<I, L>
impl<I, L> Term<I, L>
Trait Implementations§
source§impl<I: Ord, L: Ord> Ord for Term<I, L>
impl<I: Ord, L: Ord> Ord for Term<I, L>
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<I1: PartialEq<I2>, L1: PartialEq<L2>, I2, L2> PartialEq<Term<I2, L2>> for Term<I1, L1>
impl<I1: PartialEq<I2>, L1: PartialEq<L2>, I2, L2> PartialEq<Term<I2, L2>> for Term<I1, L1>
source§impl<I1: PartialOrd<I2>, L1: PartialOrd<L2>, I2, L2> PartialOrd<Term<I2, L2>> for Term<I1, L1>
impl<I1: PartialOrd<I2>, L1: PartialOrd<L2>, I2, L2> PartialOrd<Term<I2, L2>> for Term<I1, L1>
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 more