Description

Attribute macros for const array.

Badges

Latest Release pipeline status coverage report

Usage

``` use constarrayattrs::sorted;

[sorted]

pub const KEYWORDS: [(&'static str, u8); 3] = [ ("Pa", 1), ("N", 2), ("ft", 3), ];

let mut it = KEYWORDS.iter();

asserteq!(it.next(), Some(&("N", 2))); asserteq!(it.next(), Some(&("Pa", 1))); assert_eq!(it.next(), Some(&("ft", 3))); ```

Project status

This package is in the very early stage.