Enum evalexpr::Operator [−][src]
pub enum Operator {}Show variants
RootNode, Add, Sub, Neg, Mul, Div, Mod, Exp, Eq, Neq, Gt, Lt, Geq, Leq, And, Or, Not, Assign, AddAssign, SubAssign, MulAssign, DivAssign, ModAssign, ExpAssign, AndAssign, OrAssign, Tuple, Chain, Const { value: Value, }, VariableIdentifier { identifier: String, }, FunctionIdentifier { identifier: String, },
Expand description
An enum that represents operators in the operator tree.
Variants
A root node in the operator tree. The whole expression is stored under a root node, as well as each subexpression surrounded by parentheses.
A binary addition operator.
A binary subtraction operator.
A unary negation operator.
A binary multiplication operator.
A binary division operator.
A binary modulo operator.
A binary exponentiation operator.
A binary equality comparator.
A binary inequality comparator.
A binary greater-than comparator.
A binary lower-than comparator.
A binary greater-than-or-equal comparator.
A binary lower-than-or-equal comparator.
A binary logical and operator.
A binary logical or operator.
A binary logical not operator.
A binary assignment operator.
A binary add-assign operator.
A binary subtract-assign operator.
A binary multiply-assign operator.
A binary divide-assign operator.
A binary modulo-assign operator.
A binary exponentiate-assign operator.
A binary and-assign operator.
A binary or-assign operator.
An n-ary tuple constructor.
An n-ary subexpression chain.
A constant value.
Show fields
Fields of Const
value: Value
The value of the constant.
A variable identifier.
Show fields
Fields of VariableIdentifier
identifier: String
The identifier of the variable.
A function identifier.
Show fields
Fields of FunctionIdentifier
identifier: String
The identifier of the function.
Trait Implementations
impl StructuralPartialEq for Operator
[src]
Auto Trait Implementations
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more