kwindex 0.1.2

This is a Rust based "keyword index" library crate that maintaining an index of words from texts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// extern crate kwindex;
use kwindex::*;

fn main() {
    let mut index = KWIndex::new();
    println!("is_empty(): {}\n", index.is_empty());

    index = index.extend_from_text("Hey world!");
    println!("\nis_empty(): {}", index.is_empty());
    println!("len(): {}", index.len());

    let check = "world";
    println!("count_matches('{}'): {}", check, index.count_matches(check));
    println!("\n{:?}", index);
}