pub fn parse_path(s: &str) -> Result<(Path<'_>, &str), Error>
Parses the path from the prefix of s.
s
Returns Ok(path, rest_of_s). Returns Err(InvalidPath) if the path is invalid.
Ok(path, rest_of_s)
Err(InvalidPath)