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.
pub fn or_pat(pats: impl IntoIterator<Item = Pat>, leading_pipe: bool) -> Pat
Returns a Pat
if the path has just one segment, an OrPat
otherwise.