Crates.io | alphabet |
lib.rs | alphabet |
version | 0.2.2 |
source | src |
created_at | 2020-09-05 14:35:15.527575 |
updated_at | 2020-09-06 10:41:22.892353 |
description | Provides utilities for working with alphabets. |
homepage | |
repository | https://gitlab.com/FloorIsJava/alphabet |
max_upload_size | |
id | 285128 |
size | 23,999 |
A Rust crate providing utilities for working with alphabets. Documentation is available on docs.rs.
Add this to your Cargo.toml
:
[dependencies]
alphabet = "0.2"
use alphabet::*;
alphabet!(BINARY = "01");
let mut words = BINARY.iter_words();
assert_eq!(words.next().unwrap(), "");
assert_eq!(words.next().unwrap(), "0");
assert_eq!(words.next().unwrap(), "1");
assert_eq!(words.next().unwrap(), "00");
assert_eq!(words.next().unwrap(), "01");
assert_eq!(words.next().unwrap(), "10");
This crate is published under the terms of the MIT license. See the LICENSE file for details.