pub struct Instruction {
pub op: Op,
pub result: Option<(ValueId, TypeId)>,
pub block: usize,
pub at: usize,
}Expand description
An instruction of a function body.
Fields§
§op: OpWhat it does.
result: Option<(ValueId, TypeId)>The result’s value id and type, when the instruction produces one.
block: usizeThe basic block it belongs to.
at: usizeBit offset of its record.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§impl Debug for Instruction
impl Debug for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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