Skip to main content

Module plugin

Module plugin 

Source
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 Module from a plugin module defined via #[export_module].
register_exported_fn
Macro to register a plugin function (defined via #[export_fn]) into an Engine.
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§

TypeId
A TypeId represents a globally unique identifier for a type.

Enums§

RhaiFunc
(internals) A type encapsulating a function callable by Rhai. Exported under the internals feature only.

Traits§

PluginFunc
Trait implemented by a plugin function.

Type Aliases§

RhaiResult
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 the internals feature.

Derive Macros§

CustomType
Macro to implement the CustomType trait.