alphabet

Crates.ioalphabet
lib.rsalphabet
version0.2.2
sourcesrc
created_at2020-09-05 14:35:15.527575
updated_at2020-09-06 10:41:22.892353
descriptionProvides utilities for working with alphabets.
homepage
repositoryhttps://gitlab.com/FloorIsJava/alphabet
max_upload_size
id285128
size23,999
FloorIsJava (RealFloorIsJava)

documentation

README

alphabet

A Rust crate providing utilities for working with alphabets. Documentation is available on docs.rs.

Usage

Add this to your Cargo.toml:

[dependencies]
alphabet = "0.2"

Getting Started

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");

License

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

Commit count: 8

cargo fmt