syntax::ast::make

Function or_pat

Source
pub fn or_pat(pats: impl IntoIterator<Item = Pat>, leading_pipe: bool) -> Pat
Expand description

Returns a Pat if the path has just one segment, an OrPat otherwise.