enum_to_vec

Crates.ioenum_to_vec
lib.rsenum_to_vec
version0.1.0
sourcesrc
created_at2024-11-17 02:44:07.168926
updated_at2024-11-17 02:44:07.168926
descriptionEnum to vec
homepagehttps://github.com/ptechen
repositoryhttps://github.com/ptechen/enum_to_vec.git
max_upload_size
id1450857
size6,187
Petechen (ptechen)

documentation

https://docs.rs/enum_to_vec

README

enum_to_vec

Version info Downloads docs dependency status

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());
}

Commit count: 4

cargo fmt