pub enum ArithmeticOperationExpression {
Addition {
left: Box<Expression>,
plus: Span,
right: Box<Expression>,
},
Subtraction {
left: Box<Expression>,
minus: Span,
right: Box<Expression>,
},
Multiplication {
left: Box<Expression>,
asterisk: Span,
right: Box<Expression>,
},
Division {
left: Box<Expression>,
slash: Span,
right: Box<Expression>,
},
Modulo {
left: Box<Expression>,
percent: Span,
right: Box<Expression>,
},
Exponentiation {
left: Box<Expression>,
pow: Span,
right: Box<Expression>,
},
Negative {
minus: Span,
right: Box<Expression>,
},
Positive {
plus: Span,
right: Box<Expression>,
},
PreIncrement {
increment: Span,
right: Box<Expression>,
},
PostIncrement {
left: Box<Expression>,
increment: Span,
},
PreDecrement {
decrement: Span,
right: Box<Expression>,
},
PostDecrement {
left: Box<Expression>,
decrement: Span,
},
}
Variants§
Addition
Subtraction
Multiplication
Division
Modulo
Exponentiation
Negative
Positive
PreIncrement
PostIncrement
PreDecrement
PostDecrement
Trait Implementations§
Source§impl Clone for ArithmeticOperationExpression
impl Clone for ArithmeticOperationExpression
Source§fn clone(&self) -> ArithmeticOperationExpression
fn clone(&self) -> ArithmeticOperationExpression
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ArithmeticOperationExpression
impl<'de> Deserialize<'de> for ArithmeticOperationExpression
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 JsonSchema for ArithmeticOperationExpression
impl JsonSchema for ArithmeticOperationExpression
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Node for ArithmeticOperationExpression
impl Node for ArithmeticOperationExpression
Source§impl PartialEq for ArithmeticOperationExpression
impl PartialEq for ArithmeticOperationExpression
Source§fn eq(&self, other: &ArithmeticOperationExpression) -> bool
fn eq(&self, other: &ArithmeticOperationExpression) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ArithmeticOperationExpression
impl StructuralPartialEq for ArithmeticOperationExpression
Auto Trait Implementations§
impl Freeze for ArithmeticOperationExpression
impl RefUnwindSafe for ArithmeticOperationExpression
impl Send for ArithmeticOperationExpression
impl Sync for ArithmeticOperationExpression
impl Unpin for ArithmeticOperationExpression
impl UnwindSafe for ArithmeticOperationExpression
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