Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_none
Method · 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
Calls
no outgoing calls
Tested by
no test coverage detected