pub enum Resolution {
Lexical {
sym: Symbol,
},
Dynamic,
}Expand description
The resolution verdict for one variable reference.
M0 only needs to distinguish a precomputed-Symbol lexical hit
candidate from “route through the runtime with/probe path”. The
positional {up, slot} variant is M1, deliberately absent here.
Variants§
Lexical
Provably resolvable in an enclosing lexical binder with no with
scope between the reference and its binder. Carries the reference’s
pre-interned Symbol so the eval hot path can probe the lexical
bindings map directly (skipping the re-intern). A lexical-bindings
miss at runtime still falls back to the full unchanged path.
Dynamic
Route this reference through today’s unchanged runtime path
(intern + lookup_fast + the with-chain). The fail-safe default
for any uncertainty.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
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 moreimpl Copy for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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