Skip to main content

parse_path_optional

Function parse_path_optional 

Source
pub fn parse_path_optional(s: &str) -> Option<String>
Expand description

Parse a path value that may have an :(optional) prefix.

Returns Some(path) if the path should be used, None if the path is optional and does not exist (meaning the entry should be skipped).