Function path_pat

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

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