pub enum BinaryAssignmentOperator {
Show 15 variants
LogicalNullishAssignment,
AddAssign,
SubtractAssign,
MultiplyAssign,
DivideAssign,
ModuloAssign,
ExponentAssign,
LogicalAndAssign,
LogicalOrAssign,
BitwiseShiftLeftAssign,
BitwiseShiftRightAssign,
BitwiseShiftRightUnsignedAssign,
BitwiseAndAssign,
BitwiseXOrAssign,
BitOrAssign,
}
Expand description
Straight assignment is not here because LHS can be destructuring
Variants§
LogicalNullishAssignment
AddAssign
SubtractAssign
MultiplyAssign
DivideAssign
ModuloAssign
ExponentAssign
LogicalAndAssign
LogicalOrAssign
BitwiseShiftLeftAssign
BitwiseShiftRightAssign
BitwiseShiftRightUnsignedAssign
BitwiseAndAssign
BitwiseXOrAssign
BitOrAssign
Trait Implementations§
source§impl Clone for BinaryAssignmentOperator
impl Clone for BinaryAssignmentOperator
source§fn clone(&self) -> BinaryAssignmentOperator
fn clone(&self) -> BinaryAssignmentOperator
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 BinaryAssignmentOperator
impl Debug for BinaryAssignmentOperator
source§impl From<BinaryAssignmentOperator> for BinaryOperator
impl From<BinaryAssignmentOperator> for BinaryOperator
source§fn from(val: BinaryAssignmentOperator) -> Self
fn from(val: BinaryAssignmentOperator) -> Self
Converts to this type from the input type.
source§impl Operator for BinaryAssignmentOperator
impl Operator for BinaryAssignmentOperator
source§fn precedence(&self) -> u8
fn precedence(&self) -> u8
source§fn associativity_direction(&self) -> AssociativityDirection
fn associativity_direction(&self) -> AssociativityDirection
Returns the associativity of the operator. Taken from: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#table
source§fn is_associative(&self) -> bool
fn is_associative(&self) -> bool
Is associative with self https://en.wikipedia.org/wiki/Associative_property
fn precedence_and_associativity_direction(&self) -> (u8, AssociativityDirection)
source§impl PartialEq<BinaryAssignmentOperator> for BinaryAssignmentOperator
impl PartialEq<BinaryAssignmentOperator> for BinaryAssignmentOperator
source§fn eq(&self, other: &BinaryAssignmentOperator) -> bool
fn eq(&self, other: &BinaryAssignmentOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for BinaryAssignmentOperator
impl SelfRustTokenize for BinaryAssignmentOperator
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self