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

Method copied

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

Source from the content-addressed store, hash-verified

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

Callers 1

slice_to_wordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected