pub fn path_matches<P, S, Queries>(path: P, queries: Queries) -> boolwhere
    P: AsRef<Path>,
    S: AsRef<str>,
    Queries: IntoIterator<Item = S>,
Expand description

Check if a sequence of queries matches a given path.

This algorithm works by scanning through the candidate trying to match the beginning of the query. Once a match has begun, any non-matching characters will cause the scan to skip to the next word of the candidate. If the end of the option is reached before the entire query has been matched somewhere, the option is considered not to match.

If any component of the path fails to match, or the path is too short, this returns false.

Examples