Enum rustc_hir::hir::BinOpKind [−][src]
pub enum BinOpKind {
Show variants
Add,
Sub,
Mul,
Div,
Rem,
And,
Or,
BitXor,
BitAnd,
BitOr,
Shl,
Shr,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
}Variants
Expand description
The + operator (addition).
Expand description
The - operator (subtraction).
Expand description
The * operator (multiplication).
Expand description
The / operator (division).
Expand description
The % operator (modulus).
Expand description
The && operator (logical and).
Expand description
The || operator (logical or).
Expand description
The ^ operator (bitwise xor).
Expand description
The & operator (bitwise and).
Expand description
The | operator (bitwise or).
Expand description
The << operator (shift left).
Expand description
The >> operator (shift right).
Expand description
The == operator (equality).
Expand description
The < operator (less than).
Expand description
The <= operator (less than or equal to).
Expand description
The != operator (not equal to).
Expand description
The >= operator (greater than or equal to).
Expand description
The > operator (greater than).
Implementations
impl BinOpKind[src]
impl BinOpKind[src]Trait Implementations
impl<__CTX> HashStable<__CTX> for BinOpKind where
__CTX: HashStableContext, [src]
impl<__CTX> HashStable<__CTX> for BinOpKind where
__CTX: HashStableContext, [src]fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
impl Copy for BinOpKind[src]
impl StructuralPartialEq for BinOpKind[src]
Auto Trait Implementations
impl RefUnwindSafe for BinOpKind
impl Send for BinOpKind
impl Sync for BinOpKind
impl Unpin for BinOpKind
impl UnwindSafe for BinOpKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more