Enum capstone::arch::riscv::RiscVOperand
source · pub enum RiscVOperand {
Reg(RegId),
Imm(i64),
Mem(RiscVOpMem),
Invalid,
}
Expand description
RISCV operand
Variants§
Trait Implementations§
source§impl Clone for RiscVOperand
impl Clone for RiscVOperand
source§fn clone(&self) -> RiscVOperand
fn clone(&self) -> RiscVOperand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RiscVOperand
impl Debug for RiscVOperand
source§impl Default for RiscVOperand
impl Default for RiscVOperand
source§impl<'a> From<&'a cs_riscv_op> for RiscVOperand
impl<'a> From<&'a cs_riscv_op> for RiscVOperand
source§fn from(insn: &cs_riscv_op) -> RiscVOperand
fn from(insn: &cs_riscv_op) -> RiscVOperand
Converts to this type from the input type.
source§impl From<RiscVOperand> for ArchOperand
impl From<RiscVOperand> for ArchOperand
source§fn from(op: RiscVOperand) -> ArchOperand
fn from(op: RiscVOperand) -> ArchOperand
Converts to this type from the input type.
source§impl PartialEq for RiscVOperand
impl PartialEq for RiscVOperand
source§fn eq(&self, other: &RiscVOperand) -> bool
fn eq(&self, other: &RiscVOperand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RiscVOperand
impl StructuralPartialEq for RiscVOperand
Auto Trait Implementations§
impl RefUnwindSafe for RiscVOperand
impl Send for RiscVOperand
impl Sync for RiscVOperand
impl Unpin for RiscVOperand
impl UnwindSafe for RiscVOperand
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