1 unstable release
0.1.0 | Nov 17, 2024 |
---|
#629 in Procedural macros
130 downloads per month
4KB
enum_to_vec
Example
use enum_to_vec::ToVec;
#[derive(ToVec)]
#[snake_case]
enum Test {
Test,
TestA,
TestB,
}
#[test]
fn test_vec() {
assert_eq!(vec!["test", "test_a", "test_b"], Test::to_vec());
}
Dependencies
~245–690KB
~16K SLoC