pub struct Inst(/* private fields */);Expand description
An instruction of a function, numbered in creation order across all blocks.
§Examples
use backend_lang::mir::{Function, Operand};
use backend_lang::x86_64::{op, SYSV};
let mut f = Function::new("f", &SYSV);
let b = f.block()?;
let i = f.push(b, op::RET, &[])?;
assert_eq!(i.to_string(), "inst0");Implementations§
Trait Implementations§
impl Copy for Inst
impl Eq for Inst
Source§impl Ord for Inst
impl Ord for Inst
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Inst
impl PartialOrd for Inst
impl StructuralPartialEq for Inst
Auto Trait Implementations§
impl Freeze for Inst
impl RefUnwindSafe for Inst
impl Send for Inst
impl Sync for Inst
impl Unpin for Inst
impl UnsafeUnpin for Inst
impl UnwindSafe for Inst
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