Function clippy::utils::match_path_ast  
            
                [−]
            
        [src]
pub fn match_path_ast(path: &Path, segments: &[&str]) -> bool
Match a Path against a slice of segment string literals, e.g.
Examples
match_path(path, &["std", "rt", "begin_unwind"])