Enum oxc_syntax::operator::AssignmentOperator
source · pub enum AssignmentOperator {
Show 16 variants
Assign,
Addition,
Subtraction,
Multiplication,
Division,
Remainder,
ShiftLeft,
ShiftRight,
ShiftRightZeroFill,
BitwiseOR,
BitwiseXOR,
BitwiseAnd,
LogicalAnd,
LogicalOr,
LogicalNullish,
Exponential,
}
Variants§
Assign
Addition
Subtraction
Multiplication
Division
Remainder
ShiftLeft
ShiftRight
ShiftRightZeroFill
BitwiseOR
BitwiseXOR
BitwiseAnd
LogicalAnd
LogicalOr
LogicalNullish
Exponential
Implementations§
source§impl AssignmentOperator
impl AssignmentOperator
pub fn is_logical_operator(self) -> bool
pub fn is_arithmetic(self) -> bool
pub fn is_bitwise(self) -> bool
pub fn as_str(&self) -> &'static str
Trait Implementations§
source§impl Clone for AssignmentOperator
impl Clone for AssignmentOperator
source§fn clone(&self) -> AssignmentOperator
fn clone(&self) -> AssignmentOperator
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 AssignmentOperator
impl Debug for AssignmentOperator
source§impl Hash for AssignmentOperator
impl Hash for AssignmentOperator
source§impl PartialEq<AssignmentOperator> for AssignmentOperator
impl PartialEq<AssignmentOperator> for AssignmentOperator
source§fn eq(&self, other: &AssignmentOperator) -> bool
fn eq(&self, other: &AssignmentOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AssignmentOperator
impl Eq for AssignmentOperator
impl StructuralEq for AssignmentOperator
impl StructuralPartialEq for AssignmentOperator
Auto Trait Implementations§
impl RefUnwindSafe for AssignmentOperator
impl Send for AssignmentOperator
impl Sync for AssignmentOperator
impl Unpin for AssignmentOperator
impl UnwindSafe for AssignmentOperator
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