Skip to main content

get_rule

Function get_rule 

Source
pub fn get_rule(name: &str) -> Option<fn(&RuleContext<'_>) -> Option<String>>
Expand description

Look up a registered rule by name. Returns None for any other name, which fails the load with UNKNOWN_RULE.