| Crates.io | const-array-attrs |
| lib.rs | const-array-attrs |
| version | 0.0.3 |
| created_at | 2022-03-01 13:57:01.800125+00 |
| updated_at | 2022-03-13 05:56:46.989938+00 |
| description | Attribute macros for const array. |
| homepage | https://gitlab.com/fton/const-array-attrs |
| repository | https://gitlab.com/fton/const-array-attrs |
| max_upload_size | |
| id | 541547 |
| size | 16,845 |
Attribute macros for const array.
use const_array_attrs::sorted;
#[sorted]
pub const KEYWORDS: [(&'static str, u8); 3] = [
("Pa", 1),
("N", 2),
("ft", 3),
];
let mut it = KEYWORDS.iter();
assert_eq!(it.next(), Some(&("N", 2)));
assert_eq!(it.next(), Some(&("Pa", 1)));
assert_eq!(it.next(), Some(&("ft", 3)));
This package is in the very early stage.