pub enum ExecutableTerm {
Variable {
name: String,
},
Anonymous,
Integer {
value: i64,
},
Float {
ieee754_bits: u64,
},
String {
value: String,
},
Symbol {
value: String,
},
List {
items: Vec<ExecutableTerm>,
},
Cons {
head: Box<ExecutableTerm>,
tail: Box<ExecutableTerm>,
},
Compound {
functor: String,
arguments: Vec<ExecutableTerm>,
},
PredicateReference {
name: String,
},
Aggregate {
operator: AggregateOperator,
variable: String,
},
}Expand description
Complete source term representation used by executable atoms.
Variants§
Variable
Anonymous
Integer
Float
String
Symbol
List
Fields
§
items: Vec<ExecutableTerm>Cons
Compound
PredicateReference
Aggregate
Trait Implementations§
Source§impl Clone for ExecutableTerm
impl Clone for ExecutableTerm
Source§fn clone(&self) -> ExecutableTerm
fn clone(&self) -> ExecutableTerm
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 ExecutableTerm
impl Debug for ExecutableTerm
impl Eq for ExecutableTerm
Source§impl PartialEq for ExecutableTerm
impl PartialEq for ExecutableTerm
Source§impl Serialize for ExecutableTerm
impl Serialize for ExecutableTerm
impl StructuralPartialEq for ExecutableTerm
Auto Trait Implementations§
impl Freeze for ExecutableTerm
impl RefUnwindSafe for ExecutableTerm
impl Send for ExecutableTerm
impl Sync for ExecutableTerm
impl Unpin for ExecutableTerm
impl UnsafeUnpin for ExecutableTerm
impl UnwindSafe for ExecutableTerm
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