syntax::ast::make

Function path_pat

source
pub fn path_pat(path: Path) -> Pat
Expand description

Returns a BindPat if the path has just one segment, a PathPat otherwise.