MCPcopy Create free account
hub / github.com/RustCrypto/utils / cloned

Method cloned

ctutils/src/ct_option.rs:530–538  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
541impl<T> CtOption<&mut T> {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected