Attribute Macro array_as_struct

Source
#[array_as_struct]
Expand description

A derive-like macro which replaces a field-struct declaration with a tuple-struct declaration containing a single array. All fields in the original declaration must share the same type.

This attribute should almost always come before to any derive macros.