Function parse_path

Source
pub fn parse_path(s: &str) -> Result<(Path<'_>, &str), Error>
Expand description

Parses the path from the prefix of s.

Returns Ok(path, rest_of_s). Returns Err(InvalidPath) if the path is invalid.