pub fn or_pat(pats: impl IntoIterator<Item = Pat>, leading_pipe: bool) -> OrPatExpand description
Returns a Pat if the path has just one segment, an OrPat otherwise.
Invariant: pats must be length > 1.
pub fn or_pat(pats: impl IntoIterator<Item = Pat>, leading_pipe: bool) -> OrPatReturns a Pat if the path has just one segment, an OrPat otherwise.
Invariant: pats must be length > 1.