pub type BuiltinBridgeFn = Box<dyn Fn(&str, Vec<StringKeyedValue>) -> Result<StringKeyedValue, String>>;Expand description
Callback type for bridging tree-walker builtins into the VM.
Takes: builtin name, args as StringKeyedValue (interner-free).
Returns: StringKeyedValue result or error string.
We use StringKeyedValue instead of VMValue because:
- It doesn’t require an interner for key resolution
sui-evalalready hasstring_keyed_to_eval/eval_to_string_keyedconversion functions- The bridge callback runs in
sui-evalcontext where the tree-walker value types are available
Aliased Type§
pub struct BuiltinBridgeFn(/* private fields */);