Function textwrap::word_splitters::split_words
source ยท pub fn split_words<'a, I>(
words: I,
word_splitter: &'a WordSplitter,
) -> impl Iterator<Item = Word<'a>>where
I: IntoIterator<Item = Word<'a>>,
Expand description
Split words into smaller words according to the split points given
by word_splitter
.
Note that we split all words, regardless of their length. This is to more cleanly separate the business of splitting (including automatic hyphenation) from the business of word wrapping.