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, }
rustc_private
)Variants
Add
rustc_private
)The +
operator (addition)
Sub
rustc_private
)The -
operator (subtraction)
Mul
rustc_private
)The *
operator (multiplication)
Div
rustc_private
)The /
operator (division)
Rem
rustc_private
)The %
operator (modulus)
And
rustc_private
)The &&
operator (logical and)
Or
rustc_private
)The ||
operator (logical or)
BitXor
rustc_private
)The ^
operator (bitwise xor)
BitAnd
rustc_private
)The &
operator (bitwise and)
BitOr
rustc_private
)The |
operator (bitwise or)
Shl
rustc_private
)The <<
operator (shift left)
Shr
rustc_private
)The >>
operator (shift right)
Eq
rustc_private
)The ==
operator (equality)
Lt
rustc_private
)The <
operator (less than)
Le
rustc_private
)The <=
operator (less than or equal to)
Ne
rustc_private
)The !=
operator (not equal to)
Ge
rustc_private
)The >=
operator (greater than or equal to)
Gt
rustc_private
)The >
operator (greater than)
Methods
impl BinOpKind
[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
rustc_private
)Returns true
if the binary operator takes its arguments by value
Trait Implementations
Derived Implementations
impl Copy for BinOpKind
[src]
impl Debug for BinOpKind
[src]
impl Hash for BinOpKind
[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 BinOpKind
[src]
impl Encodable for BinOpKind
[src]
impl Eq for BinOpKind
[src]
impl PartialEq for BinOpKind
[src]
fn eq(&self, __arg_0: &BinOpKind) -> 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 BinOpKind
[src]
fn clone(&self) -> BinOpKind
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