Enum rustc_middle::mir::BinOp[][src]

pub enum BinOp {
    Add,
    Sub,
    Mul,
    Div,
    Rem,
    BitXor,
    BitAnd,
    BitOr,
    Shl,
    Shr,
    Eq,
    Lt,
    Le,
    Ne,
    Ge,
    Gt,
    Offset,
}

Variants

Add

The + operator (addition)

Sub

The - operator (subtraction)

Mul

The * operator (multiplication)

Div

The / operator (division)

Rem

The % operator (modulus)

BitXor

The ^ operator (bitwise xor)

BitAnd

The & operator (bitwise and)

BitOr

The | operator (bitwise or)

Shl

The << operator (shift left)

Shr

The >> operator (shift right)

Eq

The == operator (equality)

Lt

The < operator (less than)

Le

The <= operator (less than or equal to)

Ne

The != operator (not equal to)

Ge

The >= operator (greater than or equal to)

Gt

The > operator (greater than)

Offset

The ptr.offset operator

Implementations

impl<'tcx> BinOp[src]

pub fn ty(
    &self,
    tcx: TyCtxt<'tcx>,
    lhs_ty: Ty<'tcx>,
    rhs_ty: Ty<'tcx>
) -> Ty<'tcx>
[src]

impl BinOp[src]

pub fn to_hir_binop(self) -> BinOpKind[src]

impl BinOp[src]

pub fn is_checkable(self) -> bool[src]

Trait Implementations

impl Clone for BinOp[src]

impl Copy for BinOp[src]

impl Debug for BinOp[src]

impl<'tcx, __D: TyDecoder<'tcx>> Decodable<__D> for BinOp[src]

impl<'tcx, __E: TyEncoder<'tcx>> Encodable<__E> for BinOp[src]

impl Eq for BinOp[src]

impl Hash for BinOp[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for BinOp[src]

impl PartialEq<BinOp> for BinOp[src]

impl PartialOrd<BinOp> for BinOp[src]

impl StructuralEq for BinOp[src]

impl StructuralPartialEq for BinOp[src]

Auto Trait Implementations

impl RefUnwindSafe for BinOp

impl Send for BinOp

impl Sync for BinOp

impl Unpin for BinOp

impl UnwindSafe for BinOp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]