Function clippy_lints::utils::match_def_path
[−]
[src]
pub fn match_def_path(tcx: TyCtxt, def_id: DefId, path: &[&str]) -> bool
Check if a DefId
's path matches the given absolute type path usage.
Examples
ⓘThis example is not tested
match_def_path(cx.tcx, id, &["core", "option", "Option"])
See also the paths
module.