Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_none
Method · 0.80
leading_zeros_u64
Function · 0.80
trailing_zeros_u64
Function · 0.80
leading_zeros_u32_soft
Function · 0.80
eq
Method · 0.80
from_i64_eq
Method · 0.80
from_u8_eq
Method · 0.80
from_u16_eq
Method · 0.80
from_u32_eq
Method · 0.80
from_u64_eq
Method · 0.80
from_u128_eq
Method · 0.80
from_u128_le
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected