option

A helper function for constructing Option!T values.

  1. inout(Option!T) option(inout(T) value)
    @nogc @safe pure nothrow
    inout(Option!T)
    option
    (
    T
    )
    (
    inout(T) value
    )
    if (
    is(T == class) ||
    isPointer!T
    )
  2. inout(Option!T) option(inout(Some!T) value)

Parameters

value
Type: inout(T)

A value to wrap.

Return Value

Type: inout(Option!T)

The value wrapped in an option type.

Meta