Variant module

get

procedure · 1 overloadsince 0.29.0Source

A copy of the T payload and true; a zeroed T and false when another case is live.

get :: (v: $V/Variant, $T: Type) -> (T, bool)

A copy of the T payload and true; a zeroed T and false when another case is live.

Parameters

v: $V/Variant
$T: Type

Returns

T
bool

See also