Skip to main content

CustomFn

Type Alias CustomFn 

Source
pub type CustomFn<N> = Arc<dyn Fn(&mut DynamicContext<'_, N>, Vec<XPathValue<N>>) -> Result<XPathValue<N>, XPathError> + Send + Sync>;
Expand description

Type alias for custom function implementation.

Custom functions receive the dynamic context and evaluated arguments, and return an XPath value or error.

Aliased Typeยง

pub struct CustomFn<N> { /* private fields */ }