Module plugin
Expand description
Module defining macros for developing plugins.
Modules§
- mem
- Basic functions for dealing with memory.
Macros§
- combine_
with_ exported_ module - Macro to combine a plugin module into an existing module.
- exported_
module - Macro to generate a Rhai
Module
from a plugin module defined via#[export_module]
. - register_
exported_ fn - Macro to register a plugin function (defined via
#[export_fn]
) into anEngine
. - set_
exported_ fn - Macro to register a plugin function into a Rhai
Module
. - set_
exported_ global_ fn - Macro to register a plugin function into a Rhai
Module
and expose it globally.
Structs§
- Dynamic
- Dynamic type containing any value.
- Engine
- Rhai main scripting engine.
- Func
Registration - Type for fine-tuned module function registration.
- Immutable
String - The system immutable string type.
- Module
- A module which may contain variables, sub-modules, external Rust functions, and/or script-defined functions.
- Native
Call Context - Context of a native Rust function call.
- Position
- A location (line number + character position) in the input script.
- TypeId
- A
TypeId
represents a globally unique identifier for a type.
Enums§
- Eval
AltResult - Evaluation result.
- FnAccess
- A type representing the access mode of a function.
- FnNamespace
- A type representing the namespace of a function.
- Rhai
Func - (internals) A type encapsulating a function callable by Rhai.
Exported under the
internals
feature only.
Traits§
- Plugin
Func - Trait implemented by a plugin function.
Type Aliases§
- Rhai
Result - Result of a Rhai function.
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.
- expose_
under_ internals - Macro to automatically expose a Rust function, type-def or use statement as
pub
when under theinternals
feature.
Derive Macros§
- Custom
Type - Macro to implement the [
CustomType
][rhai::CustomType] trait.