word_iter 0.2.1

Simple Iterator over all words in a string
Documentation
  • Coverage
  • 0%
    0 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 4.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nilsmartel/words
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nilsmartel

Word Iter

simple rust library to iterate over all words in a given string

Usage

// 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);
}

Is this library performant?

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)

Why was this created?

This library was made in order to aid with document analyses, specifically search engine related research.