{
  "id": "rust-drop-table",
  "kind": "table",
  "slug": "rust-drop",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-drop/",
  "title": "Run cleanup when a Rust value goes out of scope with Drop",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Drop trait",
      "source": "The Rust Programming Language",
      "detail": "Customize what happens when a value goes out of scope"
    },
    {
      "name": "Drop::drop",
      "source": "The Rust Programming Language",
      "detail": "Custom code within the destructor"
    },
    {
      "name": "drop glue",
      "source": "The Rust Programming Language",
      "detail": "Recursively calls the destructors of all contained fields"
    },
    {
      "name": "std::mem::drop",
      "source": "The Rust Programming Language",
      "detail": "Function that force-drops a value early"
    }
  ],
  "related_slugs": [],
  "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."
}