| 1691 | |
| 1692 | #[cfg(test)] |
| 1693 | fn reconstruct_bytes_used_by_rows(&self) -> u64 { |
| 1694 | self.pages() |
| 1695 | .iter() |
| 1696 | .map(|page| unsafe { |
| 1697 | // Safety: `page` is in `self`, and was constructed using `self.innser.row_layout` and `self.inner.visitor_prog`, |
| 1698 | // so the three are mutually consistent. |
| 1699 | page.reconstruct_bytes_used_by_rows(self.inner.row_layout.size(), &self.inner.visitor_prog) |
| 1700 | } as u64) |
| 1701 | .sum() |
| 1702 | } |
| 1703 | |
| 1704 | /// Returns the number of indices in this table. |
| 1705 | pub fn num_indices(&self) -> usize { |