(&mut self)
| 1657 | } |
| 1658 | |
| 1659 | pub(crate) fn unpack_mut(&mut self) -> OomOrDynErrorMut<'_> { |
| 1660 | if self.is_oom() { |
| 1661 | // Safety: self.is_oom() is true |
| 1662 | OomOrDynErrorMut::Oom(unsafe { self.unchecked_oom_mut() }) |
| 1663 | } else { |
| 1664 | debug_assert!(self.is_boxed_dyn_error()); |
| 1665 | // Safety: self.is_boxed_dyn_error() is true. |
| 1666 | OomOrDynErrorMut::DynError(unsafe { self.unchecked_dyn_error_mut() }) |
| 1667 | } |
| 1668 | } |
| 1669 | |
| 1670 | pub(crate) fn into_boxed_dyn_core_error( |
| 1671 | self, |
no test coverage detected