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