Enum syntax::ast::BinOpKind  [−][src]
pub enum BinOpKind {
    Add,
    Sub,
    Mul,
    Div,
    Rem,
    And,
    Or,
    BitXor,
    BitAnd,
    BitOr,
    Shl,
    Shr,
    Eq,
    Lt,
    Le,
    Ne,
    Ge,
    Gt,
}Variants
AddThe + operator (addition)
SubThe - operator (subtraction)
MulThe * operator (multiplication)
DivThe / operator (division)
RemThe % operator (modulus)
AndThe && operator (logical and)
OrThe || operator (logical or)
BitXorThe ^ operator (bitwise xor)
BitAndThe & operator (bitwise and)
BitOrThe | operator (bitwise or)
ShlThe << operator (shift left)
ShrThe >> operator (shift right)
EqThe == operator (equality)
LtThe < operator (less than)
LeThe <= operator (less than or equal to)
NeThe != operator (not equal to)
GeThe >= operator (greater than or equal to)
GtThe > operator (greater than)
Methods
impl BinOpKind[src] 
impl BinOpKindpub fn to_string(&self) -> &'static str[src] 
pub fn to_string(&self) -> &'static strpub fn lazy(&self) -> bool[src] 
pub fn lazy(&self) -> boolpub fn is_shift(&self) -> bool[src] 
pub fn is_shift(&self) -> boolpub fn is_comparison(&self) -> bool[src] 
pub fn is_comparison(&self) -> boolpub fn is_by_value(&self) -> bool[src] 
pub fn is_by_value(&self) -> boolReturns true if the binary operator takes its arguments by value
Trait Implementations
impl Clone for BinOpKind[src] 
impl Clone for BinOpKindfn clone(&self) -> BinOpKind[src] 
fn clone(&self) -> BinOpKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for BinOpKind[src] 
impl PartialEq for BinOpKindfn eq(&self, other: &BinOpKind) -> bool[src] 
fn eq(&self, other: &BinOpKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src] 
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Encodable for BinOpKind[src] 
impl Encodable for BinOpKindimpl Decodable for BinOpKind[src] 
impl Decodable for BinOpKindimpl Debug for BinOpKind[src] 
impl Debug for BinOpKindfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for BinOpKind[src] 
impl Copy for BinOpKind