pub enum BinaryOp {
}
Expand description
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
sourceimpl BinaryOp for BinaryOp
impl BinaryOp for BinaryOp
fn get_operand0(&self) -> &Operand
fn get_operand1(&self) -> &Operand
sourceimpl From<BinaryOp> for Instruction
impl From<BinaryOp> for Instruction
sourcefn from(bo: BinaryOp) -> Instruction
fn from(bo: BinaryOp) -> Instruction
Converts to this type from the input type.
sourceimpl PartialEq<BinaryOp> for BinaryOp
impl PartialEq<BinaryOp> for BinaryOp
sourceimpl TryFrom<Instruction> for BinaryOp
impl TryFrom<Instruction> for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnwindSafe for BinaryOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more