path_matching_ident

Function path_matching_ident 

Source
pub fn path_matching_ident(path: &Path, str: impl Str) -> bool
Expand description

Checks if a given Path consists of a single identifier same as given string.