{
  "id": "rust-hashmap-table",
  "kind": "table",
  "slug": "rust-hashmap",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-hashmap/",
  "title": "Hash maps look up data by a key that can be of any type, not by an index. (cheat table)",
  "columns": [
    "topic",
    "fact",
    "source_id"
  ],
  "rows": [
    {
      "topic": "C1",
      "fact": "Hash maps look up data by a key that can be of any type, not by an index.",
      "source_id": "S1"
    },
    {
      "topic": "C2",
      "fact": "An empty hash map can be created with new and filled with insert.",
      "source_id": "S1"
    },
    {
      "topic": "C3",
      "fact": "HashMap is not in the prelude, so you need to use std::collections::HashMap.",
      "source_id": "S1"
    },
    {
      "topic": "C4",
      "fact": "Keys can be booleans, integers, strings, or other types that implement Eq and Hash.",
      "source_id": "S2"
    }
  ],
  "related_slugs": [
    "rust-generics",
    "rust-string-vs-str",
    "rust-ownership-borrowing"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT OR Apache-2.0 (The Rust Programming Language); MIT OR Apache-2.0 (Rust by Example); prose restates cited source lines in own words",
  "as_of": "2026-11-23",
  "status": "draft-20261123-cov-02",
  "note": "Restated from the note; check the note sources before relying on a value."
}
