crypto_bigint/limb/bit_not.rs
1//! Limb bit not operations.
2
3use super::Limb;
4use core::ops::Not;
5
6impl Limb {
7 /// Calculates `!a`.
8 #[inline(always)]
9 pub const fn not(self) -> Self {
10 Limb(!self.0)
11 }
12}
13
14impl Not for Limb {
15 type Output = Limb;
16
17 fn not(self) -> <Self as Not>::Output {
18 self.not()
19 }
20}