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