Function todo_lib::todotxt::parse_priority[][src]

pub fn parse_priority(s: &str) -> Result<u8, String>
Expand description

Parse a string as a priority, returns an error if the string is not a valid priority. A string must be a capital Latin letter enclosed in parentheses.