unwrap

Downcast object to type T, or unwrap it from Placeholder!T.

Downcast object to type T, or unwrap it from Placeholder!T. If T is rooted in Object, downcast will be performed, otherwise it is assumed that T is stored in Placeholder!T object, and therefore object is downcast to Placeholder!T and then returned.

nothrow
unwrap
(
T
)
(
inout(Object) object
)

Parameters

object inout(Object)

object from which to unwrap value of type T

Return Value

Type: auto

T if it is rooted in Object, or Placeholder!T if it is not.

Meta