Module script_function

Module script_function 

Source
Expand description

Implementations of the ScriptFunction and ScriptFunctionMut traits for functions with up to 13 arguments.

Structs§

AppScriptFunctionRegistry
Equivalent to [AppFunctionRegistry] but stores functions with a more convenient signature for scripting to avoid boxing every argument.
DynamicScriptFunction
A dynamic script function.
DynamicScriptFunctionMut
A dynamic mutable script function.
FunctionCallContext
The caller context when calling a script function. Functions can choose to react to caller preferences such as converting 1-indexed numbers to 0-indexed numbers
FunctionKey
A key used to identify a function in the registry
ScriptFunctionRegistry
A registry of dynamic script functions
ScriptFunctionRegistryArc
A thread-safe reference counted wrapper around a ScriptFunctionRegistry

Traits§

ScriptFunction
A trait implemented by functions which can act as dynamic script functions, which can then be registered against a ScriptFunctionRegistry.
ScriptFunctionMut
A trait implemented by functions which can act as mutable dynamic script functions.