(self)
| 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"] |
| 530 | pub fn cloned(self) -> CtOption<T> |
| 531 | where |
| 532 | T: Clone, |
| 533 | { |
| 534 | CtOption { |
| 535 | value: self.value.clone(), |
| 536 | is_some: self.is_some, |
| 537 | } |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | impl<T> CtOption<&mut T> { |