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

Method not

ctutils/src/choice.rs:79–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 #[inline]
78 #[must_use]
79 pub const fn not(self) -> Choice {
80 // NOTE: assumes self.0 is `0` or `1` as checked in constructor
81 Self(self.0 ^ 1)
82 }
83
84 //
85 // `const fn` comparison ops

Callers 8

is_noneMethod · 0.80
eqMethod · 0.80
from_i64_eqMethod · 0.80
from_u8_eqMethod · 0.80
from_u16_eqMethod · 0.80
from_u32_eqMethod · 0.80
from_u64_eqMethod · 0.80
from_u128_eqMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected