pub struct Instruction<'str> { /* private fields */ }Expand description
A local SSA value, which is a value that is defined by an instruction and can be used by other instructions. Local values are not associated with any particular memory location.
Implementations§
Source§impl<'str> Instruction<'str>
impl<'str> Instruction<'str>
pub fn mnemonic(&self) -> &Mnemonic
pub fn from_id<'ctx>( ctx: &'ctx Context<'str>, id: InstructionId, ) -> InstructionRef<'str, 'ctx>
pub fn from_id_mut<'ctx>( ctx: &'ctx mut Context<'str>, id: InstructionId, ) -> InstructionMutRef<'str, 'ctx>
Trait Implementations§
Source§impl<'str> Clone for Instruction<'str>
impl<'str> Clone for Instruction<'str>
Source§fn clone(&self) -> Instruction<'str>
fn clone(&self) -> Instruction<'str>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, 'str> Deserialize<'de> for Instruction<'str>
impl<'de, 'str> Deserialize<'de> for Instruction<'str>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'str> Freeze for Instruction<'str>
impl<'str> RefUnwindSafe for Instruction<'str>
impl<'str> Send for Instruction<'str>
impl<'str> Sync for Instruction<'str>
impl<'str> Unpin for Instruction<'str>
impl<'str> UnsafeUnpin for Instruction<'str>
impl<'str> UnwindSafe for Instruction<'str>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more