Function clippy::utils::match_def_path
[−]
[src]
pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool
check if a DefId's path matches the given absolute type path
usage e.g. with
match_def_path(cx, id, &["core", "option", "Option"])