Enum llvm_ir::instruction::groups::BinaryOp[][src]

pub enum BinaryOp {
    Add(Add),
    Sub(Sub),
    Mul(Mul),
    UDiv(UDiv),
    SDiv(SDiv),
    URem(URem),
    SRem(SRem),
    And(And),
    Or(Or),
    Xor(Xor),
    Shl(Shl),
    LShr(LShr),
    AShr(AShr),
    FAdd(FAdd),
    FSub(FSub),
    FMul(FMul),
    FDiv(FDiv),
    FRem(FRem),
}

Just the BinaryOps. This ends up being better than a &dyn BinaryOp for various reasons.

Variants

Add(Add)
Sub(Sub)
Mul(Mul)
UDiv(UDiv)
SDiv(SDiv)
URem(URem)
SRem(SRem)
And(And)
Or(Or)
Xor(Xor)
Shl(Shl)
LShr(LShr)
AShr(AShr)
FAdd(FAdd)
FSub(FSub)
FMul(FMul)
FDiv(FDiv)
FRem(FRem)

Trait Implementations

impl BinaryOp for BinaryOp[src]

impl Clone for BinaryOp[src]

impl Debug for BinaryOp[src]

impl From<AShr> for BinaryOp[src]

impl From<Add> for BinaryOp[src]

impl From<And> for BinaryOp[src]

impl From<BinaryOp> for Instruction[src]

impl From<FAdd> for BinaryOp[src]

impl From<FDiv> for BinaryOp[src]

impl From<FMul> for BinaryOp[src]

impl From<FRem> for BinaryOp[src]

impl From<FSub> for BinaryOp[src]

impl From<LShr> for BinaryOp[src]

impl From<Mul> for BinaryOp[src]

impl From<Or> for BinaryOp[src]

impl From<SDiv> for BinaryOp[src]

impl From<SRem> for BinaryOp[src]

impl From<Shl> for BinaryOp[src]

impl From<Sub> for BinaryOp[src]

impl From<UDiv> for BinaryOp[src]

impl From<URem> for BinaryOp[src]

impl From<Xor> for BinaryOp[src]

impl HasResult for BinaryOp[src]

impl PartialEq<BinaryOp> for BinaryOp[src]

impl StructuralPartialEq for BinaryOp[src]

impl TryFrom<BinaryOp> for Add[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for Sub[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for Shl[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for LShr[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for AShr[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for FAdd[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for FSub[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for FMul[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for FDiv[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for FRem[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for Mul[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for UDiv[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for SDiv[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for URem[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for SRem[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for And[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for Or[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<BinaryOp> for Xor[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<Instruction> for BinaryOp[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Typed for BinaryOp[src]

Auto Trait Implementations

impl RefUnwindSafe for BinaryOp[src]

impl Send for BinaryOp[src]

impl Sync for BinaryOp[src]

impl Unpin for BinaryOp[src]

impl UnwindSafe for BinaryOp[src]

Blanket Implementations

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

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

impl<T> BorrowMut<T> 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> 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.