Traits

A number of traits, under the rhai:: module namespace, provide additional functionalities.

TraitDescriptionMethods
RegisterFntrait for registering functionsregister_fn
RegisterResultFntrait for registering fallible functionsregister_result_fn
Functrait for creating Rust closures from scriptcreate_from_ast, create_from_script
ModuleResolvertrait implemented by module resolution servicesresolve, resolve_ast
plugin::PluginFunctiontrait implemented by plugin functionscall, is_method_call, is_variadic, clone_boxed, input_names, input_types, return_type