Function clippy_lints::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.

Examples

match_def_path(cx, id, &["core", "option", "Option"])

See also the paths module.