Enum syntex_syntax::ast::BinOp_
[−]
[src]
pub enum BinOp_ {
BiAdd,
BiSub,
BiMul,
BiDiv,
BiRem,
BiAnd,
BiOr,
BiBitXor,
BiBitAnd,
BiBitOr,
BiShl,
BiShr,
BiEq,
BiLt,
BiLe,
BiNe,
BiGe,
BiGt,
}Variants
BiAddThe + operator (addition)
BiSubThe - operator (subtraction)
BiMulThe * operator (multiplication)
BiDivThe / operator (division)
BiRemThe % operator (modulus)
BiAndThe && operator (logical and)
BiOrThe || operator (logical or)
BiBitXorThe ^ operator (bitwise xor)
BiBitAndThe & operator (bitwise and)
BiBitOrThe | operator (bitwise or)
BiShlThe << operator (shift left)
BiShrThe >> operator (shift right)
BiEqThe == operator (equality)
BiLtThe < operator (less than)
BiLeThe <= operator (less than or equal to)
BiNeThe != operator (not equal to)
BiGeThe >= operator (greater than or equal to)
BiGtThe > operator (greater than)
Methods
impl BinOp_[src]
fn to_string(&self) -> &'static str
fn lazy(&self) -> bool
fn is_shift(&self) -> bool
fn is_comparison(&self) -> bool
fn is_by_value(&self) -> bool
Returns true if the binary operator takes its arguments by value
Trait Implementations
impl Copy for BinOp_[src]
impl Debug for BinOp_[src]
impl Hash for BinOp_[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for BinOp_[src]
impl Encodable for BinOp_[src]
impl Eq for BinOp_[src]
impl PartialEq for BinOp_[src]
fn eq(&self, __arg_0: &BinOp_) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Clone for BinOp_[src]
fn clone(&self) -> BinOp_
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more