pub enum Term {
Var(String),
Atom(String),
Placeholder,
}Expand description
A single term in a Datalog predicate.
Variables start with an uppercase letter (e.g. X, Name), atoms start
with a lowercase letter (e.g. alice, edge), and _ is the anonymous
placeholder that matches anything without binding.
Variants§
Var(String)
A named variable (e.g. X).
Atom(String)
A ground constant (e.g. alice).
Placeholder
The anonymous wildcard _.
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 UnsafeUnpin 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