Skip to main content

matching_rules

Function matching_rules 

Source
pub fn matching_rules<'r>(path: &Path, rules: &'r [Rule]) -> Vec<&'r Rule>
Expand description

Returns the subset of rules that match path.

A rule matches when its applyTo glob accepts the path and its ignore glob does not. Disabled rules are skipped.