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

Method is_none

ctutils/src/ct_option.rs:243–245  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

241 #[inline]
242 #[must_use]
243 pub const fn is_none(&self) -> Choice {
244 self.is_some.not()
245 }
246
247 /// Returns `optb` if `self.is_some()` is [`Choice::TRUE`], otherwise returns a [`CtOption`]
248 /// where `self.is_some()` is [`Choice::FALSE`].

Callers 4

orMethod · 0.80
xorMethod · 0.80
ct_eqMethod · 0.80
ct_findMethod · 0.80

Calls 1

notMethod · 0.80

Tested by

no test coverage detected