Module plugin
Expand description
Module defining macros for developing plugins.
Modules§
- Basic functions for dealing with memory.
Macros§
- Macro to combine a plugin module into an existing module.
- Macro to generate a Rhai
Module
from a plugin module defined via#[export_module]
. - Macro to register a plugin function (defined via
#[export_fn]
) into anEngine
. - Macro to register a plugin function into a Rhai
Module
. - Macro to register a plugin function into a Rhai
Module
and expose it globally.
Structs§
- Dynamic type containing any value.
- Rhai main scripting engine.
- Type for fine-tuned module function registration.
- The system immutable string type.
- A module which may contain variables, sub-modules, external Rust functions, and/or script-defined functions.
- Context of a native Rust function call.
- A location (line number + character position) in the input script.
- A
TypeId
represents a globally unique identifier for a type.
Enums§
- Evaluation result.
- A type representing the access mode of a function.
- A type representing the namespace of a function.
- (internals) A type encapsulating a function callable by Rhai. Exported under the
internals
feature only.
Traits§
- Trait implemented by a plugin function.
Type Aliases§
- Result of a Rhai function.
Attribute Macros§
- Attribute, when put on a Rust function, turns it into a plugin function.
- Attribute, when put on a Rust module, turns it into a plugin module.
- Macro to automatically expose a Rust function, type-def or use statement as
pub
when under theinternals
feature.
Derive Macros§
- Macro to implement the [
CustomType
][rhai::CustomType] trait.