Skip to main content

apply_rules_with_format

Function apply_rules_with_format 

Source
pub fn apply_rules_with_format(
    rules: &[PathMappingRule],
    path: &str,
    output_format: PathFormat,
) -> String
Expand description

Apply rules with an explicit output format.

Rules must be pre-sorted by decreasing source_path length (longest match first).