Skip to main content

register_host_context_functions

Function register_host_context_functions 

Source
pub fn register_host_context_functions(
    lib: &mut FunctionLibrary,
    rules: Arc<Vec<PathMappingRule>>,
)
Expand description

Register host-context-only functions (e.g. apply_path_mapping).

rules are captured by the registered closure and applied on every apply_path_mapping call during evaluation.