Skip to content

realmofuz/string_table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A rust crate for a speedy String-based HashMap.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages