pub struct FnResolution {
pub local_count: u16,
pub local_slots: HashMap<String, u16>,
}Expand description
Compile-time resolution metadata for a function body.
Produced by resolver::resolve_fn — maps local variable names to slot indices
so the interpreter can use Vec<Rc<Value>> instead of HashMap lookups.
Fields§
§local_count: u16Total number of local slots needed (params + bindings in body).
local_slots: HashMap<String, u16>Map from local variable name → slot index in the local Slots frame.
Trait Implementations§
Source§impl Clone for FnResolution
impl Clone for FnResolution
Source§fn clone(&self) -> FnResolution
fn clone(&self) -> FnResolution
Returns a duplicate 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 FnResolution
impl Debug for FnResolution
Source§impl PartialEq for FnResolution
impl PartialEq for FnResolution
impl StructuralPartialEq for FnResolution
Auto Trait Implementations§
impl Freeze for FnResolution
impl RefUnwindSafe for FnResolution
impl Send for FnResolution
impl Sync for FnResolution
impl Unpin for FnResolution
impl UnsafeUnpin for FnResolution
impl UnwindSafe for FnResolution
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