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