(&self)
| 86 | #[inline] |
| 87 | #[must_use] |
| 88 | pub const fn as_ref(&self) -> CtOption<&T> { |
| 89 | CtOption { |
| 90 | value: &self.value, |
| 91 | is_some: self.is_some, |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /// Convert from `CtOption<T>` (or `&CtOption<T>`) to `CtOption<&T::Target>`, for types which |
| 96 | /// impl the [`Deref`] trait. |
no outgoing calls
no test coverage detected