pub struct FunctionTerm {
pub name: Name,
pub args: Vec<Term>,
}Expand description
A reference to a numeric function (fluent) with its arguments.
For example, (distance ?from ?to) becomes:
FunctionTerm { name: "distance", args: [Variable("?from"), Variable("?to")] }Fields§
§name: NameThe function (fluent) name.
args: Vec<Term>The arguments to the function, each a constant name or variable reference.
Trait Implementations§
Source§impl Clone for FunctionTerm
impl Clone for FunctionTerm
Source§fn clone(&self) -> FunctionTerm
fn clone(&self) -> FunctionTerm
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 FunctionTerm
impl Debug for FunctionTerm
Source§impl PartialEq for FunctionTerm
impl PartialEq for FunctionTerm
Source§fn eq(&self, other: &FunctionTerm) -> bool
fn eq(&self, other: &FunctionTerm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FunctionTerm
impl Serialize for FunctionTerm
impl StructuralPartialEq for FunctionTerm
Auto Trait Implementations§
impl Freeze for FunctionTerm
impl RefUnwindSafe for FunctionTerm
impl Send for FunctionTerm
impl Sync for FunctionTerm
impl Unpin for FunctionTerm
impl UnsafeUnpin for FunctionTerm
impl UnwindSafe for FunctionTerm
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