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§
- Basic functions for dealing with memory.
Macros§
- Re-export the codegen namespace. Macro to combine a plugin module into an existing module.
- Re-export the codegen namespace. Macro to generate a Rhai
Module
from a plugin module defined via#[export_module]
. - Re-export the codegen namespace. Macro to register a plugin function (defined via
#[export_fn]
) into anEngine
. - Re-export the codegen namespace. Macro to register a plugin function into a Rhai
Module
. - Re-export the codegen namespace. Macro to register a plugin function into a Rhai
Module
and expose it globally.
Structs§
- A
TypeId
represents a globally unique identifier for a type.
Enums§
- (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§
- Re-export the codegen namespace. Attribute, when put on a Rust function, turns it into a plugin function.
- Re-export the codegen namespace. Attribute, when put on a Rust module, turns it into a plugin module.
- Re-export the codegen namespace. Macro to automatically expose a Rust function, type-def or use statement as
pub
when under theinternals
feature.
Derive Macros§
- Re-export the codegen namespace. Macro to implement the [
CustomType
][rhai::CustomType] trait.