Variant.tryGet

Tries to get the content of the variant.

struct Variant
@nogc @trusted nothrow
Option!T
tryGet
(
T
)
()

Return Value

Type: Option!T

A Option value either containing the value or invalid state.

Meta