4 releases (breaking)
0.9.0 | Mar 3, 2019 |
---|---|
0.8.0 | Jan 2, 2019 |
0.7.0 | Feb 7, 2018 |
0.6.0 | Sep 22, 2017 |
#832 in Text processing
306,077 downloads per month
Used in 681 crates
(20 directly)
23KB
353 lines
UNIC — Unicode Character Tools — Character Range
A simple way to control iteration over a range of characters.
Examples
#[macro_use] extern crate unic_char_range;
# fn main() {
for character in chars!('a'..='z') {
// character is each character in the lowercase english alphabet in order
}
for character in chars!(..) {
// character is every valid char from lowest codepoint to highest
}
# }
Features
None of these features are included by default; they rely on unstable Rust feature gates.
unstable
: enables all featuresexact-size-is-empty
: provide a specific impl ofExactSizeIterator::is_empty
trusted-len
: impl theTrustedLen
contract
Dependencies
~0–285KB