Optional.this

Constructs an Optional!T value by assigning T

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

  1. this(U value)
    struct Optional(T)
    this
    (
    U : T
    this This
    )
    (
    auto ref U value
    )
  2. this(None )

Meta