Expand description
Module defining macros for developing plugins.
Re-exports§
pub use crate::Dynamic;pub use crate::Engine;pub use crate::EvalAltResult;pub use crate::FnAccess;pub use crate::FnNamespace;pub use crate::FuncRegistration;pub use crate::ImmutableString;pub use crate::Module;pub use crate::NativeCallContext;pub use crate::Position;
Modules§
- mem
- Basic functions for dealing with memory, values, and types.
Macros§
- combine_
with_ exported_ module - Macro to combine a plugin module into an existing module.
- exported_
module - Macro to generate a Rhai
Modulefrom 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
Moduleand expose it globally.
Structs§
- TypeId
- A
TypeIdrepresents a globally unique identifier for a type.
Enums§
- Rhai
Func - (internals) A type encapsulating a function callable by Rhai.
Exported under the
internalsfeature 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
pubwhen under theinternalsfeature.
Derive Macros§
- Custom
Type - Macro to implement the
CustomTypetrait.