Enum Instruction

Source
pub enum Instruction {
Show 54 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), FNeg(FNeg), ExtractElement(ExtractElement), InsertElement(InsertElement), ShuffleVector(ShuffleVector), ExtractValue(ExtractValue), InsertValue(InsertValue), Alloca(Alloca), Load(Load), Store(Store), Fence(Fence), CmpXchg(CmpXchg), AtomicRMW(AtomicRMW), GetElementPtr(GetElementPtr), Trunc(Trunc), ZExt(ZExt), SExt(SExt), FPTrunc(FPTrunc), FPExt(FPExt), FPToUI(FPToUI), FPToSI(FPToSI), UIToFP(UIToFP), SIToFP(SIToFP), PtrToInt(PtrToInt), IntToPtr(IntToPtr), BitCast(BitCast), AddrSpaceCast(AddrSpaceCast), ICmp(ICmp), FCmp(FCmp), Phi(Phi), Select(Select), Freeze(Freeze), Call(Call), VAArg(VAArg), LandingPad(LandingPad), CatchPad(CatchPad), CleanupPad(CleanupPad),
}
Expand description

Non-terminator instructions.

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)

§

FNeg(FNeg)

§

ExtractElement(ExtractElement)

§

InsertElement(InsertElement)

§

ShuffleVector(ShuffleVector)

§

ExtractValue(ExtractValue)

§

InsertValue(InsertValue)

§

Alloca(Alloca)

§

Load(Load)

§

Store(Store)

§

Fence(Fence)

§

CmpXchg(CmpXchg)

§

AtomicRMW(AtomicRMW)

§

GetElementPtr(GetElementPtr)

§

Trunc(Trunc)

§

ZExt(ZExt)

§

SExt(SExt)

§

FPTrunc(FPTrunc)

§

FPExt(FPExt)

§

FPToUI(FPToUI)

§

FPToSI(FPToSI)

§

UIToFP(UIToFP)

§

SIToFP(SIToFP)

§

PtrToInt(PtrToInt)

§

IntToPtr(IntToPtr)

§

BitCast(BitCast)

§

AddrSpaceCast(AddrSpaceCast)

§

ICmp(ICmp)

§

FCmp(FCmp)

§

Phi(Phi)

§

Select(Select)

§

Freeze(Freeze)

§

Call(Call)

§

VAArg(VAArg)

§

LandingPad(LandingPad)

§

CatchPad(CatchPad)

§

CleanupPad(CleanupPad)

Implementations§

Source§

impl Instruction

Source

pub fn try_get_result(&self) -> Option<&Name>

Get the result (destination) of the Instruction, or None if the Instruction doesn’t have a result (has void type).

Source

pub fn is_atomic(&self) -> bool

Whether the Instruction is atomic

Source§

impl Instruction

Source

pub fn is_binary_op(&self) -> bool

Determine if the Instruction is one of the ones in groups::BinaryOp, without actually using try_into() (which would consume it)

Source

pub fn is_unary_op(&self) -> bool

Determine if the Instruction is one of the ones in groups::UnaryOp, without actually using try_into() (which would consume it)

Trait Implementations§

Source§

impl Clone for Instruction

Source§

fn clone(&self) -> Instruction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Instruction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Instruction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<AShr> for Instruction

Source§

fn from(inst: AShr) -> Instruction

Converts to this type from the input type.
Source§

impl From<Add> for Instruction

Source§

fn from(inst: Add) -> Instruction

Converts to this type from the input type.
Source§

impl From<AddrSpaceCast> for Instruction

Source§

fn from(inst: AddrSpaceCast) -> Instruction

Converts to this type from the input type.
Source§

impl From<Alloca> for Instruction

Source§

fn from(inst: Alloca) -> Instruction

Converts to this type from the input type.
Source§

impl From<And> for Instruction

Source§

fn from(inst: And) -> Instruction

Converts to this type from the input type.
Source§

impl From<AtomicRMW> for Instruction

Source§

fn from(inst: AtomicRMW) -> Instruction

Converts to this type from the input type.
Source§

impl From<BinaryOp> for Instruction

Source§

fn from(bo: BinaryOp) -> Instruction

