Enum nvbit_model::OperandKind
source · pub enum OperandKind {
ImmutableUint64 {
value: u64,
},
ImmutableDouble {
value: f64,
},
Register {
num: i32,
prop: String,
},
Predicate {
num: i32,
},
CBank {
id: i32,
has_imm_offset: bool,
imm_offset: i32,
has_reg_offset: bool,
reg_offset: i32,
},
MemRef {
has_ra: bool,
ra_num: i32,
ra_mod: RegisterModifier,
has_ur: bool,
ur_num: i32,
ur_mod: RegisterModifier,
has_imm: bool,
imm: i32,
},
Generic {
array: String,
},
}Expand description
An instruction operand.
Variants§
ImmutableUint64
ImmutableDouble
Register
Predicate
CBank
MemRef
Generic
Trait Implementations§
source§impl Debug for OperandKind
impl Debug for OperandKind
source§impl<'de> Deserialize<'de> for OperandKind
impl<'de> Deserialize<'de> for OperandKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for OperandKind
impl PartialEq for OperandKind
source§fn eq(&self, other: &OperandKind) -> bool
fn eq(&self, other: &OperandKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for OperandKind
impl PartialOrd for OperandKind
source§fn partial_cmp(&self, other: &OperandKind) -> Option<Ordering>
fn partial_cmp(&self, other: &OperandKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for OperandKind
impl Serialize for OperandKind
impl StructuralPartialEq for OperandKind
Auto Trait Implementations§
impl RefUnwindSafe for OperandKind
impl Send for OperandKind
impl Sync for OperandKind
impl Unpin for OperandKind
impl UnwindSafe for OperandKind
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