Enum oxc_syntax::operator::BinaryOperator
source · pub enum BinaryOperator {
Show 22 variants
Equality,
Inequality,
StrictEquality,
StrictInequality,
LessThan,
LessEqualThan,
GreaterThan,
GreaterEqualThan,
ShiftLeft,
ShiftRight,
ShiftRightZeroFill,
Addition,
Subtraction,
Multiplication,
Division,
Remainder,
BitwiseOR,
BitwiseXOR,
BitwiseAnd,
In,
Instanceof,
Exponential,
}
Variants§
Equality
Inequality
StrictEquality
StrictInequality
LessThan
LessEqualThan
GreaterThan
GreaterEqualThan
ShiftLeft
ShiftRight
ShiftRightZeroFill
Addition
Subtraction
Multiplication
Division
Remainder
BitwiseOR
BitwiseXOR
BitwiseAnd
In
Instanceof
Exponential
Implementations§
source§impl BinaryOperator
impl BinaryOperator
pub fn is_equality(self) -> bool
pub fn is_compare(self) -> bool
pub fn is_arithmetic(self) -> bool
pub fn is_relational(self) -> bool
pub fn is_bitwise(self) -> bool
pub fn is_numeric_or_string_binary_operator(self) -> bool
pub fn is_keyword(self) -> bool
pub fn compare_inverse_operator(self) -> Option<Self>
pub fn equality_inverse_operator(self) -> Option<Self>
pub fn as_str(&self) -> &'static str
Trait Implementations§
source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
source§fn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
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 BinaryOperator
impl Debug for BinaryOperator
source§impl Hash for BinaryOperator
impl Hash for BinaryOperator
source§impl PartialEq<BinaryOperator> for BinaryOperator
impl PartialEq<BinaryOperator> for BinaryOperator
source§fn eq(&self, other: &BinaryOperator) -> bool
fn eq(&self, other: &BinaryOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralEq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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