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 Clone for OperandKind
impl Clone for OperandKind
source§fn clone(&self) -> OperandKind
fn clone(&self) -> OperandKind
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 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<OperandKind> for OperandKind
impl PartialEq<OperandKind> 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 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