Skip to main content

ExsltClosure

Type Alias ExsltClosure 

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

A capture-capable EXSLT function (used by func:function bodies).

Stored as a leaked &'static reference so entries are Copy and the registry can hand out clones. The process-wide registry lives for the lifetime of the program, so leaking is intentional and bounded.