Function clippy_lints::utils::match_path [] [src]

pub fn match_path(path: &QPath, segments: &[&str]) -> bool

Match a Path against a slice of segment string literals.

Examples

match_path(path, &["std", "rt", "begin_unwind"])