Option.get

Get the value from this object.

Contracts ensure this value isn't null.

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

Return Value

Type: const(Some!T)

Some value from this object.

Meta