Variable VariantConst

Variant: { Err: "Err"; Ok: "Ok" } = ...

Discriminant for Ok and Err variants of the Result type.

You can use the discriminant via the variant property of Result instances if you need to match explicitly on it.