Enum rustc_typeck::hir::BinOp_
[−]
[src]
pub enum BinOp_ {
BiAdd,
BiSub,
BiMul,
BiDiv,
BiRem,
BiAnd,
BiOr,
BiBitXor,
BiBitAnd,
BiBitOr,
BiShl,
BiShr,
BiEq,
BiLt,
BiLe,
BiNe,
BiGe,
BiGt,
}rustc_private)Variants
BiAddrustc_private)The + operator (addition)
BiSubrustc_private)The - operator (subtraction)
BiMulrustc_private)The * operator (multiplication)
BiDivrustc_private)The / operator (division)
BiRemrustc_private)The % operator (modulus)
BiAndrustc_private)The && operator (logical and)
BiOrrustc_private)The || operator (logical or)
BiBitXorrustc_private)The ^ operator (bitwise xor)
BiBitAndrustc_private)The & operator (bitwise and)
BiBitOrrustc_private)The | operator (bitwise or)
BiShlrustc_private)The << operator (shift left)
BiShrrustc_private)The >> operator (shift right)
BiEqrustc_private)The == operator (equality)
BiLtrustc_private)The < operator (less than)
BiLerustc_private)The <= operator (less than or equal to)
BiNerustc_private)The != operator (not equal to)
BiGerustc_private)The >= operator (greater than or equal to)
BiGtrustc_private)The > operator (greater than)
Methods
impl BinOp_
fn as_str(self) -> &'static str
fn is_lazy(self) -> bool
fn is_shift(self) -> bool
fn is_comparison(self) -> bool
fn is_by_value(self) -> bool
rustc_private)Returns true if the binary operator takes its arguments by value
Trait Implementations
Derived Implementations
impl Copy for BinOp_
impl Debug for BinOp_
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for BinOp_
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
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_
impl Encodable for BinOp_
impl Eq for BinOp_
impl PartialEq<BinOp_> for BinOp_
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_
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