Skip to main content

7 docs tagged with "enum"

View all tags

Dart Enum

Dart's enum is similar to Java's enum, support both name and fields like other classes.

Enum

Enum is a type that has a fixed set of values. It is useful to represent a set of related constants.

Go Enum

Go does not have enum. You can simulate using constant integer or string by defining a type.

Java Enum

Java's enum not only includes names but can also have fields like other classes.

Rust Enum

Rust Enum is not named integer like C, it is tagged union.