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    pub const fn not(self) -> Self {
9        Limb(!self.0)
10    }
11}
12
13impl Not for Limb {
14    type Output = Limb;
15
16    fn not(self) -> <Self as Not>::Output {
17        self.not()
18    }
19}