pub struct GroundAtom {
pub predicate: PredicateSymbol,
pub args: Vec<GroundTerm>,
}Expand description
Ground form of an Atom — the value
form with no variables anywhere in the argument tree. Used
inside GroundTerm::TripleTerm so quoted-triple facts can
be stored alongside flat facts in a fact set (TT1).
Fields§
§predicate: PredicateSymbolPredicate of the ground atom.
args: Vec<GroundTerm>Ground arguments in positional order.
Implementations§
Trait Implementations§
Source§impl Clone for GroundAtom
impl Clone for GroundAtom
Source§impl Debug for GroundAtom
impl Debug for GroundAtom
Source§impl Display for GroundAtom
Display a GroundAtom as predicate(arg_1, arg_2, …).
Used by GroundTerm’s std::fmt::Display impl for non-2-arity
triple-term values.
impl Display for GroundAtom
Display a GroundAtom as predicate(arg_1, arg_2, …).
Used by GroundTerm’s std::fmt::Display impl for non-2-arity
triple-term values.
impl Eq for GroundAtom
Source§impl Hash for GroundAtom
impl Hash for GroundAtom
Source§impl Ord for GroundAtom
impl Ord for GroundAtom
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GroundAtom
impl PartialEq for GroundAtom
Source§impl PartialOrd for GroundAtom
impl PartialOrd for GroundAtom
impl StructuralPartialEq for GroundAtom
Auto Trait Implementations§
impl Freeze for GroundAtom
impl RefUnwindSafe for GroundAtom
impl Send for GroundAtom
impl Sync for GroundAtom
impl Unpin for GroundAtom
impl UnsafeUnpin for GroundAtom
impl UnwindSafe for GroundAtom
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