Skip to main content

native_dispatcher

Function native_dispatcher 

Source
pub fn native_dispatcher(
    f: impl Fn(&str) -> Option<Result<()>> + 'static,
) -> ResolvingBindingDispatcher
Expand description

Lift a native (compiled-in) binding dispatcher — one with no source file to name — into a ResolvingBindingDispatcher: a successful load reports None source, so the caller announces it by its module-proxy name. Pairs with the runtime rhai_dispatch tier, which reports the real .rhai path.