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

Meta