Skip to main content

ClFunctionBody

Type Alias ClFunctionBody 

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

Native body of a CL-lite function or macro.

Receives the call context, the captured lexical environment, and the argument values, and returns a runtime Value.

Aliased Typeยง

pub struct ClFunctionBody { /* private fields */ }