pub enum SlotView {
Unset,
Value(Value),
AnalysisBound,
AnalysisConstant,
Lazy(ExprId, Scope),
Function(Arc<LazyFcn>),
Other,
}Expand description
What a slot of a scope holds, as the binding stage needs to see it.
Variants§
Unset
Nothing is bound.
Value(Value)
A value.
AnalysisBound
A pure unknown value for conservative state-level analysis only. Forcing it is an explicit error; it is never a guessed runtime value.
AnalysisConstant
A pure unknown value of a binder over a constant domain, for
constant-level analysis only. Forcing it is the explicit
EvalError::is_analysis_only error; it is never a guessed value.
Lazy(ExprId, Scope)
A lazy argument (LazyValue): the expression and the scope it is
evaluated in.
Function(Arc<LazyFcn>)
An actual recursive function. Callers must inspect its owned domains, captured context and body; this does not establish purity or finiteness.
Other
An operator argument or another lazy function: not an expression.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SlotView
impl !UnwindSafe for SlotView
impl Forget for SlotView
impl Freeze for SlotView
impl Move for SlotView
impl Send for SlotView
impl Sync for SlotView
impl Unpin for SlotView
impl UnsafeUnpin for SlotView
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