pub struct ArgumentPosition {
pub predicate: PredicateSymbol,
pub slot: AtomSlot,
pub rule: RuleIndex,
pub site: RuleSite,
}Expand description
One argument slot of one atom occurrence: a node of the position graph.
Positions are refined by occurrence: a head slot feeds a body slot only when the head and body atoms can denote the same fact, so constants that keep two patterns apart also keep their positions apart.
Fields§
§predicate: PredicateSymbolThe atom’s predicate.
slot: AtomSlotThe top-level argument slot.
rule: RuleIndexThe rule containing the atom.
site: RuleSiteThe head, or the positive body literal holding the atom.
Implementations§
Trait Implementations§
Source§impl Clone for ArgumentPosition
impl Clone for ArgumentPosition
Source§impl Debug for ArgumentPosition
impl Debug for ArgumentPosition
Source§impl<'de> Deserialize<'de> for ArgumentPosition
impl<'de> Deserialize<'de> for ArgumentPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ArgumentPosition
impl Display for ArgumentPosition
impl Eq for ArgumentPosition
Source§impl Hash for ArgumentPosition
impl Hash for ArgumentPosition
Source§impl Ord for ArgumentPosition
impl Ord for ArgumentPosition
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 ArgumentPosition
impl PartialEq for ArgumentPosition
Source§impl PartialOrd for ArgumentPosition
impl PartialOrd for ArgumentPosition
Source§impl Serialize for ArgumentPosition
impl Serialize for ArgumentPosition
impl StructuralPartialEq for ArgumentPosition
Auto Trait Implementations§
impl Forget for ArgumentPosition
impl Freeze for ArgumentPosition
impl Move for ArgumentPosition
impl RefUnwindSafe for ArgumentPosition
impl Send for ArgumentPosition
impl Sync for ArgumentPosition
impl Unpin for ArgumentPosition
impl UnsafeUnpin for ArgumentPosition
impl UnwindSafe for ArgumentPosition
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