TaggedUnion.value

Accesses the contained value by reference.

The specified kind must equal the current value of the this.kind property. Setting a different type must be done with set or opAssign instead.

  1. inout(FieldTypes[kind]) value [@property getter]
    struct TaggedUnion
    @property ref inout
    inout(FieldTypes[kind])
    value
    (
    Kind kind
    )
    ()
  2. inout(T) value [@property getter]

See Also

set, opAssign

Meta