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

Method not

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

Source from the content-addressed store, hash-verified

61 #[inline]
62 #[must_use]
63 pub const fn not(self) -> Choice {
64 // NOTE: assumes self.0 is `0` or `1` as checked in constructor
65 Self(self.0 ^ 1)
66 }
67
68 //
69 // `const fn` comparison ops

Callers 12

is_noneMethod · 0.80
leading_zeros_u64Function · 0.80
trailing_zeros_u64Function · 0.80
leading_zeros_u32_softFunction · 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
from_u128_leMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected