blob: ff153b21135ead713bd0f33d3c8221469378b9ee [file] [log] [blame]
//! Limb bit and operations.
use super::Limb;
use core::ops::BitAnd;
impl Limb {
/// Calculates `a & b`.
pub const fn bitand(self, rhs: Self) -> Self {
Limb(self.0 & rhs.0)
}
}
impl BitAnd for Limb {
type Output = Limb;
fn bitand(self, rhs: Self) -> Self::Output {
self.bitand(rhs)
}
}