Optional.opAssign

Assigns a value to the optional or sets it to none.

If T is of class type, interface type, or some function pointer than passing in null sets the optional to none internally

  1. void opAssign(None )
  2. void opAssign(U lhs)
  3. void opAssign(Optional!U lhs)
    struct Optional(T)
    void
    opAssign
    (
    U : T
    )
    (
    auto ref Optional!U lhs
    )
    if ()

Meta