struct HotVars {
slots: [f64; 26],
slots_value: [Value; 26],
}Expand description
Array-backed scratch slots. The bytecode VM addresses these by
index (one f64 array load per access — no enum-tag match). The
parallel HotVars::slots_value array backs evalexpr’s
Context::get_value(name) -> Option<&Value> contract and is kept
in sync with the f64 array on every write.
Fields§
§slots: [f64; 26]§slots_value: [Value; 26]Mirror of slots as Value. Only read on the (rare) cold path
when evalexpr’s Context::get_value resolves a hot identifier.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HotVars
impl RefUnwindSafe for HotVars
impl Send for HotVars
impl Sync for HotVars
impl Unpin for HotVars
impl UnwindSafe for HotVars
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