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
BiAdd
The +
operator (addition)
BiSub
The -
operator (subtraction)
BiMul
The *
operator (multiplication)
BiDiv
The /
operator (division)
BiRem
The %
operator (modulus)
BiAnd
The &&
operator (logical and)
BiOr
The ||
operator (logical or)
BiBitXor
The ^
operator (bitwise xor)
BiBitAnd
The &
operator (bitwise and)
BiBitOr
The |
operator (bitwise or)
BiShl
The <<
operator (shift left)
BiShr
The >>
operator (shift right)
BiEq
The ==
operator (equality)
BiLt
The <
operator (less than)
BiLe
The <=
operator (less than or equal to)
BiNe
The !=
operator (not equal to)
BiGe
The >=
operator (greater than or equal to)
BiGt
The >
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: Hasher
1.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) -> bool
1.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