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

Method some

ctutils/src/ct_option.rs:60–62  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

58 #[inline]
59 #[must_use]
60 pub const fn some(value: T) -> CtOption<T> {
61 Self::new(value, Choice::TRUE)
62 }
63
64 /// Construct a new [`CtOption`] with the [`Default`] value, and where `self.is_some()` is
65 /// [`Choice::FALSE`].

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected