Enum js::syntax::ast::op::UnaryOp[src]

pub enum UnaryOp {
    UnaryIncrementPost,
    UnaryIncrementPre,
    UnaryDecrementPost,
    UnaryDecrementPre,
    UnaryMinus,
    UnaryPlus,
    UnaryNot,
}

A unary operation on a single value

Variants

UnaryIncrementPost

a++ - increment the value

UnaryIncrementPre

++a - increment the value

UnaryDecrementPost

a-- - decrement the value

UnaryDecrementPre

--a - decrement the value

UnaryMinus

-a - negate the value

UnaryPlus

+a - convert to a number

UnaryNot

!a - get the opposite of the boolean value

Trait Implementations

impl Show for UnaryOp

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for UnaryOp

fn eq(&self, __arg_0: &UnaryOp) -> bool

fn ne(&self, __arg_0: &UnaryOp) -> bool

impl Clone for UnaryOp

fn clone(&self) -> UnaryOp

fn clone_from(&mut self, source: &Self)