pub enum TermKind {
Iri,
Literal,
BlankNode,
Triple,
Variable,
}
Expand description
The different kinds of terms that a Term
can represent.
Variants§
Iri
An RDF IRI
Literal
An RDF literal
BlankNode
An RDF blank node
Triple
An RDF-star quoted triple
Variable
A SPARQL or Notation3 variable
Trait Implementations§
Source§impl Ord for TermKind
impl Ord for TermKind
Source§impl PartialOrd for TermKind
impl PartialOrd for TermKind
Source§impl TermMatcher for TermKind
impl TermMatcher for TermKind
Matches any term if the given kind
Source§type Term = SimpleTerm<'static>
type Term = SimpleTerm<'static>
The type of term that this TermMatcher contains
Source§fn constant(&self) -> Option<&Self::Term>
fn constant(&self) -> Option<&Self::Term>
Return
None
, unless this matcher can only match a single term,
in which case this method may return that term. Read moreSource§fn gn(self) -> TermMatcherGn<Self>where
Self: Sized,
fn gn(self) -> TermMatcherGn<Self>where
Self: Sized,
Source§fn matcher_ref(&self) -> MatcherRef<'_, Self>
fn matcher_ref(&self) -> MatcherRef<'_, Self>
Return a
TermMatcher
that is actually just a reference to this one.impl Copy for TermKind
impl Eq for TermKind
impl StructuralPartialEq for TermKind
Auto Trait Implementations§
impl Freeze for TermKind
impl RefUnwindSafe for TermKind
impl Send for TermKind
impl Sync for TermKind
impl Unpin for TermKind
impl UnwindSafe for TermKind
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