Version: 1.1.0

@align

@align — Sets the minimum alignment, in bytes, of a struct. Use it when an ABI or a vector load requires a known alignment.

Example

@fieldwise_init
struct Demo:
    var value: Int

Apply @align on the declaration it changes. Decorators are resolved while compiling. They are not runtime wrappers.

See the decorator index for the rest of the set.