Enum ezno_parser::operators::UnaryOperator
source · pub enum UnaryOperator {
Plus,
Negation,
BitwiseNot,
LogicalNot,
Await,
TypeOf,
Void,
Delete,
Yield,
DelegatedYield,
}
Variants§
Trait Implementations§
source§impl Clone for UnaryOperator
impl Clone for UnaryOperator
source§fn clone(&self) -> UnaryOperator
fn clone(&self) -> UnaryOperator
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 UnaryOperator
impl Debug for UnaryOperator
source§impl Operator for UnaryOperator
impl Operator for UnaryOperator
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<UnaryOperator> for UnaryOperator
impl PartialEq<UnaryOperator> for UnaryOperator
source§fn eq(&self, other: &UnaryOperator) -> bool
fn eq(&self, other: &UnaryOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for UnaryOperator
impl SelfRustTokenize for UnaryOperator
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