[−][src]Enum llvm_ir::instruction::groups::BinaryOp
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]
fn get_operand0(&self) -> &Operand
[src]
fn get_operand1(&self) -> &Operand
[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]
fn from(bo: BinaryOp) -> 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]
fn get_result(&self) -> &Name
[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.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for Sub
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for Shl
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for LShr
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for AShr
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for FAdd
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for FSub
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for FMul
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for FDiv
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for FRem
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for Mul
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for UDiv
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for SDiv
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for URem
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for SRem
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for And
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for Or
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<BinaryOp> for Xor
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(bo: BinaryOp) -> Result<Self, Self::Error>
[src]
impl TryFrom<Instruction> for BinaryOp
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(inst: Instruction) -> Result<Self, Self::Error>
[src]
impl Typed for BinaryOp
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,