Enum

Overview

Enumerations constructed with the enum declaration can be targeted by the Enum namespace reflection methods. These methods allow introspection of a given enumeration value, specifically noted by their respective declaration.

Statics

.name

fn [E](enumeration: E, variant: Number) -> String

Gets the name of an enum variant.

.label

fn [E](enumeration: E, variant: Number) -> String

Gets the label of an enum variant.

.value

fn [E](enumeration: E, variant: Number) -> Number

Gets the value of an enum variant.

On this page