Trait js::syntax::ast::op::Operator[src]
pub trait Operator {
fn get_assoc(&self) -> bool;
fn get_precedence(&self) -> uint;
fn get_precedence_and_assoc(&self) -> (uint, bool) { ... }
}Represents an operator
Required Methods
fn get_assoc(&self) -> bool
Get the associativity as a boolean that is true if it goes rightwards
fn get_precedence(&self) -> uint
Get the precedence as an unsigned integer, where the lower it is, the more precedence/priority it has
Provided Methods
fn get_precedence_and_assoc(&self) -> (uint, bool)
Get the precedence and associativity of this operator