A Rust crate for easy alphabet creation. Documentation is available on docs.rs
Add this to your Cargo.toml
:
toml
[dependencies]
alphabet-macro = "0.1"
```rs use alphabet_macro::alphabet;
alphabet!(HEX = "0123456789abcdef");
asserteq!(HEX.len(), 16); asserteq!(HEX[5], '5'); assert_eq!(HEX[10], 'a'); ```
This crate is published under the terms of the MIT license. See the LICENSE file for details.