Version: 1.1.0

@fieldwise_init

@fieldwise_init — Generates an initializer that takes one argument per field, in declaration order.

Example

@fieldwise_init
struct Demo:
    var value: Int

Apply @fieldwise_init 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.