str_windows-rs

Provides an iterator over windows of chars (as &strs) of a &str.

Does not allocate on the heap.

Examples

```rust use strwindows::strwindows;

let input = "s 😀😁"; let mut iter = strwindows(input, 3); asserteq!(iter.next(), Some("s 😀")); asserteq!(iter.next(), Some(" 😀😁")); assert!(iter.next().isnone()); ```