{
  "id": "rust-env-table",
  "kind": "table",
  "slug": "rust-env",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-env/",
  "title": "Read a process environment variable in Rust with env::var",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "env::var",
      "source": "The Rust Programming Language",
      "detail": "Read one environment variable as a String"
    },
    {
      "name": "VarError",
      "source": "The Rust Programming Language",
      "detail": "Error type for operations interacting with environment variables"
    },
    {
      "name": "Vars",
      "source": "The Rust Programming Language",
      "detail": "Iterator over a snapshot of the process environment variables"
    },
    {
      "name": "set_var",
      "source": "The Rust Programming Language",
      "detail": "Set an environment variable for the currently running process"
    },
    {
      "name": "Args",
      "source": "The Rust Programming Language",
      "detail": "Iterator over the arguments of a process"
    }
  ],
  "related_slugs": [
    "rust-error-handling-result",
    "rust-ownership-borrowing",
    "rust-strings-utf8"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT OR Apache-2.0 (The Rust Programming Language); MIT OR Apache-2.0 (Rust standard library); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}