Option.dynamicCast

Given some type U, perform a dynamic cast on the class reference held within this optional value, and return a new optional value which may be null if the cast fails.

struct Option(T)
@nogc pure nothrow
inout(Option!U)
dynamicCast
inout
(
U
)
(
)
if (
is(T == class) ||
isPointer!T
)

Return Value

Type: inout(Option!U)

A casted optional value.

Meta