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

pub enum CompOp {
    CompEqual,
    CompNotEqual,
    CompStrictEqual,
    CompStrictNotEqual,
    CompGreaterThan,
    CompGreaterThanOrEqual,
    CompLessThan,
    CompLessThanOrEqual,
}

A comparitive operation between 2 values

Variants

CompEqual

a == b - Equality

CompNotEqual

a != b - Unequality

CompStrictEqual

a === b - Strict equality

CompStrictNotEqual

a !== b - Strict unequality

CompGreaterThan

a > b - If a is greater than b

CompGreaterThanOrEqual

a >= b - If a is greater than or equal to b

CompLessThan

a < b - If a is less than b

CompLessThanOrEqual

a <= b - If a is less than or equal to b

Trait Implementations

impl Show for CompOp

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

Derived Implementations

impl PartialEq for CompOp

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

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

impl Clone for CompOp

fn clone(&self) -> CompOp

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