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, e.g. match_path(path, &["std", "rt", "begin_unwind"])