(&self)
| 365 | } |
| 366 | |
| 367 | pub const fn get_prev(&self) -> Option<NonNull<T>> { |
| 368 | // SAFETY: prev is the first field in PointersInner, which is #[repr(C)]. |
| 369 | unsafe { |
| 370 | let inner = self.inner.get(); |
| 371 | let prev = inner as *const Option<NonNull<T>>; |
| 372 | ptr::read(prev) |
| 373 | } |
| 374 | } |
| 375 | pub const fn get_next(&self) -> Option<NonNull<T>> { |
| 376 | // SAFETY: next is the second field in PointersInner, which is #[repr(C)]. |
| 377 | unsafe { |
no test coverage detected