pub enum ExecutableBodyLiteral {
Positive {
atom: ExecutableAtom,
},
Negative {
atom: ExecutableAtom,
},
Epistemic {
operator: EpistemicOperator,
negated: bool,
atom: ExecutableAtom,
},
Comparison {
left: ExecutableTerm,
operator: ComparisonOperator,
right: ExecutableTerm,
},
IsExpression {
target: String,
expression: ExecutableArithmeticExpression,
},
Univ {
term: ExecutableTerm,
parts: ExecutableTerm,
},
}Expand description
Complete executable rule-body literal.
Variants§
Positive
Fields
§
atom: ExecutableAtomNegative
Fields
§
atom: ExecutableAtomEpistemic
Comparison
IsExpression
Univ
Trait Implementations§
Source§impl Clone for ExecutableBodyLiteral
impl Clone for ExecutableBodyLiteral
Source§fn clone(&self) -> ExecutableBodyLiteral
fn clone(&self) -> ExecutableBodyLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutableBodyLiteral
impl Debug for ExecutableBodyLiteral
impl Eq for ExecutableBodyLiteral
Source§impl PartialEq for ExecutableBodyLiteral
impl PartialEq for ExecutableBodyLiteral
Source§impl Serialize for ExecutableBodyLiteral
impl Serialize for ExecutableBodyLiteral
impl StructuralPartialEq for ExecutableBodyLiteral
Auto Trait Implementations§
impl Freeze for ExecutableBodyLiteral
impl RefUnwindSafe for ExecutableBodyLiteral
impl Send for ExecutableBodyLiteral
impl Sync for ExecutableBodyLiteral
impl Unpin for ExecutableBodyLiteral
impl UnsafeUnpin for ExecutableBodyLiteral
impl UnwindSafe for ExecutableBodyLiteral
Blanket Implementations§
impl<T> Allocation for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more