[−][src]Trait odds::string::StrChunksWindows
Extension traits for the char_chunks
and char_windows
methods
Required methods
fn char_chunks(&self, n: usize) -> CharChunks
Return an iterator that splits the string in substrings of each n
char
per substring. The last item will contain the remainder if
n
does not divide the char length of the string evenly.
fn char_windows(&self, n: usize) -> CharWindows
Return an iterator that produces substrings of each n
char
per substring in a sliding window that advances one char at a time.
Panics if n
is zero.