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

Method is_none

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

Source from the content-addressed store, hash-verified

239 #[inline]
240 #[must_use]
241 pub const fn is_none(&self) -> Choice {
242 self.is_some.not()
243 }
244
245 /// Returns `optb` if `self.is_some()` is [`Choice::TRUE`], otherwise returns a [`CtOption`]
246 /// 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