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