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 )
    struct Optional(T)
    void
    opAssign
    ()
    (
    const None
    )
  2. void opAssign(U lhs)
  3. void opAssign(Optional!U lhs)

Meta