pub enum ExprOpcode<L = usize> {
Show 13 variants
ConstU64(u64),
ConstWide(BigUint),
LoadU64 {
location: L,
byte_size: usize,
mask: u64,
},
LoadWide {
location: L,
byte_size: usize,
width: usize,
},
BinOp(TestbenchOperator),
TypedBinOp {
op: TestbenchOperator,
lhs_width: usize,
rhs_width: usize,
result_width: usize,
lhs_signed: bool,
rhs_signed: bool,
},
TypedUnary {
op: TestbenchOperator,
operand_width: usize,
result_width: usize,
},
Resize {
source_width: usize,
target_width: usize,
signed: bool,
},
ConcatPart {
part_width: usize,
result_width: usize,
},
Ternary {
then_len: usize,
else_len: usize,
},
LoadIndexed {
location: L,
stride_bits: usize,
base_bit_offset: usize,
element_width: usize,
},
LoadBitSelect {
location: L,
base_byte_size: usize,
select_width: usize,
},
StoreU64 {
location: L,
byte_size: usize,
},
}Variants§
ConstU64(u64)
ConstWide(BigUint)
LoadU64
LoadWide
BinOp(TestbenchOperator)
TypedBinOp
Fields
TypedUnary
Resize
ConcatPart
Ternary
LoadIndexed
LoadBitSelect
StoreU64
Trait Implementations§
Source§impl<L: Clone> Clone for ExprOpcode<L>
impl<L: Clone> Clone for ExprOpcode<L>
Source§fn clone(&self) -> ExprOpcode<L>
fn clone(&self) -> ExprOpcode<L>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<L: Debug> Debug for ExprOpcode<L>
impl<L: Debug> Debug for ExprOpcode<L>
Source§impl<'de, L> Deserialize<'de> for ExprOpcode<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for ExprOpcode<L>where
L: Deserialize<'de>,
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
impl<L: Eq> Eq for ExprOpcode<L>
Source§impl<L: PartialEq> PartialEq for ExprOpcode<L>
impl<L: PartialEq> PartialEq for ExprOpcode<L>
Source§impl<L> Serialize for ExprOpcode<L>where
L: Serialize,
impl<L> Serialize for ExprOpcode<L>where
L: Serialize,
impl<L: PartialEq> StructuralPartialEq for ExprOpcode<L>
Auto Trait Implementations§
impl<L> Freeze for ExprOpcode<L>where
L: Freeze,
impl<L> RefUnwindSafe for ExprOpcode<L>where
L: RefUnwindSafe,
impl<L> Send for ExprOpcode<L>where
L: Send,
impl<L> Sync for ExprOpcode<L>where
L: Sync,
impl<L> Unpin for ExprOpcode<L>where
L: Unpin,
impl<L> UnsafeUnpin for ExprOpcode<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for ExprOpcode<L>where
L: UnwindSafe,
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