Skip to main content

parse_imp_marker

Function parse_imp_marker 

Source
pub fn parse_imp_marker(entry: &str) -> (&str, u8)
Expand description

Parse a leading (imp=N) marker from a layer entry.

Layer entries carry their importance as a leading (imp=N) marker. Legacy entries without the marker default to importance 5. Returns the entry text without the marker and the parsed importance.