Skip to main content

BoxedXPathFunction

Type Alias BoxedXPathFunction 

Source
pub type BoxedXPathFunction = Box<dyn Fn(&mut XPathContext, &[XPathValue]) -> Result<XPathValue, String> + Send + Sync>;
Expand description

A boxed, capture-capable XPath function implementation.

Plain function pointers coerce into this via boxing; capturing closures (e.g. EXSLT func:function bodies) can also be stored. Used for the extension-function registry and the EXSLT registry.

Aliased Type§

pub struct BoxedXPathFunction(/* private fields */);