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