| Crates.io | string_table |
| lib.rs | string_table |
| version | 1.0.0 |
| created_at | 2023-07-20 21:31:04.069732+00 |
| updated_at | 2023-07-20 21:31:04.069732+00 |
| description | A rust crate for a speedy String-based HashMap. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 921781 |
| size | 21,014 |
string_table is a crate for Rust that allows for speedy String-based HashMaps.
Run the following command:
$ cargo add string_table
Or add the following to your Cargo.toml:
[dependencies]
string_table = "1.0.0"
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);
This crate is licensed under the Apache License 2.0.