| Crates.io | word_iter |
| lib.rs | word_iter |
| version | 0.2.1 |
| created_at | 2021-02-22 13:02:11.265801+00 |
| updated_at | 2022-03-13 18:08:57.999078+00 |
| description | Simple Iterator over all words in a string |
| homepage | |
| repository | https://github.com/nilsmartel/words |
| max_upload_size | |
| id | 358981 |
| size | 4,681 |
simple rust library to iterate over all words in a given string
// by using this line, you can call the .words() method in strings
use word_iter::*;
let iter_over_words = "hello world".words();
Now you can do fun stuff like this:
for word in iter_over_words {
println!("{}", word);
}
Yes.
A simple benchmark I ran on the entirety of alice in wonderland (148574 bytes, 27345 words) took 598μs on an 2019 MacBook Pro (2,6 GHz 6-Core Intel Core i7)
This library was made in order to aid with document analyses, specifically search engine related research.