pub fn make_apply_path_mapping_fn(
rules: Arc<Vec<PathMappingRule>>,
) -> impl Fn(&mut dyn EvalContext, &[ExprValue]) -> Result<ExprValue, ExpressionError> + Send + Sync + 'staticExpand description
Build a closure for apply_path_mapping that captures the given rules.
The rules are stored in an Arc so many FunctionLibrary clones can
share them cheaply. This factory is the only way to produce an
apply_path_mapping implementation; the host crate passes its rules
at library-construction time rather than plumbing them through the
evaluator on every call.