string_table 1.0.0

A rust crate for a speedy String-based HashMap.
Documentation
  • Coverage
  • 58.82%
    10 out of 17 items documented8 out of 11 items with examples
  • Size
  • Source code size: 20.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.66 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • akarahdev

Crates.io License Docs.rs

String Table

string_table is a crate for Rust that allows for speedy String-based HashMaps.

Usage

Run the following command:

$ cargo add string_table

Or add the following to your Cargo.toml:

[dependencies]
string_table = "1.0.0"

Example

let mut table = StringTable::new();
table.insert("a", 10i32);
table.insert("b", 20i32);
table.insert("c", 30i32);

assert!(table.get("a").unwrap() == &10);
assert!(table.get("b").unwrap() == &20);
assert!(table.get("c").unwrap() == &30);

License

This crate is licensed under the Apache License 2.0.