syntax::ast::make

Function tuple_pat

source
pub fn tuple_pat(pats: impl IntoIterator<Item = Pat>) -> TuplePat
Expand description

Creates a tuple of patterns from an iterator of patterns.

Invariant: pats must be length > 0