Nullable.toString

Gives the string "Nullable.null" if isNull is true. Otherwise, the result is equivalent to calling std.format.formattedWrite on the underlying value.

  1. string toString()
  2. string toString()
  3. void toString(W writer, FormatSpec!char fmt)
    struct Nullable(T)
    void
    toString
    (
    W
    )
    (
    ref W writer
    ,
    scope const ref FormatSpec!char fmt
    )
    if (
    isOutputRange!(W, char)
    )
  4. void toString(W writer, FormatSpec!char fmt)

Parameters

writer W

A char accepting output range

fmt FormatSpec!char

A std.format.FormatSpec which is used to represent the value if this Nullable is not null

Return Value

Type: void

A string if writer and fmt are not set; void otherwise.

Meta