pub struct Inst(pub u32);Expand description
One encoded instruction.
Tuple Fields§
§0: u32The 32-bit packed instruction word; layout depends on the instruction format (iABC / iABx / iAsBx / iAx / isJ).
Implementations§
Source§impl Inst
impl Inst
Sourcepub fn iabc(op: Op, a: u32, b: u32, c: u32, k: bool) -> Inst
pub fn iabc(op: Op, a: u32, b: u32, c: u32, k: bool) -> Inst
Build an iABC-format instruction (A, B, C, k flag).
Sourcepub fn iabx(op: Op, a: u32, bx: u32) -> Inst
pub fn iabx(op: Op, a: u32, bx: u32) -> Inst
Build an iABx-format instruction (A, unsigned Bx).
Trait Implementations§
impl Copy for Inst
impl Eq 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