# Safety `self.is_oom()` must be true.
(&mut self)
| 1613 | /// |
| 1614 | /// `self.is_oom()` must be true. |
| 1615 | unsafe fn unchecked_oom_mut(&mut self) -> &mut OutOfMemory { |
| 1616 | debug_assert!(self.is_oom()); |
| 1617 | // Safety: `self.is_oom()` and `OutOfMemory` has the same representation |
| 1618 | // as `Self`. |
| 1619 | unsafe { mem::transmute(self) } |
| 1620 | } |
| 1621 | |
| 1622 | /// # Safety |
| 1623 | /// |