Extracts the heap index from this pointer. Panics if this is not a heap pointer.
(&self)
| 331 | /// |
| 332 | /// Panics if this is not a heap pointer. |
| 333 | pub(crate) fn heap_index(&self) -> usize { |
| 334 | match self { |
| 335 | DatumPtr::Heap(index) => unchecked_u24_as_usize(*index), |
| 336 | DatumPtr::Constant(_) => panic!("Expected a heap pointer"), |
| 337 | } |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | #[cfg(test)] |
no outgoing calls
no test coverage detected