pub enum PrefixOperator<'s> {
Negate(&'s Token<'s>),
LogicalNot(&'s Token<'s>),
BitwiseNot(&'s Token<'s>),
Typeof(&'s Token<'s>),
Clone(&'s Token<'s>),
Delete(&'s Token<'s>),
Increment(&'s Token<'s>),
Decrement(&'s Token<'s>),
}
Expand description
A prefix operator in a PrefixExpression
.
All prefix operators share the Prefix
precedence.
Variants§
Negate(&'s Token<'s>)
Grammar: -
LogicalNot(&'s Token<'s>)
Grammar: !
BitwiseNot(&'s Token<'s>)
Grammar: ~
Typeof(&'s Token<'s>)
Grammar: typeof
Clone(&'s Token<'s>)
Grammar: clone
Delete(&'s Token<'s>)
Grammar: delete
Increment(&'s Token<'s>)
Grammar: ++
Decrement(&'s Token<'s>)
Grammar: --
Trait Implementations§
Source§impl<'s> Clone for PrefixOperator<'s>
impl<'s> Clone for PrefixOperator<'s>
Source§fn clone(&self) -> PrefixOperator<'s>
fn clone(&self) -> PrefixOperator<'s>
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<'s> Debug for PrefixOperator<'s>
impl<'s> Debug for PrefixOperator<'s>
Source§impl<'s> PartialEq for PrefixOperator<'s>
impl<'s> PartialEq for PrefixOperator<'s>
impl<'s> Copy for PrefixOperator<'s>
impl<'s> StructuralPartialEq for PrefixOperator<'s>
Auto Trait Implementations§
impl<'s> Freeze for PrefixOperator<'s>
impl<'s> RefUnwindSafe for PrefixOperator<'s>
impl<'s> Send for PrefixOperator<'s>
impl<'s> Sync for PrefixOperator<'s>
impl<'s> Unpin for PrefixOperator<'s>
impl<'s> UnwindSafe for PrefixOperator<'s>
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