{
  "id": "rust-derivable-traits-table",
  "kind": "table",
  "slug": "rust-derivable-traits",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-derivable-traits/",
  "title": "You can apply derive to a struct or enum definition. (cheat table)",
  "columns": [
    "topic",
    "fact",
    "source_id"
  ],
  "rows": [
    {
      "topic": "C1",
      "fact": "You can apply derive to a struct or enum definition.",
      "source_id": "S1"
    },
    {
      "topic": "C2",
      "fact": "Display is an example of a trait that can't be derived.",
      "source_id": "S1"
    },
    {
      "topic": "C3",
      "fact": "The compiler can provide basic implementations via the #[derive] attribute.",
      "source_id": "S2"
    },
    {
      "topic": "C4",
      "fact": "Derivable comparison traits include Eq, PartialEq, Ord, and PartialOrd.",
      "source_id": "S2"
    },
    {
      "topic": "C5",
      "fact": "Clone creates T from &T via a copy.",
      "source_id": "S2"
    }
  ],
  "related_slugs": [
    "rust-traits",
    "rust-structs",
    "rust-enums"
  ],
  "license": "CC-BY-4.0",
  "as_of": "2026-11-23",
  "status": "draft"
}
