use crate::integer::Integer;
use core::ops::AddAssign;
impl AddAssign<Integer> for Integer {
fn add_assign(&mut self, rhs: Integer) {
Integer::add_assign(self, &rhs)
}
}
impl AddAssign<&Integer> for Integer {
fn add_assign(&mut self, rhs: &Integer) {
Integer::add_assign(self, rhs)
}
}
impl AddAssign<i8> for Integer {
fn add_assign(&mut self, rhs: i8) {
Integer::add_c_long_assign(self, rhs)
}
}
impl AddAssign<&i8> for Integer {
fn add_assign(&mut self, rhs: &i8) {
Integer::add_c_long_assign(self, *rhs)
}
}
impl AddAssign<u8> for Integer {
fn add_assign(&mut self, rhs: u8) {
Integer::add_c_long_assign(self, rhs)
}
}
impl AddAssign<&u8> for Integer {
fn add_assign(&mut self, rhs: &u8) {
Integer::add_c_long_assign(self, *rhs)
}
}
impl AddAssign<i16> for Integer {
fn add_assign(&mut self, rhs: i16) {
Integer::add_c_long_assign(self, rhs)
}
}
impl AddAssign<&i16> for Integer {
fn add_assign(&mut self, rhs: &i16) {
Integer::add_c_long_assign(self, *rhs)
}
}
impl AddAssign<u16> for Integer {
fn add_assign(&mut self, rhs: u16) {
Integer::add_c_long_assign(self, rhs)
}
}
impl AddAssign<&u16> for Integer {
fn add_assign(&mut self, rhs: &u16) {
Integer::add_c_long_assign(self, *rhs)
}
}
impl AddAssign<i32> for Integer {
fn add_assign(&mut self, rhs: i32) {
Integer::add_c_long_assign(self, rhs)
}
}
impl AddAssign<&i32> for Integer {
fn add_assign(&mut self, rhs: &i32) {
Integer::add_c_long_assign(self, *rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl AddAssign<u32> for Integer {
fn add_assign(&mut self, rhs: u32) {
Integer::add_c_long_assign(self, rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl AddAssign<&u32> for Integer {
fn add_assign(&mut self, rhs: &u32) {
Integer::add_c_long_assign(self, *rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl AddAssign<i64> for Integer {
fn add_assign(&mut self, rhs: i64) {
Integer::add_c_long_assign(self, rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl AddAssign<&i64> for Integer {
fn add_assign(&mut self, rhs: &i64) {
Integer::add_c_long_assign(self, *rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl AddAssign<u32> for Integer {
fn add_assign(&mut self, rhs: u32) {
Integer::add_assign(self, &Integer::from(rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl AddAssign<&u32> for Integer {
fn add_assign(&mut self, rhs: &u32) {
Integer::add_assign(self, &Integer::from(*rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl AddAssign<i64> for Integer {
fn add_assign(&mut self, rhs: i64) {
Integer::add_assign(self, &Integer::from(rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl AddAssign<&i64> for Integer {
fn add_assign(&mut self, rhs: &i64) {
Integer::add_assign(self, &Integer::from(*rhs))
}
}
impl AddAssign<u64> for Integer {
fn add_assign(&mut self, rhs: u64) {
Integer::add_assign(self, &Integer::from(rhs))
}
}
impl AddAssign<&u64> for Integer {
fn add_assign(&mut self, rhs: &u64) {
Integer::add_assign(self, &Integer::from(*rhs))
}
}
impl AddAssign<i128> for Integer {
fn add_assign(&mut self, rhs: i128) {
Integer::add_assign(self, &Integer::from(rhs))
}
}
impl AddAssign<&i128> for Integer {
fn add_assign(&mut self, rhs: &i128) {
Integer::add_assign(self, &Integer::from(*rhs))
}
}
impl AddAssign<u128> for Integer {
fn add_assign(&mut self, rhs: u128) {
Integer::add_assign(self, &Integer::from(rhs))
}
}
impl AddAssign<&u128> for Integer {
fn add_assign(&mut self, rhs: &u128) {
Integer::add_assign(self, &Integer::from(*rhs))
}
}