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