{
  "id": "rust-path-table",
  "kind": "table",
  "slug": "rust-path",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-path/",
  "title": "Inspect a filesystem path in Rust and read the file",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Path",
      "source": "Rust standard library",
      "detail": "Unsized type for inspecting a path"
    },
    {
      "name": "file_name",
      "source": "Rust standard library",
      "detail": "Final component of the Path, if there is one"
    },
    {
      "name": "has_root",
      "source": "Rust standard library",
      "detail": "Whether the path starts with the root"
    },
    {
      "name": "fs::read_to_string",
      "source": "Rust standard library",
      "detail": "Read a file_path into a String"
    }
  ],
  "related_slugs": [
    "rust-strings-utf8",
    "rust-error-handling-result",
    "rust-ownership-borrowing"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT OR Apache-2.0 (Rust standard library); MIT OR Apache-2.0 (The Rust Programming Language); 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."
}