Module function_registry

Module function_registry 

Source
Expand description

Function registry and value conversion utilities.

Provides the global registry for AIMX functions/methods and helpers used by registration macros to convert between Value and native types. The registry is initialized once with built-ins via functions::register_all_functions and accessed through a thread-safe RwLock.

Structs§

FunctionRegistry
Global registry mapping function names to handlers used during expression evaluation. Supports both standalone calls and method-style calls on Value receivers.

Traits§

FunctionHandler
Handler invoked for a registered function or method.
ValueConverter
Convert Value to native types used by functions.

Functions§

convert_result_to_value
Convert any T: Into<Value> to Arc<Value>.
convert_value_to_type
Convert a Value to T via ValueConverter.