str_windows-rs
Provides an iterator over windows of chars (as &str
s) of a &str
.
Does not allocate on the heap.
```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()); ```