https://github.com/speelbarrow/enum-from-functions.rs
A procedural macro that will create an enum with associated functions that each have a corresponding variant.
https://github.com/speelbarrow/enum-from-functions.rs
macro macros meta metaprogramming proc-macro procedural rs rust rust-lang
Last synced: about 1 year ago
JSON representation
A procedural macro that will create an enum with associated functions that each have a corresponding variant.
- Host: GitHub
- URL: https://github.com/speelbarrow/enum-from-functions.rs
- Owner: speelbarrow
- License: osl-3.0
- Created: 2023-07-24T19:46:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T16:59:58.000Z (almost 3 years ago)
- Last Synced: 2025-02-27T16:08:52.519Z (over 1 year ago)
- Topics: macro, macros, meta, metaprogramming, proc-macro, procedural, rs, rust, rust-lang
- Language: Rust
- Homepage: https://docs.rs/crates/enum-from-functions
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `enum-from-functions.rs` [](https://github.com/speelbarrow/enum-from-functions.rs/actions/workflows/cicd.yml) [](https://crates.io/crates/enum-from-functions)
**A procedural macro that will create an enum with associated functions that each have a corresponding variant.**
Documentation can be found inline or on [docs.rs](https://docs.rs/enum-from-functions/latest/enum_from_functions/).