Enum php_parser_rs::parser::ast::operators::ArithmeticOperation
source · pub enum ArithmeticOperation {
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 ArithmeticOperation
impl Clone for ArithmeticOperation
source§fn clone(&self) -> ArithmeticOperation
fn clone(&self) -> ArithmeticOperation
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 Debug for ArithmeticOperation
impl Debug for ArithmeticOperation
source§impl<'de> Deserialize<'de> for ArithmeticOperation
impl<'de> Deserialize<'de> for ArithmeticOperation
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 ArithmeticOperation
impl JsonSchema for ArithmeticOperation
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 PartialEq<ArithmeticOperation> for ArithmeticOperation
impl PartialEq<ArithmeticOperation> for ArithmeticOperation
source§fn eq(&self, other: &ArithmeticOperation) -> bool
fn eq(&self, other: &ArithmeticOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.