Skip to main content

AutoloadHook

Type Alias AutoloadHook 

Source
pub type AutoloadHook = fn(name: &str) -> bool;
Expand description

Signature for the hook that auto-loads a function file by name.

Called by eval_inner when a name is not found in the environment and not a built-in. The hook searches for <name>.calc / <name>.m on the path and, if found, inserts the primary function into the autoload cache via autoload_cache_insert. Returns true if the function was loaded.