variants
The variants
crates provides a suite of abstractions, utilities, and prodedural macros to facilitate the creation and management of enums and their variants in Rust.
Features
-
VariantConstructor
- A derive macro for generating functional constructors for enum variants
Getting Started
Building from the source
Start by cloning the repository
Building the project
Running tests
Usage
Add this to your Cargo.toml
:
[]
= []
= "0.1.0"
Examples
Basic Usage
extern crate variants;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.