Skip to main content

NativeFn

Type Alias NativeFn 

Source
pub type NativeFn = Rc<dyn Fn(&Inj, &Value, &str, &Value) -> Value>;
Expand description

Injector-shaped native function: (inj, val, ref, store) -> any. Thunks (e.g. $WHEN) just ignore the arguments. Takes the injection by &Inj (the Rc<RefCell<…>>) so injectors can re-borrow it as needed.

Aliased Type§

pub struct NativeFn { /* private fields */ }