(&self)
| 97 | #[inline] |
| 98 | #[must_use] |
| 99 | pub fn as_deref(&self) -> CtOption<&T::Target> |
| 100 | where |
| 101 | T: Deref, |
| 102 | { |
| 103 | self.as_ref().map(Deref::deref) |
| 104 | } |
| 105 | |
| 106 | /// Convert from `CtOption<T>` (or `&mut CtOption<T>`) to `CtOption<&mut T::Target>`, for types |
| 107 | /// which impl the [`DerefMut`] trait. |