Skip to main content

parse_path

Function parse_path 

Source
pub fn parse_path(path: &str) -> Vec<PathSegment>
👎Deprecated:

use try_parse_path; a bad [index] used to return an empty Vec

Expand description

Parse a path string into components.

Invalid bracket indexes used to return an empty Vec, which callers could not tell from a real empty path. Prefer try_parse_path.