pub type ModuleLoader = Arc<dyn Fn(&str) -> Option<ModuleSource> + Send + Sync>;Expand description
The host’s module loader (Lua::set_module_loader): the source of the module named,
or None when the host has no such module. It runs inside the script’s call, on the
host’s own time; it gets no access to the state.
Aliased Type§
pub struct ModuleLoader { /* private fields */ }