Skip to main content

fixed_array_elems

Function fixed_array_elems 

Source
pub(crate) fn fixed_array_elems(
    access: &TokenStream,
    borrowed: bool,
    elem_ty: &Type,
    elems: &[Ident],
) -> TokenStream
Expand description

Bind each element of fixed-array field value access to its own variable in elems: moved out of an owned array (indexing would need Copy), cloned out of a borrowed one, which is the only way to own an element behind a reference.