SumType.opAssign

Copies the value from another SumType into this one.

See the value-assignment overload for details on @safety.

Copy assignment is @disabled if any of Types is non-copyable.

  1. void opAssign(T rhs)
  2. void opAssign(SumType rhs)
    struct SumType(TypeArgs...)
    static if(allSatisfy!(isAssignable, Types))
    static if(allSatisfy!(isCopyable, Types))
    void
    opAssign
    ()
    if (
    is(NoDuplicates!TypeArgs == TypeArgs) &&
    TypeArgs.length > 0
    )
  3. void opAssign(SumType rhs)
  4. void opAssign(SumType rhs)

Meta