[−][src]Crate enumx
enumx = ENUM eXtensions.
See the enumx book for more.
Modules
| export | Reorganize types, traits and macros to export to end users. |
| macros | The predfined macros for implementing traits for enums |
| predefined | Predefined ad-hoc enums |
| proto | Since |
Macros
| Enum |
|
| def_impls | defines enums, with the syntax support of |
| impl_all_traits | The |
| impl_super_traits | The |
| impl_trait | For frequently used traits in std, this library provides macros such as
|
Structs
| EnumToEnum | Used in |
Traits
| ExchangeFrom | Constructs an enum from one of its variants, or from an enum composed of a subset of its variants. |
| ExchangeInto | Wraps a variant into an enum, or converts an enum into another one, the variants of which is a superset of the converted enum's. |
| FromVariant | Constructs an enum from one of its variants. |
| IntoEnum | Wraps a variant into an enum. |
| Proto | Indicates the prototype for a user-defined |
Type Definitions
| TyPat | Wrapper for non-path types in type pattern matching using |
Attribute Macros
| enumx | tag an |
| sum | collects all returned values in exit branches of the function, into an enum type, returning an |
| sum_err | To translate the |
Derive Macros
| Exchange | derives |
| FromVariant | Derives the trait |
| Proto | Since |