Struct ckb_vm::instructions::Itype
source · pub struct Itype(pub Instruction);
Tuple Fields§
§0: Instruction
Implementations§
source§impl Itype
impl Itype
pub fn new_u( op: InstructionOpcode, rd: RegisterIndex, rs1: RegisterIndex, immediate_u: UImmediate, ) -> Self
pub fn new_s( op: InstructionOpcode, rd: RegisterIndex, rs1: RegisterIndex, immediate_s: SImmediate, ) -> Self
pub fn op(self) -> InstructionOpcode
pub fn rd(self) -> RegisterIndex
pub fn rs1(self) -> RegisterIndex
pub fn immediate_u(self) -> UImmediate
pub fn immediate_s(self) -> SImmediate
Trait Implementations§
source§impl From<Itype> for TaggedInstruction
impl From<Itype> for TaggedInstruction
source§impl PartialEq for Itype
impl PartialEq for Itype
impl Copy for Itype
impl StructuralPartialEq for Itype
Auto Trait Implementations§
impl Freeze for Itype
impl RefUnwindSafe for Itype
impl Send for Itype
impl Sync for Itype
impl Unpin for Itype
impl UnwindSafe for Itype
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