pub enum Term<I = IriBuf, B = BlankIdBuf, L = Literal<StringLiteral, I>> {
Blank(B),
Iri(I),
Literal(L),
}Expand description
gRDF term.
Either a blank node identifier, IRI or literal value.
Variants
Blank(B)
Blank node identifier.
Iri(I)
IRI.
Literal(L)
Literal value.
Implementations
sourceimpl<I, B, L> Term<I, B, L>
impl<I, B, L> Term<I, B, L>
pub fn is_blank(&self) -> bool
pub fn is_iri(&self) -> bool
pub fn is_literal(&self) -> bool
pub fn as_blank(&self) -> Option<&B>
pub fn into_blank(self) -> Option<B>
pub fn as_iri(&self) -> Option<&I>
pub fn into_iri(self) -> Option<I>
pub fn as_literal(&self) -> Option<&L>
pub fn into_literal(self) -> Option<L>
sourceimpl Term
impl Term
pub fn as_term_ref(&self) -> TermRef<'_>
pub fn as_object_ref(&self) -> TermRef<'_>
Trait Implementations
sourceimpl<'a> From<&'a Term<IriBuf, BlankIdBuf, Literal<StringLiteral, IriBuf, LanguageTagBuf<Vec<u8, Global>>>>> for TermRef<'a>
impl<'a> From<&'a Term<IriBuf, BlankIdBuf, Literal<StringLiteral, IriBuf, LanguageTagBuf<Vec<u8, Global>>>>> for TermRef<'a>
sourceimpl<I: Ord, B: Ord, L: Ord> Ord for Term<I, B, L>
impl<I: Ord, B: Ord, L: Ord> Ord for Term<I, B, L>
sourceimpl<I1: PartialEq<I2>, B1: PartialEq<B2>, L1: PartialEq<L2>, I2, B2, L2> PartialEq<Term<I2, B2, L2>> for Term<I1, B1, L1>
impl<I1: PartialEq<I2>, B1: PartialEq<B2>, L1: PartialEq<L2>, I2, B2, L2> PartialEq<Term<I2, B2, L2>> for Term<I1, B1, L1>
sourceimpl<I1: PartialOrd<I2>, B1: PartialOrd<B2>, L1: PartialOrd<L2>, I2, B2, L2> PartialOrd<Term<I2, B2, L2>> for Term<I1, B1, L1>
impl<I1: PartialOrd<I2>, B1: PartialOrd<B2>, L1: PartialOrd<L2>, I2, B2, L2> PartialOrd<Term<I2, B2, L2>> for Term<I1, B1, L1>
sourcefn partial_cmp(&self, other: &Term<I2, B2, L2>) -> Option<Ordering>
fn partial_cmp(&self, other: &Term<I2, B2, L2>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl<I: Copy, B: Copy, L: Copy> Copy for Term<I, B, L>
impl<I: Eq, B: Eq, L: Eq> Eq for Term<I, B, L>
impl<I, B, L> StructuralEq for Term<I, B, L>
Auto Trait Implementations
impl<I, B, L> RefUnwindSafe for Term<I, B, L> where
B: RefUnwindSafe,
I: RefUnwindSafe,
L: RefUnwindSafe,
impl<I, B, L> Send for Term<I, B, L> where
B: Send,
I: Send,
L: Send,
impl<I, B, L> Sync for Term<I, B, L> where
B: Sync,
I: Sync,
L: Sync,
impl<I, B, L> Unpin for Term<I, B, L> where
B: Unpin,
I: Unpin,
L: Unpin,
impl<I, B, L> UnwindSafe for Term<I, B, L> where
B: UnwindSafe,
I: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more