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