Some.this

Construct this object by wrapping a given value.

  1. this()
  2. this(inout(U) value)
    struct Some(T)
    @nogc @safe pure nothrow
    this
    inout
    (
    U
    )
    (
    inout(U) value
    )
    if (
    is(U : T)
    )
    in { assert (value !is null, "A null value was given to Some."); }
    if (
    is(T == class) ||
    isPointer!T
    )

Parameters

value
Type: inout(U)

The value to create the object with.

Meta