Expand description
Enum parameters. enum is a keyword, so enums it is.
Structs§
- Enum
Param - An
IntParam-backed categorical parameter that allows convenient conversion to and from a simple enum. This enum must derive the re-exported Enum trait. Check the trait’s documentation for more information on how this works. - Enum
Param Inner - The type-erased internals for
EnumParamso that the wrapper can interact with it. Acts like anIntParambut with different conversions from strings to values.
Traits§
- Enum
- An enum usable with
EnumParam. This trait can be derived. Variants are identified either by a stable id (see below), or if those are not set then they are identifier by their declaration order. If you don’t provide IDs then you can freely rename the variant names, but reordering them will break compatibility with existing presets. The variant’s name is used as the display name by default. If you want to override this, for instance, because it needs to contain spaces, then you can use the#[name = "..."]attribute:
Derive Macros§
- Enum
- Derive the
Enumtrait for simple enum parameters. SeeEnumParamfor more information.