Function clippy_lints::utils::match_qpath
[−]
[src]
pub fn match_qpath(path: &QPath, segments: &[&str]) -> bool
Match a Path
against a slice of segment string literals.
Examples
ⓘThis example is not tested
match_qpath(path, &["std", "rt", "begin_unwind"])