//! Limb bit not operations.
use super::Limb;
use core::ops::Not;
impl Limb {
/// Calculates `!a`.
#[inline(always)]
#[must_use]
pub const fn not(self) -> Self {
Limb(!self.0)
}
}
impl Not for Limb {
type Output = Limb;
fn not(self) -> <Self as Not>::Output {
self.not()
}
}