Function clippy::utils::match_path
[−]
[src]
pub fn match_path(path: &Path, segments: &[&str]) -> bool
Match a Path
against a slice of segment string literals.
Examples
match_path(path, &["std", "rt", "begin_unwind"])