Skip to main content

BindingInitializer

Type Alias BindingInitializer 

Source
pub type BindingInitializer = Box<dyn Fn(&mut Cx, &LexicalEnv) -> Result<Value> + Send + Sync + 'static>;
Expand description

Computes a binding’s initial value within a (possibly partial) scope.

Used by let* and letrec so each initializer can observe the bindings already established in the same frame.

Aliased Type§

pub struct BindingInitializer(/* private fields */);