pub type ModuleFn = Arc<dyn for<'ctx> Fn(&[ValueWord], &ModuleContext<'ctx>) -> Result<ValueWord, String> + Send + Sync>;Expand description
A module function callable from Shape (synchronous).
Takes a slice of ValueWord arguments plus a ModuleContext that provides
access to the type schema registry and a callable invoker.
The function must be Send + Sync for thread safety.
Aliased Typeยง
pub struct ModuleFn { /* private fields */ }