pub enum Term {
Literal(Literal),
BlankNode(BlankNode),
NamedNode(NamedNode),
Collection(Vec<Spanned<Term>>),
Variable(Variable),
Invalid,
}Variants§
Literal(Literal)
BlankNode(BlankNode)
NamedNode(NamedNode)
Collection(Vec<Spanned<Term>>)
Variable(Variable)
Invalid
Implementations§
Source§impl Term
impl Term
pub fn set_context(&self, ctx: &mut Context, kind: ContextKind)
pub fn fix_spans(&mut self, len: usize)
pub fn named_node(&self) -> Option<&NamedNode>
pub fn is_subject(&self) -> bool
pub fn is_predicate(&self) -> bool
pub fn is_object(&self) -> bool
pub fn is_variable(&self) -> bool
pub fn ty(&self) -> &'static str
pub fn expand<T: Based>(&self, turtle: &T) -> Option<String>
pub fn expand_step<'a, T: Based>( &'a self, turtle: &T, done: HashSet<&'a str>, ) -> Option<String>
Trait Implementations§
impl Eq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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> 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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.