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 for UnaryOperator
 
impl PartialEq 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
source§impl Serialize for UnaryOperator
 
impl Serialize for UnaryOperator
source§impl TryFrom<&TSXToken> for UnaryOperator
 
impl TryFrom<&TSXToken> for UnaryOperator
source§impl Visitable for UnaryOperator
 
impl Visitable for UnaryOperator
fn visit<TData>( &self, _visitors: &mut (impl VisitorReceiver<TData> + ?Sized), _data: &mut TData, _settings: &VisitSettings, _chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, _visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), _data: &mut TData, _settings: &VisitSettings, _chain: &mut Annex<'_, Chain> )
impl Copy for UnaryOperator
impl Eq for UnaryOperator
impl StructuralEq for UnaryOperator
impl StructuralPartialEq for UnaryOperator
Auto Trait Implementations§
impl RefUnwindSafe for UnaryOperator
impl Send for UnaryOperator
impl Sync for UnaryOperator
impl Unpin for UnaryOperator
impl UnwindSafe for UnaryOperator
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