[−][src]Module rhai::plugin
Module defining macros for developing plugins.
Modules
mem | Basic functions for dealing with memory. |
new_vec | A contiguous growable array type with heap-allocated contents, written
|
Macros
combine_with_exported_module | Macro to combine a plugin module into an existing module. |
exported_module | Macro to generate a Rhai |
format | Creates a |
new_vec | Creates a |
register_exported_fn | Macro to register a plugin function (defined via |
set_exported_fn | Macro to register a plugin function into a Rhai |
set_exported_global_fn | Macro to register a plugin function into a Rhai |
Structs
Box | A pointer type for heap allocation. |
Dynamic | Dynamic type containing any value. |
Engine | Rhai main scripting engine. |
ImmutableString | The system immutable string type. |
Module | A module which may contain variables, sub-modules, external Rust functions, and/or script-defined functions. |
NativeCallContext | Context of a native Rust function call. |
TypeId | A |
Enums
CallableFunction | A type encapsulating a function callable by Rhai. |
EvalAltResult | Evaluation result. |
FnAccess | A type representing the access mode of a function. |
FnNamespace | A type representing the namespace of a function. |
Traits
PluginFunction | Trait implemented by a plugin function. This trait should not be used directly. |
RegisterFn | Trait to register custom functions with the |
RegisterResultFn | Trait to register fallible custom functions returning |
ToString | A trait for converting a value to a |
Type Definitions
FnCallArgs | Arguments to a function call, which is a list of |
Attribute Macros
export_fn | Attribute, when put on a Rust function, turns it into a plugin function. |
export_module | Attribute, when put on a Rust module, turns it into a plugin module. |