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

Method expect

ctutils/src/ct_option.rs:125–128  ·  view source on GitHub ↗
(self, msg: &str)

Source from the content-addressed store, hash-verified

123 #[must_use]
124 #[track_caller]
125 pub fn expect(self, msg: &str) -> T {
126 assert!(self.is_some().to_bool(), "{}", msg);
127 self.value
128 }
129
130 /// Return the contained value, consuming the `self` value, with `const fn` support.
131 ///

Callers 15

absorb_fullFunction · 0.80
absorb_partialFunction · 0.80
squeeze_xor_fullFunction · 0.80
raw_posMethod · 0.80
set_posMethod · 0.80
absorb_u64_leMethod · 0.80
squeeze_inner_u64_leMethod · 0.80
newMethod · 0.80
serializeMethod · 0.80
digest_padMethod · 0.80
split_blocksMethod · 0.80
expect_noneFunction · 0.80

Calls

no outgoing calls

Tested by 1

zeroize_c_stringFunction · 0.64