ra_ap_syntax::ast::make
pub fn path_pat(path: Path) -> Pat
Returns a BindPat if the path has just one segment, a PathPat otherwise.
BindPat
PathPat