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

Method unwrap

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

Source from the content-addressed store, hash-verified

442 #[must_use]
443 #[track_caller]
444 pub fn unwrap(self) -> T {
445 assert!(
446 self.is_some.to_bool(),
447 "called `CtOption::unwrap()` on a value with `is_some` set to `Choice::FALSE`"
448 );
449 self.value
450 }
451
452 /// Return the contained value in the event `self.is_some()` is [`Choice::TRUE`], or if not,
453 /// uses a provided default.

Callers 14

keccak_testFunction · 0.45
unwrap_noneFunction · 0.45
test_deriveFunction · 0.45
arc_unsized_zeroizingFunction · 0.45
hash_to_endMethod · 0.45
mainFunction · 0.45
generatorFunction · 0.45
generatorFunction · 0.45
generatorFunction · 0.45
generatorFunction · 0.45
generatorFunction · 0.45
generatorFunction · 0.45

Calls

no outgoing calls

Tested by 3

keccak_testFunction · 0.36
test_deriveFunction · 0.36
arc_unsized_zeroizingFunction · 0.36