Enum syn::BinOp
[−]
[src]
pub enum BinOp {
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 BinOp[src]
Trait Implementations
impl ToTokens for BinOp[src]
impl Debug for BinOp[src]
impl Copy for BinOp[src]
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
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 !=.