crypto_bigint/limb/
bit_xor.rs

1//! Limb bit xor operations.
2
3use super::Limb;
4use core::ops::BitXor;
5
6impl Limb {
7    /// Calculates `a ^ b`.
8    pub const fn bitxor(self, rhs: Self) -> Self {
9        Limb(self.0 ^ rhs.0)
10    }
11}
12
13impl BitXor for Limb {
14    type Output = Limb;
15
16    fn bitxor(self, rhs: Self) -> Self::Output {
17        self.bitxor(rhs)
18    }
19}