Converts to this type from the input type.
Source§

impl From<BitCast> for Instruction

Source§

fn from(inst: BitCast) -> Instruction

Converts to this type from the input type.
Source§

impl From<Call> for Instruction

Source§

fn from(inst: Call) -> Instruction

Converts to this type from the input type.
Source§

impl From<CatchPad> for Instruction

Source§

fn from(inst: CatchPad) -> Instruction

Converts to this type from the input type.
Source§

impl From<CleanupPad> for Instruction

Source§

fn from(inst: CleanupPad) -> Instruction

Converts to this type from the input type.
Source§

impl From<CmpXchg> for Instruction

Source§

fn from(inst: CmpXchg) -> Instruction

Converts to this type from the input type.
Source§

impl From<ExtractElement> for Instruction

Source§

fn from(inst: ExtractElement) -> Instruction

Converts to this type from the input type.
Source§

impl From<ExtractValue> for Instruction

Source§

fn from(inst: ExtractValue) -> Instruction

Converts to this type from the input type.
Source§

impl From<FAdd> for Instruction

Source§

fn from(inst: FAdd) -> Instruction

Converts to this type from the input type.
Source§

impl From<FCmp> for Instruction

Source§

fn from(inst: FCmp) -> Instruction

Converts to this type from the input type.
Source§

impl From<FDiv> for Instruction

Source§

fn from(inst: FDiv) -> Instruction

Converts to this type from the input type.
Source§

impl From<FMul> for Instruction

Source§

fn from(inst: FMul) -> Instruction

Converts to this type from the input type.
Source§

impl From<FNeg> for Instruction

Source§

fn from(inst: FNeg) -> Instruction

Converts to this type from the input type.
Source§

impl From<FPExt> for Instruction

Source§

fn from(inst: FPExt) -> Instruction

Converts to this type from the input type.
Source§

impl From<FPToSI> for Instruction

Source§

fn from(inst: FPToSI) -> Instruction

Converts to this type from the input type.
Source§

impl From<FPToUI> for Instruction

Source§

fn from(inst: FPToUI) -> Instruction

Converts to this type from the input type.
Source§

impl From<FPTrunc> for Instruction

Source§

fn from(inst: FPTrunc) -> Instruction

Converts to this type from the input type.
Source§

impl From<FRem> for Instruction

Source§

fn from(inst: FRem) -> Instruction

Converts to this type from the input type.
Source§

impl From<FSub> for Instruction

Source§

fn from(inst: FSub) -> Instruction

Converts to this type from the input type.
Source§

impl From<Fence> for Instruction

Source§

fn from(inst: Fence) -> Instruction

Converts to this type from the input type.
Source§

impl From<Freeze> for Instruction

Source§

fn from(inst: Freeze) -> Instruction

Converts to this type from the input type.
Source§

impl From<GetElementPtr> for Instruction

Source§

fn from(inst: GetElementPtr) -> Instruction

Converts to this type from the input type.
Source§

impl From<ICmp> for Instruction

Source§

fn from(inst: ICmp) -> Instruction

Converts to this type from the input type.
Source§

impl From<InsertElement> for Instruction

Source§

fn from(inst: InsertElement) -> Instruction

Converts to this type from the input type.
Source§

impl From<InsertValue> for Instruction

Source§

fn from(inst: InsertValue) -> Instruction

Converts to this type from the input type.
Source§

impl From<IntToPtr> for Instruction

Source§

fn from(inst: IntToPtr) -> Instruction

Converts to this type from the input type.
Source§

impl From<LShr> for Instruction

Source§

fn from(inst: LShr) -> Instruction

Converts to this type from the input type.
Source§

impl From<LandingPad> for Instruction

Source§

fn from(inst: LandingPad) -> Instruction

Converts to this type from the input type.
Source§

impl From<Load> for Instruction

Source§

fn from(inst: Load) -> Instruction

Converts to this type from the input type.
Source§

impl From<Mul> for Instruction

Source§

fn from(inst: Mul) -> Instruction

Converts to this type from the input type.
Source§

impl From<Or> for Instruction

Source§

fn from(inst: Or) -> Instruction

Converts to this type from the input type.
Source§

