pub fn convert_result_to_value<T>(result: T) -> Result<Value>Expand description
Convert a native Rust type back to a Value.
This utility function simplifies converting native Rust types to
Value instances for function return values.
This function is typically used internally by the function registration macros
in crate::macros and is automatically called when functions return results.
§Arguments
result- The value to convert
§Returns
Returns a Result<Value> containing the converted value.
§Example
use aimx::function_registry::convert_result_to_value;
let number = 42.0;
let value = convert_result_to_value(number).unwrap();