alphabet-macro

Crates.ioalphabet-macro
lib.rsalphabet-macro
version0.1.2
sourcesrc
created_at2020-09-05 13:16:30.26761
updated_at2020-09-05 17:16:54.088091
descriptionProvides a macro that can be used to easily create const alphabets.
homepage
repositoryhttps://gitlab.com/FloorIsJava/alphabet-macro
max_upload_size
id285102
size7,639
FloorIsJava (RealFloorIsJava)

documentation

README

alphabet-macro

A Rust crate for easy alphabet creation. Documentation is available on docs.rs.

Usage

Add this to your Cargo.toml:

[dependencies]
alphabet-macro = "0.1"

Getting Started

use alphabet_macro::alphabet;

alphabet!(HEX = "0123456789abcdef");

assert_eq!(HEX.len(), 16);
assert_eq!(HEX[5], '5');
assert_eq!(HEX[10], 'a');

License

This crate is published under the terms of the MIT license. See the LICENSE file for details.

Commit count: 3

cargo fmt