Returns a collider.
(c: ColliderSlotIndex)
| 82 | |
| 83 | /// Returns a collider. |
| 84 | const fn collider(c: ColliderSlotIndex) -> Self { |
| 85 | // Pack the `ColliderSlotIndex` into the page index bits. |
| 86 | let pi = PageIndex(c.0 as u64); |
| 87 | Self(RowPointer::new( |
| 88 | true, |
| 89 | pi, |
| 90 | PageOffset::VAR_LEN_NULL, |
| 91 | SquashedOffset::COMMITTED_STATE, |
| 92 | )) |
| 93 | } |
| 94 | |
| 95 | /// Returns whether this is a pointer or not. |
| 96 | const fn is_ptr(&self) -> bool { |