| Crates.io | enum_array |
| lib.rs | enum_array |
| version | 0.1.0 |
| created_at | 2022-09-24 23:45:18.738348+00 |
| updated_at | 2022-09-24 23:45:18.738348+00 |
| description | A small crate adding a macro that creates a constant array containing all the items of the enum |
| homepage | |
| repository | |
| max_upload_size | |
| id | 673315 |
| size | 2,481 |
A small crate adding a macro that creates a constant array containing all the items of the enum. usage example:
enum_array!{
#[derive(Debug, PartialEq, Eq)]
pub enum Example {
A,
B,
}
}
assert_eq!(Example::ENTRIES, [Example::A, Example::B])