(self)
| 518 | /// Maps a `CtOption<&T>` to `CtOption<T>` by copying the contents of the option. |
| 519 | #[must_use = "`self` will be dropped if the result is not used"] |
| 520 | pub const fn copied(self) -> CtOption<T> |
| 521 | where |
| 522 | T: Copy, |
| 523 | { |
| 524 | CtOption { |
| 525 | value: *self.value, |
| 526 | is_some: self.is_some, |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | /// Maps a `CtOption<&T>` to `CtOption<T>` by cloning the contents of the option. |
| 531 | #[must_use = "`self` will be dropped if the result is not used"] |