option

A helper function for constructing Option!T values.

  1. inout(Option!T) option(inout(T) value)
  2. inout(Option!T) option(inout(Some!T) value)
    @nogc @safe pure nothrow
    inout(Option!T)
    option
    (
    T
    )
    (
    inout(Some!T) value
    )

Parameters

value
Type: inout(Some!T)

A value to wrap.

Return Value

Type: inout(Option!T)

The value wrapped in an option type.

Meta