5 releases

0.2.2 Sep 6, 2020
0.2.1 Sep 6, 2020
0.2.0 Sep 6, 2020
0.1.1 Sep 5, 2020
0.1.0 Sep 5, 2020

#1272 in Math

Download history 4/week @ 2024-11-14 27/week @ 2024-11-21 12/week @ 2024-11-28 16/week @ 2024-12-05 21/week @ 2024-12-12 1/week @ 2024-12-19 6/week @ 2025-01-09 13/week @ 2025-01-16 2/week @ 2025-01-23 11/week @ 2025-01-30 16/week @ 2025-02-06 22/week @ 2025-02-13 11/week @ 2025-02-20 15/week @ 2025-02-27

66 downloads per month

MIT license

23KB
504 lines

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.


lib.rs:

Provides utilities for working with alphabets.

Note: This package re-exports the alphabet!() macro defined by the crate alphabet_macro.

Dependencies

~1.5MB
~38K SLoC