Constructs a new enumerator.
The name of the enumerator.
The numeric value of the enumerator.
ReadonlynameThe name of the enumerator.
ReadonlyvalueThe value of the enumerator.
Static ReadonlyCompactFavors compactness, but does not support slicing-off unknown slices during unmarshaling.
Static ReadonlySlicedAllows slicing-off unknown slices during unmarshaling, at the cost of some extra space in the marshaled data.
Returns a string representation of the current enumerator.
A string representation of the current enumerator.
StaticvalueReturns the enumerator corresponding to the specified numeric value.
The numeric value of the enumerator.
The matching enumerator, or undefined if no enumerator corresponds to the given value.
This enumeration describes the possible formats for classes.