Skip to main content

LocalFunction

Type Alias LocalFunction 

Source
pub type LocalFunction = Arc<dyn Fn(&Map<String, Value>, &Scope<'_>) -> Result<Value, String> + Send + Sync>;
Expand description

A function the embedder implements for its own catalog, run on the renderer: given the resolved arguments and its context, it returns a value or fails with a message (an EXECUTION_ERROR).

Aliased Typeยง

pub struct LocalFunction { /* private fields */ }