1 stable release

Uses old Rust 2015

1.0.0 Apr 29, 2018

#149 in #character

MIT license

9KB
231 lines

Non-Allocating String Iterators

This library provides basic non-allocating string iterators for both substring and character functions.

Examples

  1. Character Functions
use str_iter::Func;

fn main() {
  "Hello 😎 Dennis! 😀"
      .func_iter(|c: char| c < '\u{1F600}' || c > '\u{1F64F}')
      .for_each(|v| println!("{}", v));
}

TODO

Implement the multitude of useful iterator traits.


lib.rs:

String Iterator Library

This crate provides substring and character function string iterators.

No runtime deps