Skip to main content

expanded_elem_prelude

Function expanded_elem_prelude 

Source
fn expanded_elem_prelude(vi: &VariantInfo, borrowed_rows: bool) -> TokenStream
Expand description

Bind the elements of variant vi’s [T; N] / width = N fields to the variables enum_elem_idents names, for a match arm whose pattern binds each field to its binding. With borrowed_rows the arm matches a borrowed row, so each binding is a reference and every element is cloned.