Option.get

Get the value from this object.

Contracts ensure this value isn't null.

  1. Some!T get [@property getter]
    struct Option(T)
    @nogc @safe pure nothrow @property
    get
    (
    )
    in { assert (_value !is null, "get called for a null Option type!"); }
    if (
    is(T == class) ||
    isPointer!T
    )
  2. const(Some!T) get [@property getter]
  3. immutable(Some!T) get [@property getter]

Return Value

Type: Some!T

Some value from this object.

Meta