pub struct Atom {
pub predicate: PredicateSymbol,
pub terms: Vec<Term>,
}Expand description
Datalog atom: predicate(term_1, ..., term_n).
Fields§
§predicate: PredicateSymbolPredicate identifier.
terms: Vec<Term>Ordered list of terms.
Implementations§
Trait Implementations§
Source§impl Display for Atom
Display an Atom as predicate(term_1, term_2, …). Used
directly by Term’s std::fmt::Display impl for non-2-arity
triple terms and available to error messages / debugging.
impl Display for Atom
Display an Atom as predicate(term_1, term_2, …). Used
directly by Term’s std::fmt::Display impl for non-2-arity
triple terms and available to error messages / debugging.
impl Eq for Atom
impl StructuralPartialEq for Atom
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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