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. SumType opAssign(T rhs)
  2. SumType opAssign(SumType rhs)
    struct SumType(Types...)
    private public ref
    static if(allSatisfy!(isAssignableTo, Types))
    static if(allSatisfy!(isCopyable, Types))
    opAssign
    ()
    if (
    is(NoDuplicates!Types == Types) &&
    )
  3. SumType opAssign(SumType rhs)
  4. SumType opAssign(SumType rhs)

Meta