Enum php_parser_rs::parser::ast::operators::ComparisonOperation
source · pub enum ComparisonOperation {
Equal {
left: Box<Expression>,
double_equals: Span,
right: Box<Expression>,
},
Identical {
left: Box<Expression>,
triple_equals: Span,
right: Box<Expression>,
},
NotEqual {
left: Box<Expression>,
bang_equals: Span,
right: Box<Expression>,
},
AngledNotEqual {
left: Box<Expression>,
angled_left_right: Span,
right: Box<Expression>,
},
NotIdentical {
left: Box<Expression>,
bang_double_equals: Span,
right: Box<Expression>,
},
LessThan {
left: Box<Expression>,
less_than: Span,
right: Box<Expression>,
},
GreaterThan {
left: Box<Expression>,
greater_than: Span,
right: Box<Expression>,
},
LessThanOrEqual {
left: Box<Expression>,
less_than_equals: Span,
right: Box<Expression>,
},
GreaterThanOrEqual {
left: Box<Expression>,
greater_than_equals: Span,
right: Box<Expression>,
},
Spaceship {
left: Box<Expression>,
spaceship: Span,
right: Box<Expression>,
},
}
Variants§
Equal
Identical
NotEqual
AngledNotEqual
NotIdentical
LessThan
GreaterThan
LessThanOrEqual
GreaterThanOrEqual
Spaceship
Trait Implementations§
source§impl Clone for ComparisonOperation
impl Clone for ComparisonOperation
source§fn clone(&self) -> ComparisonOperation
fn clone(&self) -> ComparisonOperation
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 ComparisonOperation
impl Debug for ComparisonOperation
source§impl<'de> Deserialize<'de> for ComparisonOperation
impl<'de> Deserialize<'de> for ComparisonOperation
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 ComparisonOperation
impl JsonSchema for ComparisonOperation
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<ComparisonOperation> for ComparisonOperation
impl PartialEq<ComparisonOperation> for ComparisonOperation
source§fn eq(&self, other: &ComparisonOperation) -> bool
fn eq(&self, other: &ComparisonOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.