pub fn generate_exhaustive_destructuring<'a>(
fields: impl ExactSizeIterator<Item = &'a Field>,
) -> (TokenStream, Vec<TokenStream>)
Expand description
Generates an exhaustive match arm destructuring pattern for the given
fields. This is equivalent to calling generate_destructuring
with a
filter_field
function that always returns true
.
Returns both the capture pattern token stream and the name of the bound identifiers corresponding to the input fields.