Skip to main content

split_directive

Function split_directive 

Source
pub fn split_directive(part: &str) -> Result<(&str, MetricLevel), String>
Expand description

Splits one directive into its (pattern, level) parts, rejecting an invalid level with an error describing the offending directive.