crypto-bigint 0.7.3

Pure Rust implementation of a big integer library which has been designed from the ground-up for use in cryptographic applications. Provides constant-time, no_std-friendly implementations of modern formulas using const generics.
Documentation
//! Limb bit or operations.

use super::Limb;
use core::ops::{BitOr, BitOrAssign};

impl Limb {
    /// Calculates `a | b`.
    #[inline(always)]
    #[must_use]
    pub const fn bitor(self, rhs: Self) -> Self {
        Limb(self.0 | rhs.0)
    }
}

impl BitOr for Limb {
    type Output = Limb;

    fn bitor(self, rhs: Self) -> Self::Output {
        self.bitor(rhs)
    }
}

impl BitOr<&Self> for Limb {
    type Output = Limb;

    fn bitor(self, rhs: &Self) -> Self::Output {
        self.bitor(*rhs)
    }
}

impl BitOrAssign for Limb {
    fn bitor_assign(&mut self, other: Self) {
        *self = self.bitor(other);
    }
}

impl BitOrAssign<&Limb> for Limb {
    fn bitor_assign(&mut self, other: &Self) {
        *self = self.bitor(*other);
    }
}