iter.rs |
|
3850 |
iter_fused.rs |
|
515 |
iter_trusted_len.rs |
|
541 |
lib.rs |
# 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 features
- `exact-size-is-empty`: provide a specific impl of [`ExactSizeIterator::is_empty`][is_empty]
- `trusted-len`: impl the [`TrustedLen`] contract
[is_empty]: https://doc.rust-lang.org/std/iter/trait.ExactSizeIterator.html#method.is_empty
[`FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
[`TrustedLen`]: https://doc.rust-lang.org/std/iter/trait.TrustedLen.html
|
2126 |
macros.rs |
|
1520 |
par_iter.rs |
|
2871 |
pkg_info.rs |
Package information |
714 |
range.rs |
|
7210 |
step.rs |
|
1310 |