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

Method copied

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

Source from the content-addressed store, hash-verified

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"]

Callers 1

slice_to_wordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected