use crate::integer::Integer;
use core::ops::Sub;
impl Sub<Integer> for Integer {
type Output = Integer;
fn sub(mut self, rhs: Integer) -> Self::Output {
Integer::subtract_assign(&mut self, &rhs);
self
}
}
impl Sub<&Integer> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &Integer) -> Self::Output {
Integer::subtract_assign(&mut self, rhs);
self
}
}
impl Sub<Integer> for &Integer {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(self, &rhs)
}
}
impl Sub<&Integer> for &Integer {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(self, rhs)
}
}
impl Sub<i8> for Integer {
type Output = Integer;
fn sub(mut self, rhs: i8) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
impl Sub<&i8> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &i8) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
impl Sub<i8> for &Integer {
type Output = Integer;
fn sub(self, rhs: i8) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
impl Sub<&i8> for &Integer {
type Output = Integer;
fn sub(self, rhs: &i8) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
impl Sub<Integer> for i8 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for i8 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &i8 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &i8 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<u8> for Integer {
type Output = Integer;
fn sub(mut self, rhs: u8) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
impl Sub<&u8> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &u8) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
impl Sub<u8> for &Integer {
type Output = Integer;
fn sub(self, rhs: u8) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
impl Sub<&u8> for &Integer {
type Output = Integer;
fn sub(self, rhs: &u8) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
impl Sub<Integer> for u8 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for u8 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &u8 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &u8 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<i16> for Integer {
type Output = Integer;
fn sub(mut self, rhs: i16) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
impl Sub<&i16> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &i16) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
impl Sub<i16> for &Integer {
type Output = Integer;
fn sub(self, rhs: i16) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
impl Sub<&i16> for &Integer {
type Output = Integer;
fn sub(self, rhs: &i16) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
impl Sub<Integer> for i16 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for i16 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &i16 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &i16 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<u16> for Integer {
type Output = Integer;
fn sub(mut self, rhs: u16) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
impl Sub<&u16> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &u16) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
impl Sub<u16> for &Integer {
type Output = Integer;
fn sub(self, rhs: u16) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
impl Sub<&u16> for &Integer {
type Output = Integer;
fn sub(self, rhs: &u16) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
impl Sub<Integer> for u16 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for u16 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &u16 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &u16 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<i32> for Integer {
type Output = Integer;
fn sub(mut self, rhs: i32) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
impl Sub<&i32> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &i32) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
impl Sub<i32> for &Integer {
type Output = Integer;
fn sub(self, rhs: i32) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
impl Sub<&i32> for &Integer {
type Output = Integer;
fn sub(self, rhs: &i32) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
impl Sub<Integer> for i32 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for i32 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &i32 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &i32 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<u32> for Integer {
type Output = Integer;
fn sub(mut self, rhs: u32) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&u32> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &u32) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<u32> for &Integer {
type Output = Integer;
fn sub(self, rhs: u32) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&u32> for &Integer {
type Output = Integer;
fn sub(self, rhs: &u32) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<Integer> for u32 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&Integer> for u32 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<Integer> for &u32 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&Integer> for &u32 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<i64> for Integer {
type Output = Integer;
fn sub(mut self, rhs: i64) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, rhs);
self
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&i64> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &i64) -> Self::Output {
Integer::subtract_c_long_assign(&mut self, *rhs);
self
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<i64> for &Integer {
type Output = Integer;
fn sub(self, rhs: i64) -> Self::Output {
Integer::subtract_c_long(self, rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&i64> for &Integer {
type Output = Integer;
fn sub(self, rhs: &i64) -> Self::Output {
Integer::subtract_c_long(self, *rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<Integer> for i64 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&Integer> for i64 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<Integer> for &i64 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
#[cfg(all(target_pointer_width = "64", not(windows)))]
impl Sub<&Integer> for &i64 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<u32> for Integer {
type Output = Integer;
fn sub(mut self, rhs: u32) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(rhs));
self
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&u32> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &u32) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(*rhs));
self
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<u32> for &Integer {
type Output = Integer;
fn sub(self, rhs: u32) -> Self::Output {
Integer::subtract(self, &Integer::from(rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&u32> for &Integer {
type Output = Integer;
fn sub(self, rhs: &u32) -> Self::Output {
Integer::subtract(self, &Integer::from(*rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<Integer> for u32 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&Integer> for u32 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<Integer> for &u32 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&Integer> for &u32 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<i64> for Integer {
type Output = Integer;
fn sub(mut self, rhs: i64) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(rhs));
self
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&i64> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &i64) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(*rhs));
self
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<i64> for &Integer {
type Output = Integer;
fn sub(self, rhs: i64) -> Self::Output {
Integer::subtract(self, &Integer::from(rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&i64> for &Integer {
type Output = Integer;
fn sub(self, rhs: &i64) -> Self::Output {
Integer::subtract(self, &Integer::from(*rhs))
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<Integer> for i64 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&Integer> for i64 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<Integer> for &i64 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
#[cfg(not(all(target_pointer_width = "64", not(windows))))]
impl Sub<&Integer> for &i64 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<u64> for Integer {
type Output = Integer;
fn sub(mut self, rhs: u64) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(rhs));
self
}
}
impl Sub<&u64> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &u64) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(*rhs));
self
}
}
impl Sub<u64> for &Integer {
type Output = Integer;
fn sub(self, rhs: u64) -> Self::Output {
Integer::subtract(self, &Integer::from(rhs))
}
}
impl Sub<&u64> for &Integer {
type Output = Integer;
fn sub(self, rhs: &u64) -> Self::Output {
Integer::subtract(self, &Integer::from(*rhs))
}
}
impl Sub<Integer> for u64 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for u64 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &u64 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &u64 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<i128> for Integer {
type Output = Integer;
fn sub(mut self, rhs: i128) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(rhs));
self
}
}
impl Sub<&i128> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &i128) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(*rhs));
self
}
}
impl Sub<i128> for &Integer {
type Output = Integer;
fn sub(self, rhs: i128) -> Self::Output {
Integer::subtract(self, &Integer::from(rhs))
}
}
impl Sub<&i128> for &Integer {
type Output = Integer;
fn sub(self, rhs: &i128) -> Self::Output {
Integer::subtract(self, &Integer::from(*rhs))
}
}
impl Sub<Integer> for i128 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for i128 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &i128 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &i128 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}
impl Sub<u128> for Integer {
type Output = Integer;
fn sub(mut self, rhs: u128) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(rhs));
self
}
}
impl Sub<&u128> for Integer {
type Output = Integer;
fn sub(mut self, rhs: &u128) -> Self::Output {
Integer::subtract_assign(&mut self, &Integer::from(*rhs));
self
}
}
impl Sub<u128> for &Integer {
type Output = Integer;
fn sub(self, rhs: u128) -> Self::Output {
Integer::subtract(self, &Integer::from(rhs))
}
}
impl Sub<&u128> for &Integer {
type Output = Integer;
fn sub(self, rhs: &u128) -> Self::Output {
Integer::subtract(self, &Integer::from(*rhs))
}
}
impl Sub<Integer> for u128 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), &rhs)
}
}
impl Sub<&Integer> for u128 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(self), rhs)
}
}
impl Sub<Integer> for &u128 {
type Output = Integer;
fn sub(self, rhs: Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), &rhs)
}
}
impl Sub<&Integer> for &u128 {
type Output = Integer;
fn sub(self, rhs: &Integer) -> Self::Output {
Integer::subtract(&Integer::from(*self), rhs)
}
}