alekratz/enum-methods
Method generation for enumerated types in Rust
This project helps Rust developers quickly add common 'getter' and 'is-a' methods to their `enum` types. Instead of manually writing code to check the type and extract values, you define your `enum` and then automatically generate these helper methods. This tool is for Rust programmers who frequently work with `enum` types and want to reduce repetitive boilerplate code.
12 stars and 12,437 monthly downloads. No commits in the last 6 months.
Use this if you are a Rust developer looking to reduce manual coding for common `enum` value extraction and type checking.
Not ideal if you need highly customized method logic for your enums that goes beyond simple value retrieval or type checking.
Stars
12
Forks
3
Language
Rust
License
Apache-2.0
Category
Last pushed
Apr 11, 2019
Monthly downloads
12,437
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/alekratz/enum-methods"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lerouxrgd/rsgen-avro
Command line and library for generating Rust types from Avro schemas
seaofvoices/darklua
A command line tool that transforms Lua code
elastio/bon
Next-gen compile-time-checked builder generator, named function's arguments, and more!
usethesource/rascal
The implementation of the Rascal meta-programming language (including interpreter, type checker,...
JacquesCarette/Drasil
Generate all the things (focusing on research software)