crypto_bigint/limb/
bit_and.rs

1//! Limb bit and operations.
2
3use super::Limb;
4use core::ops::BitAnd;
5
6impl Limb {
7    /// Calculates `a & b`.
8    #[inline(always)]
9    pub const fn bitand(self, rhs: Self) -> Self {
10        Limb(self.0 & rhs.0)
11    }
12}
13
14impl BitAnd for Limb {
15    type Output = Limb;
16
17    #[inline(always)]
18    fn bitand(self, rhs: Self) -> Self::Output {
19        self.bitand(rhs)
20    }
21}