impl From<Phi> for Instruction

Source§

fn from(inst: Phi) -> Instruction

Converts to this type from the input type.
Source§

impl From<PtrToInt> for Instruction

Source§

fn from(inst: PtrToInt) -> Instruction

Converts to this type from the input type.
Source§

impl From<SDiv> for Instruction

Source§

fn from(inst: SDiv) -> Instruction

Converts to this type from the input type.
Source§

impl From<SExt> for Instruction

Source§

fn from(inst: SExt) -> Instruction

Converts to this type from the input type.
Source§

impl From<SIToFP> for Instruction

Source§

fn from(inst: SIToFP) -> Instruction

Converts to this type from the input type.
Source§

impl From<SRem> for Instruction

Source§

fn from(inst: SRem) -> Instruction

Converts to this type from the input type.
Source§

impl From<Select> for Instruction

Source§

fn from(inst: Select) -> Instruction

Converts to this type from the input type.
Source§

impl From<Shl> for Instruction

Source§

fn from(inst: Shl) -> Instruction

Converts to this type from the input type.
Source§

impl From<ShuffleVector> for Instruction

Source§

fn from(inst: ShuffleVector) -> Instruction

Converts to this type from the input type.
Source§

impl From<Store> for Instruction

Source§

fn from(inst: Store) -> Instruction

Converts to this type from the input type.
Source§

impl From<Sub> for Instruction

Source§

fn from(inst: Sub) -> Instruction

Converts to this type from the input type.
Source§

impl From<Trunc> for Instruction

Source§

fn from(inst: Trunc) -> Instruction

Converts to this type from the input type.
Source§

impl From<UDiv> for Instruction

Source§

fn from(inst: UDiv) -> Instruction

Converts to this type from the input type.
Source§

impl From<UIToFP> for Instruction

Source§

fn from(inst: UIToFP) -> Instruction

Converts to this type from the input type.
Source§

impl From<URem> for Instruction

Source§

fn from(inst: URem) -> Instruction

Converts to this type from the input type.
Source§

impl From<UnaryOp> for Instruction

Source§

fn from(uo: UnaryOp) -> Instruction

Converts to this type from the input type.
Source§

impl From<VAArg> for Instruction

Source§

fn from(inst: VAArg) -> Instruction

Converts to this type from the input type.
Source§

impl From<Xor> for Instruction

Source§

fn from(inst: Xor) -> Instruction

Converts to this type from the input type.
Source§

impl From<ZExt> for Instruction

Source§

fn from(inst: ZExt) -> Instruction

Converts to this type from the input type.
Source§

impl HasDebugLoc for Instruction

Source§

fn get_debug_loc(&self) -> &Option<DebugLoc>

Returns the DebugLoc associated with the given Instruction, Terminator, GlobalVariable, or Function; or None if it doesn’t have a DebugLoc. Read more
Source§

impl Hash for Instruction

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Instruction

Source§

fn eq(&self, other: &Instruction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<Instruction> for AShr

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Add

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for AddrSpaceCast

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Alloca

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for And

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for AtomicRMW

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for BinaryOp

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for BitCast

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Call

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for CatchPad

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for CleanupPad

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for CmpXchg

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for ExtractElement

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for ExtractValue

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FAdd

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FCmp

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FDiv

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FMul

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FNeg

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FPExt

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FPToSI

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FPToUI

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FPTrunc

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FRem

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for FSub

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Fence

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Freeze

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for GetElementPtr

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for ICmp

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for InsertElement

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for InsertValue

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for IntToPtr

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for LShr

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for LandingPad

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Load

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Mul

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Or

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Phi

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for PtrToInt

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for SDiv

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for SExt

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for SIToFP

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for SRem

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Select

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Shl

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for ShuffleVector

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Store

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Sub

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Trunc

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for UDiv

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for UIToFP

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for URem

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for UnaryOp

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for VAArg

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for Xor

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Instruction> for ZExt

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(inst: Instruction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Typed for Instruction

The Type of an Instruction (or any subtype of Instruction) is its result type.

Source§

fn get_type(&self, types: &Types) -> TypeRef

Source§

impl StructuralPartialEq for Instruction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.