Expand description
Single source of truth for HeapValue variants.
define_heap_types! generates:
HeapValueenumHeapKindenum (discriminant)HeapValue::kind()methodHeapValue::is_truthy()methodHeapValue::type_name()method
equals(), structural_eq(), and Display remain hand-written because
they have complex per-variant logic (e.g. cross-type numeric comparison).