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

Method expect_copied

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

Source from the content-addressed store, hash-verified

141 #[must_use]
142 #[track_caller]
143 pub const fn expect_copied(self, msg: &str) -> T
144 where
145 T: Copy,
146 {
147 *self.expect_ref(msg)
148 }
149
150 /// Borrow the contained value.
151 ///

Callers

nothing calls this directly

Calls 1

expect_refMethod · 0.80

Tested by

no test coverage detected