pub struct RvGasMeta {
pub kind: u8,
pub src1_slot: u8,
pub src2_slot: u8,
pub dst_slot: u8,
}Expand description
Pre-resolved metadata used by the per-block gas accountant. The
fields are computed once at decode time so the gas hot path does
not have to re-match the Inst variant on each invocation.
kindis an index intogas_cost::RV_GAS_COST_LUT.src1_slot/src2_slot/dst_slotare PVM2 register slots (0..12, ordered x1, x2, x5..x15) or0xFFfor “no register” (x0, x3, x4, or an unused register slot for this opcode).
Fields§
§kind: u8§src1_slot: u8§src2_slot: u8§dst_slot: u8Trait Implementations§
impl Copy for RvGasMeta
Auto Trait Implementations§
impl Freeze for RvGasMeta
impl RefUnwindSafe for RvGasMeta
impl Send for RvGasMeta
impl Sync for RvGasMeta
impl Unpin for RvGasMeta
impl UnsafeUnpin for RvGasMeta
impl UnwindSafe for RvGasMeta
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