#[repr(transparent)]pub struct Integer { /* private fields */ }
Expand description
Multiple precision integer value.
Implementations§
source§impl Integer
impl Integer
sourcepub fn add_assign(&mut self, other: &Self)
pub fn add_assign(&mut self, other: &Self)
Add two integers and assign the result to self
sourcepub fn subtract_assign(&mut self, other: &Self)
pub fn subtract_assign(&mut self, other: &Self)
Subtract two integers and assign the result to self
sourcepub fn multiply_assign(&mut self, other: &Self)
pub fn multiply_assign(&mut self, other: &Self)
Multiply two integers and assign the result to self
sourcepub fn negate_assign(&mut self)
pub fn negate_assign(&mut self)
Assign the additive inverse to self
sourcepub fn absolute_value(&self) -> Self
pub fn absolute_value(&self) -> Self
Return the absolute value
sourcepub fn absolute_value_assign(&mut self)
pub fn absolute_value_assign(&mut self)
Assign the absolute value to self
sourcepub fn divide_full(&self, rhs: &Self) -> (Self, Self)
pub fn divide_full(&self, rhs: &Self) -> (Self, Self)
Divide two integers and return quotient and remainder
sourcepub fn divide_assign(&mut self, rhs: &Self)
pub fn divide_assign(&mut self, rhs: &Self)
Divide two integers and assign the result to self
sourcepub fn remainder_assign(&mut self, rhs: &Self)
pub fn remainder_assign(&mut self, rhs: &Self)
Divide two integers and assign the remainder to self
source§impl Integer
impl Integer
sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new integer with a default value of zero.
Example
use reckoner::Integer;
let a = Integer::new();
assert_eq!(a, 0);
sourcepub unsafe fn from_raw(raw: *mut mpz_t) -> Self
pub unsafe fn from_raw(raw: *mut mpz_t) -> Self
Construct an Integer from a raw non-null pointer to
creachadair_imath_sys::mpz_t
.
Safety
This function must only every be called once for a given pointer, and
the pointer must point to an initialized creachadair_imath_sys::mpz_t
struct. The recommendation is to only use raw pointers from the
Integer::into_raw
function.
In ths context, initialized means that the
creachadair_imath_sys::mpz_t
has been the argument of a call to
creachadair_imath_sys::mp_int_init
.
Example
use creachadair_imath_sys::{mp_int_zero, MP_OK};
use reckoner::Integer;
let a = Integer::from(300);
assert_eq!(a, 300);
let a_raw = Integer::into_raw(a);
unsafe { mp_int_zero(a_raw) };
let a = unsafe { Integer::from_raw(a_raw) };
assert_eq!(a, 0);
sourcepub fn into_raw(integer: Integer) -> *mut mpz_t
pub fn into_raw(integer: Integer) -> *mut mpz_t
Consumes the Integer, returning a wrapped raw pointer.
Example
use creachadair_imath_sys::{mp_int_add, MP_OK};
use reckoner::Integer;
let a = Integer::from(200);
let b = Integer::from(300);
let c = Integer::new();
let a_raw = Integer::into_raw(a);
let b_raw = Integer::into_raw(b);
let c_raw = Integer::into_raw(c);
let op_res = unsafe { mp_int_add(a_raw, b_raw, c_raw) };
if op_res != unsafe { MP_OK } {
panic!("Operation failed.")
}
let a = unsafe { Integer::from_raw(a_raw) };
let b = unsafe { Integer::from_raw(b_raw) };
let c = unsafe { Integer::from_raw(c_raw) };
assert_eq!(a, 200);
assert_eq!(b, 300);
assert_eq!(c, 500);
sourcepub fn from_string(s: impl AsRef<str>, radix: u8) -> Result<Self, Error>
pub fn from_string(s: impl AsRef<str>, radix: u8) -> Result<Self, Error>
Parse an Integer
from the given string, with the specified
radix.
Example
use reckoner::Integer;
let a = Integer::from_string("8", 10);
let b = Integer::from_string("1000", 2);
assert_eq!(a, b);
sourcepub fn copy_to(&self, other: &mut Self)
pub fn copy_to(&self, other: &mut Self)
Replaces the value of other
with a copy of the value of self
. No new
memory is allocated unless self
has more significant digits than
other
has allocated.
Example
use reckoner::Integer;
let a = Integer::from(20);
let mut b = Integer::new();
assert_eq!(a, 20);
assert_eq!(b, 0);
a.copy_to(&mut b);
assert_eq!(a, 20);
assert_eq!(b, 20, "Failed to copy");
sourcepub fn zero(&mut self)
pub fn zero(&mut self)
Set value of integer to zero
Example
use reckoner::Integer;
let mut a = Integer::from(21837419283648u128);
assert_eq!(a, 21837419283648u128);
a.zero();
assert_eq!(a, 0);
sourcepub fn compare(&self, rhs: &Self) -> Ordering
pub fn compare(&self, rhs: &Self) -> Ordering
Compare two integers
Example
use reckoner::Integer;
use core::cmp::Ordering;
let a = Integer::from(123);
let b = Integer::from(456);
assert_eq!(a.compare(&b), Ordering::Less);
assert_eq!(b.compare(&a), Ordering::Greater);
assert_eq!(b.compare(&b), Ordering::Equal);
sourcepub fn compare_magnitude(&self, rhs: &Self) -> Ordering
pub fn compare_magnitude(&self, rhs: &Self) -> Ordering
Compare the magnitude of two integers, not taking sign into account.
Example
use core::cmp::Ordering;
use reckoner::Integer;
let a = Integer::from(-234);
let b = Integer::from(123);
assert_eq!(a.compare_magnitude(&b), Ordering::Greater);
assert_eq!(a.compare(&b), Ordering::Less);
sourcepub fn compare_zero(&self) -> Ordering
pub fn compare_zero(&self) -> Ordering
Compare an integer to zero.
Example
use core::cmp::Ordering;
use reckoner::Integer;
let a = Integer::from(-234);
let b = Integer::from(123);
assert_eq!(a.compare_zero(), Ordering::Less);
assert_eq!(b.compare_zero(), Ordering::Greater);
Trait Implementations§
source§impl AddAssign<&Integer> for Integer
impl AddAssign<&Integer> for Integer
source§fn add_assign(&mut self, rhs: &Integer)
fn add_assign(&mut self, rhs: &Integer)
+=
operation. Read moresource§impl AddAssign<&Integer> for Rational
impl AddAssign<&Integer> for Rational
source§fn add_assign(&mut self, rhs: &Integer)
fn add_assign(&mut self, rhs: &Integer)
+=
operation. Read moresource§impl AddAssign<&i128> for Integer
impl AddAssign<&i128> for Integer
source§fn add_assign(&mut self, rhs: &i128)
fn add_assign(&mut self, rhs: &i128)
+=
operation. Read moresource§impl AddAssign<&i16> for Integer
impl AddAssign<&i16> for Integer
source§fn add_assign(&mut self, rhs: &i16)
fn add_assign(&mut self, rhs: &i16)
+=
operation. Read moresource§impl AddAssign<&i32> for Integer
impl AddAssign<&i32> for Integer
source§fn add_assign(&mut self, rhs: &i32)
fn add_assign(&mut self, rhs: &i32)
+=
operation. Read moresource§impl AddAssign<&i64> for Integer
impl AddAssign<&i64> for Integer
source§fn add_assign(&mut self, rhs: &i64)
fn add_assign(&mut self, rhs: &i64)
+=
operation. Read moresource§impl AddAssign<&i8> for Integer
impl AddAssign<&i8> for Integer
source§fn add_assign(&mut self, rhs: &i8)
fn add_assign(&mut self, rhs: &i8)
+=
operation. Read moresource§impl AddAssign<&u128> for Integer
impl AddAssign<&u128> for Integer
source§fn add_assign(&mut self, rhs: &u128)
fn add_assign(&mut self, rhs: &u128)
+=
operation. Read moresource§impl AddAssign<&u16> for Integer
impl AddAssign<&u16> for Integer
source§fn add_assign(&mut self, rhs: &u16)
fn add_assign(&mut self, rhs: &u16)
+=
operation. Read moresource§impl AddAssign<&u32> for Integer
impl AddAssign<&u32> for Integer
source§fn add_assign(&mut self, rhs: &u32)
fn add_assign(&mut self, rhs: &u32)
+=
operation. Read moresource§impl AddAssign<&u64> for Integer
impl AddAssign<&u64> for Integer
source§fn add_assign(&mut self, rhs: &u64)
fn add_assign(&mut self, rhs: &u64)
+=
operation. Read moresource§impl AddAssign<&u8> for Integer
impl AddAssign<&u8> for Integer
source§fn add_assign(&mut self, rhs: &u8)
fn add_assign(&mut self, rhs: &u8)
+=
operation. Read moresource§impl AddAssign<Integer> for Integer
impl AddAssign<Integer> for Integer
source§fn add_assign(&mut self, rhs: Integer)
fn add_assign(&mut self, rhs: Integer)
+=
operation. Read moresource§impl AddAssign<Integer> for Rational
impl AddAssign<Integer> for Rational
source§fn add_assign(&mut self, rhs: Integer)
fn add_assign(&mut self, rhs: Integer)
+=
operation. Read moresource§impl AddAssign<i128> for Integer
impl AddAssign<i128> for Integer
source§fn add_assign(&mut self, rhs: i128)
fn add_assign(&mut self, rhs: i128)
+=
operation. Read moresource§impl AddAssign<i16> for Integer
impl AddAssign<i16> for Integer
source§fn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
+=
operation. Read moresource§impl AddAssign<i32> for Integer
impl AddAssign<i32> for Integer
source§fn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
+=
operation. Read moresource§impl AddAssign<i64> for Integer
impl AddAssign<i64> for Integer
source§fn add_assign(&mut self, rhs: i64)
fn add_assign(&mut self, rhs: i64)
+=
operation. Read moresource§impl AddAssign<i8> for Integer
impl AddAssign<i8> for Integer
source§fn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
+=
operation. Read moresource§impl AddAssign<u128> for Integer
impl AddAssign<u128> for Integer
source§fn add_assign(&mut self, rhs: u128)
fn add_assign(&mut self, rhs: u128)
+=
operation. Read moresource§impl AddAssign<u16> for Integer
impl AddAssign<u16> for Integer
source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
+=
operation. Read moresource§impl AddAssign<u32> for Integer
impl AddAssign<u32> for Integer
source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
+=
operation. Read moresource§impl AddAssign<u64> for Integer
impl AddAssign<u64> for Integer
source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
+=
operation. Read moresource§impl AddAssign<u8> for Integer
impl AddAssign<u8> for Integer
source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
+=
operation. Read moresource§impl DivAssign<&Integer> for Integer
impl DivAssign<&Integer> for Integer
source§fn div_assign(&mut self, rhs: &Integer)
fn div_assign(&mut self, rhs: &Integer)
/=
operation. Read moresource§impl DivAssign<&Integer> for Rational
impl DivAssign<&Integer> for Rational
source§fn div_assign(&mut self, rhs: &Integer)
fn div_assign(&mut self, rhs: &Integer)
/=
operation. Read moresource§impl DivAssign<&i128> for Integer
impl DivAssign<&i128> for Integer
source§fn div_assign(&mut self, rhs: &i128)
fn div_assign(&mut self, rhs: &i128)
/=
operation. Read moresource§impl DivAssign<&i16> for Integer
impl DivAssign<&i16> for Integer
source§fn div_assign(&mut self, rhs: &i16)
fn div_assign(&mut self, rhs: &i16)
/=
operation. Read moresource§impl DivAssign<&i32> for Integer
impl DivAssign<&i32> for Integer
source§fn div_assign(&mut self, rhs: &i32)
fn div_assign(&mut self, rhs: &i32)
/=
operation. Read moresource§impl DivAssign<&i64> for Integer
impl DivAssign<&i64> for Integer
source§fn div_assign(&mut self, rhs: &i64)
fn div_assign(&mut self, rhs: &i64)
/=
operation. Read moresource§impl DivAssign<&i8> for Integer
impl DivAssign<&i8> for Integer
source§fn div_assign(&mut self, rhs: &i8)
fn div_assign(&mut self, rhs: &i8)
/=
operation. Read moresource§impl DivAssign<&u128> for Integer
impl DivAssign<&u128> for Integer
source§fn div_assign(&mut self, rhs: &u128)
fn div_assign(&mut self, rhs: &u128)
/=
operation. Read moresource§impl DivAssign<&u16> for Integer
impl DivAssign<&u16> for Integer
source§fn div_assign(&mut self, rhs: &u16)
fn div_assign(&mut self, rhs: &u16)
/=
operation. Read moresource§impl DivAssign<&u32> for Integer
impl DivAssign<&u32> for Integer
source§fn div_assign(&mut self, rhs: &u32)
fn div_assign(&mut self, rhs: &u32)
/=
operation. Read moresource§impl DivAssign<&u64> for Integer
impl DivAssign<&u64> for Integer
source§fn div_assign(&mut self, rhs: &u64)
fn div_assign(&mut self, rhs: &u64)
/=
operation. Read moresource§impl DivAssign<&u8> for Integer
impl DivAssign<&u8> for Integer
source§fn div_assign(&mut self, rhs: &u8)
fn div_assign(&mut self, rhs: &u8)
/=
operation. Read moresource§impl DivAssign<Integer> for Integer
impl DivAssign<Integer> for Integer
source§fn div_assign(&mut self, rhs: Integer)
fn div_assign(&mut self, rhs: Integer)
/=
operation. Read moresource§impl DivAssign<Integer> for Rational
impl DivAssign<Integer> for Rational
source§fn div_assign(&mut self, rhs: Integer)
fn div_assign(&mut self, rhs: Integer)
/=
operation. Read moresource§impl DivAssign<i128> for Integer
impl DivAssign<i128> for Integer
source§fn div_assign(&mut self, rhs: i128)
fn div_assign(&mut self, rhs: i128)
/=
operation. Read moresource§impl DivAssign<i16> for Integer
impl DivAssign<i16> for Integer
source§fn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
/=
operation. Read moresource§impl DivAssign<i32> for Integer
impl DivAssign<i32> for Integer
source§fn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
/=
operation. Read moresource§impl DivAssign<i64> for Integer
impl DivAssign<i64> for Integer
source§fn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresource§impl DivAssign<i8> for Integer
impl DivAssign<i8> for Integer
source§fn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
/=
operation. Read moresource§impl DivAssign<u128> for Integer
impl DivAssign<u128> for Integer
source§fn div_assign(&mut self, rhs: u128)
fn div_assign(&mut self, rhs: u128)
/=
operation. Read moresource§impl DivAssign<u16> for Integer
impl DivAssign<u16> for Integer
source§fn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
/=
operation. Read moresource§impl DivAssign<u32> for Integer
impl DivAssign<u32> for Integer
source§fn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
/=
operation. Read moresource§impl DivAssign<u64> for Integer
impl DivAssign<u64> for Integer
source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresource§impl DivAssign<u8> for Integer
impl DivAssign<u8> for Integer
source§fn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
/=
operation. Read moresource§impl MulAssign<&Integer> for Integer
impl MulAssign<&Integer> for Integer
source§fn mul_assign(&mut self, rhs: &Integer)
fn mul_assign(&mut self, rhs: &Integer)
*=
operation. Read moresource§impl MulAssign<&Integer> for Rational
impl MulAssign<&Integer> for Rational
source§fn mul_assign(&mut self, rhs: &Integer)
fn mul_assign(&mut self, rhs: &Integer)
*=
operation. Read moresource§impl MulAssign<&i128> for Integer
impl MulAssign<&i128> for Integer
source§fn mul_assign(&mut self, rhs: &i128)
fn mul_assign(&mut self, rhs: &i128)
*=
operation. Read moresource§impl MulAssign<&i16> for Integer
impl MulAssign<&i16> for Integer
source§fn mul_assign(&mut self, rhs: &i16)
fn mul_assign(&mut self, rhs: &i16)
*=
operation. Read moresource§impl MulAssign<&i32> for Integer
impl MulAssign<&i32> for Integer
source§fn mul_assign(&mut self, rhs: &i32)
fn mul_assign(&mut self, rhs: &i32)
*=
operation. Read moresource§impl MulAssign<&i64> for Integer
impl MulAssign<&i64> for Integer
source§fn mul_assign(&mut self, rhs: &i64)
fn mul_assign(&mut self, rhs: &i64)
*=
operation. Read moresource§impl MulAssign<&i8> for Integer
impl MulAssign<&i8> for Integer
source§fn mul_assign(&mut self, rhs: &i8)
fn mul_assign(&mut self, rhs: &i8)
*=
operation. Read moresource§impl MulAssign<&u128> for Integer
impl MulAssign<&u128> for Integer
source§fn mul_assign(&mut self, rhs: &u128)
fn mul_assign(&mut self, rhs: &u128)
*=
operation. Read moresource§impl MulAssign<&u16> for Integer
impl MulAssign<&u16> for Integer
source§fn mul_assign(&mut self, rhs: &u16)
fn mul_assign(&mut self, rhs: &u16)
*=
operation. Read moresource§impl MulAssign<&u32> for Integer
impl MulAssign<&u32> for Integer
source§fn mul_assign(&mut self, rhs: &u32)
fn mul_assign(&mut self, rhs: &u32)
*=
operation. Read moresource§impl MulAssign<&u64> for Integer
impl MulAssign<&u64> for Integer
source§fn mul_assign(&mut self, rhs: &u64)
fn mul_assign(&mut self, rhs: &u64)
*=
operation. Read moresource§impl MulAssign<&u8> for Integer
impl MulAssign<&u8> for Integer
source§fn mul_assign(&mut self, rhs: &u8)
fn mul_assign(&mut self, rhs: &u8)
*=
operation. Read moresource§impl MulAssign<Integer> for Integer
impl MulAssign<Integer> for Integer
source§fn mul_assign(&mut self, rhs: Integer)
fn mul_assign(&mut self, rhs: Integer)
*=
operation. Read moresource§impl MulAssign<Integer> for Rational
impl MulAssign<Integer> for Rational
source§fn mul_assign(&mut self, rhs: Integer)
fn mul_assign(&mut self, rhs: Integer)
*=
operation. Read moresource§impl MulAssign<i128> for Integer
impl MulAssign<i128> for Integer
source§fn mul_assign(&mut self, rhs: i128)
fn mul_assign(&mut self, rhs: i128)
*=
operation. Read moresource§impl MulAssign<i16> for Integer
impl MulAssign<i16> for Integer
source§fn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
*=
operation. Read moresource§impl MulAssign<i32> for Integer
impl MulAssign<i32> for Integer
source§fn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
*=
operation. Read moresource§impl MulAssign<i64> for Integer
impl MulAssign<i64> for Integer
source§fn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresource§impl MulAssign<i8> for Integer
impl MulAssign<i8> for Integer
source§fn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
*=
operation. Read moresource§impl MulAssign<u128> for Integer
impl MulAssign<u128> for Integer
source§fn mul_assign(&mut self, rhs: u128)
fn mul_assign(&mut self, rhs: u128)
*=
operation. Read moresource§impl MulAssign<u16> for Integer
impl MulAssign<u16> for Integer
source§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
*=
operation. Read moresource§impl MulAssign<u32> for Integer
impl MulAssign<u32> for Integer
source§fn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
*=
operation. Read moresource§impl MulAssign<u64> for Integer
impl MulAssign<u64> for Integer
source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresource§impl MulAssign<u8> for Integer
impl MulAssign<u8> for Integer
source§fn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
*=
operation. Read moresource§impl Ord for Integer
impl Ord for Integer
source§impl PartialEq<Integer> for Integer
impl PartialEq<Integer> for Integer
source§impl PartialEq<Integer> for Rational
impl PartialEq<Integer> for Rational
source§impl PartialEq<Integer> for i128
impl PartialEq<Integer> for i128
source§impl PartialEq<Integer> for i16
impl PartialEq<Integer> for i16
source§impl PartialEq<Integer> for i32
impl PartialEq<Integer> for i32
source§impl PartialEq<Integer> for i64
impl PartialEq<Integer> for i64
source§impl PartialEq<Integer> for i8
impl PartialEq<Integer> for i8
source§impl PartialEq<Integer> for u128
impl PartialEq<Integer> for u128
source§impl PartialEq<Integer> for u16
impl PartialEq<Integer> for u16
source§impl PartialEq<Integer> for u32
impl PartialEq<Integer> for u32
source§impl PartialEq<Integer> for u64
impl PartialEq<Integer> for u64
source§impl PartialEq<Integer> for u8
impl PartialEq<Integer> for u8
source§impl PartialEq<Rational> for Integer
impl PartialEq<Rational> for Integer
source§impl PartialEq<i128> for Integer
impl PartialEq<i128> for Integer
source§impl PartialEq<u128> for Integer
impl PartialEq<u128> for Integer
source§impl PartialOrd<Integer> for Integer
impl PartialOrd<Integer> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for Rational
impl PartialOrd<Integer> for Rational
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for i128
impl PartialOrd<Integer> for i128
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for i16
impl PartialOrd<Integer> for i16
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for i32
impl PartialOrd<Integer> for i32
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for i64
impl PartialOrd<Integer> for i64
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for i8
impl PartialOrd<Integer> for i8
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for u128
impl PartialOrd<Integer> for u128
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for u16
impl PartialOrd<Integer> for u16
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for u32
impl PartialOrd<Integer> for u32
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for u64
impl PartialOrd<Integer> for u64
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Integer> for u8
impl PartialOrd<Integer> for u8
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Rational> for Integer
impl PartialOrd<Rational> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<i128> for Integer
impl PartialOrd<i128> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<i16> for Integer
impl PartialOrd<i16> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<i32> for Integer
impl PartialOrd<i32> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<i64> for Integer
impl PartialOrd<i64> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<i8> for Integer
impl PartialOrd<i8> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u128> for Integer
impl PartialOrd<u128> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u16> for Integer
impl PartialOrd<u16> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u32> for Integer
impl PartialOrd<u32> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u64> for Integer
impl PartialOrd<u64> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u8> for Integer
impl PartialOrd<u8> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl RemAssign<&Integer> for Integer
impl RemAssign<&Integer> for Integer
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for i128
impl RemAssign<&Integer> for i128
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for i16
impl RemAssign<&Integer> for i16
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for i32
impl RemAssign<&Integer> for i32
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for i64
impl RemAssign<&Integer> for i64
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for i8
impl RemAssign<&Integer> for i8
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for u128
impl RemAssign<&Integer> for u128
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for u16
impl RemAssign<&Integer> for u16
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for u32
impl RemAssign<&Integer> for u32
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for u64
impl RemAssign<&Integer> for u64
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&Integer> for u8
impl RemAssign<&Integer> for u8
source§fn rem_assign(&mut self, rhs: &Integer)
fn rem_assign(&mut self, rhs: &Integer)
%=
operation. Read moresource§impl RemAssign<&i128> for Integer
impl RemAssign<&i128> for Integer
source§fn rem_assign(&mut self, rhs: &i128)
fn rem_assign(&mut self, rhs: &i128)
%=
operation. Read moresource§impl RemAssign<&i16> for Integer
impl RemAssign<&i16> for Integer
source§fn rem_assign(&mut self, rhs: &i16)
fn rem_assign(&mut self, rhs: &i16)
%=
operation. Read moresource§impl RemAssign<&i32> for Integer
impl RemAssign<&i32> for Integer
source§fn rem_assign(&mut self, rhs: &i32)
fn rem_assign(&mut self, rhs: &i32)
%=
operation. Read moresource§impl RemAssign<&i64> for Integer
impl RemAssign<&i64> for Integer
source§fn rem_assign(&mut self, rhs: &i64)
fn rem_assign(&mut self, rhs: &i64)
%=
operation. Read moresource§impl RemAssign<&i8> for Integer
impl RemAssign<&i8> for Integer
source§fn rem_assign(&mut self, rhs: &i8)
fn rem_assign(&mut self, rhs: &i8)
%=
operation. Read moresource§impl RemAssign<&u128> for Integer
impl RemAssign<&u128> for Integer
source§fn rem_assign(&mut self, rhs: &u128)
fn rem_assign(&mut self, rhs: &u128)
%=
operation. Read moresource§impl RemAssign<&u16> for Integer
impl RemAssign<&u16> for Integer
source§fn rem_assign(&mut self, rhs: &u16)
fn rem_assign(&mut self, rhs: &u16)
%=
operation. Read moresource§impl RemAssign<&u32> for Integer
impl RemAssign<&u32> for Integer
source§fn rem_assign(&mut self, rhs: &u32)
fn rem_assign(&mut self, rhs: &u32)
%=
operation. Read moresource§impl RemAssign<&u64> for Integer
impl RemAssign<&u64> for Integer
source§fn rem_assign(&mut self, rhs: &u64)
fn rem_assign(&mut self, rhs: &u64)
%=
operation. Read moresource§impl RemAssign<&u8> for Integer
impl RemAssign<&u8> for Integer
source§fn rem_assign(&mut self, rhs: &u8)
fn rem_assign(&mut self, rhs: &u8)
%=
operation. Read moresource§impl RemAssign<Integer> for Integer
impl RemAssign<Integer> for Integer
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for i128
impl RemAssign<Integer> for i128
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for i16
impl RemAssign<Integer> for i16
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for i32
impl RemAssign<Integer> for i32
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for i64
impl RemAssign<Integer> for i64
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for i8
impl RemAssign<Integer> for i8
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for u128
impl RemAssign<Integer> for u128
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for u16
impl RemAssign<Integer> for u16
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for u32
impl RemAssign<Integer> for u32
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for u64
impl RemAssign<Integer> for u64
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<Integer> for u8
impl RemAssign<Integer> for u8
source§fn rem_assign(&mut self, rhs: Integer)
fn rem_assign(&mut self, rhs: Integer)
%=
operation. Read moresource§impl RemAssign<i128> for Integer
impl RemAssign<i128> for Integer
source§fn rem_assign(&mut self, rhs: i128)
fn rem_assign(&mut self, rhs: i128)
%=
operation. Read moresource§impl RemAssign<i16> for Integer
impl RemAssign<i16> for Integer
source§fn rem_assign(&mut self, rhs: i16)
fn rem_assign(&mut self, rhs: i16)
%=
operation. Read moresource§impl RemAssign<i32> for Integer
impl RemAssign<i32> for Integer
source§fn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
%=
operation. Read moresource§impl RemAssign<i64> for Integer
impl RemAssign<i64> for Integer
source§fn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresource§impl RemAssign<i8> for Integer
impl RemAssign<i8> for Integer
source§fn rem_assign(&mut self, rhs: i8)
fn rem_assign(&mut self, rhs: i8)
%=
operation. Read moresource§impl RemAssign<u128> for Integer
impl RemAssign<u128> for Integer
source§fn rem_assign(&mut self, rhs: u128)
fn rem_assign(&mut self, rhs: u128)
%=
operation. Read moresource§impl RemAssign<u16> for Integer
impl RemAssign<u16> for Integer
source§fn rem_assign(&mut self, rhs: u16)
fn rem_assign(&mut self, rhs: u16)
%=
operation. Read moresource§impl RemAssign<u32> for Integer
impl RemAssign<u32> for Integer
source§fn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
%=
operation. Read moresource§impl RemAssign<u64> for Integer
impl RemAssign<u64> for Integer
source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresource§impl RemAssign<u8> for Integer
impl RemAssign<u8> for Integer
source§fn rem_assign(&mut self, rhs: u8)
fn rem_assign(&mut self, rhs: u8)
%=
operation. Read moresource§impl SubAssign<&Integer> for Integer
impl SubAssign<&Integer> for Integer
source§fn sub_assign(&mut self, rhs: &Integer)
fn sub_assign(&mut self, rhs: &Integer)
-=
operation. Read moresource§impl SubAssign<&Integer> for Rational
impl SubAssign<&Integer> for Rational
source§fn sub_assign(&mut self, rhs: &Integer)
fn sub_assign(&mut self, rhs: &Integer)
-=
operation. Read moresource§impl SubAssign<&i128> for Integer
impl SubAssign<&i128> for Integer
source§fn sub_assign(&mut self, rhs: &i128)
fn sub_assign(&mut self, rhs: &i128)
-=
operation. Read moresource§impl SubAssign<&i16> for Integer
impl SubAssign<&i16> for Integer
source§fn sub_assign(&mut self, rhs: &i16)
fn sub_assign(&mut self, rhs: &i16)
-=
operation. Read moresource§impl SubAssign<&i32> for Integer
impl SubAssign<&i32> for Integer
source§fn sub_assign(&mut self, rhs: &i32)
fn sub_assign(&mut self, rhs: &i32)
-=
operation. Read moresource§impl SubAssign<&i64> for Integer
impl SubAssign<&i64> for Integer
source§fn sub_assign(&mut self, rhs: &i64)
fn sub_assign(&mut self, rhs: &i64)
-=
operation. Read moresource§impl SubAssign<&i8> for Integer
impl SubAssign<&i8> for Integer
source§fn sub_assign(&mut self, rhs: &i8)
fn sub_assign(&mut self, rhs: &i8)
-=
operation. Read moresource§impl SubAssign<&u128> for Integer
impl SubAssign<&u128> for Integer
source§fn sub_assign(&mut self, rhs: &u128)
fn sub_assign(&mut self, rhs: &u128)
-=
operation. Read moresource§impl SubAssign<&u16> for Integer
impl SubAssign<&u16> for Integer
source§fn sub_assign(&mut self, rhs: &u16)
fn sub_assign(&mut self, rhs: &u16)
-=
operation. Read moresource§impl SubAssign<&u32> for Integer
impl SubAssign<&u32> for Integer
source§fn sub_assign(&mut self, rhs: &u32)
fn sub_assign(&mut self, rhs: &u32)
-=
operation. Read moresource§impl SubAssign<&u64> for Integer
impl SubAssign<&u64> for Integer
source§fn sub_assign(&mut self, rhs: &u64)
fn sub_assign(&mut self, rhs: &u64)
-=
operation. Read moresource§impl SubAssign<&u8> for Integer
impl SubAssign<&u8> for Integer
source§fn sub_assign(&mut self, rhs: &u8)
fn sub_assign(&mut self, rhs: &u8)
-=
operation. Read moresource§impl SubAssign<Integer> for Integer
impl SubAssign<Integer> for Integer
source§fn sub_assign(&mut self, rhs: Integer)
fn sub_assign(&mut self, rhs: Integer)
-=
operation. Read moresource§impl SubAssign<Integer> for Rational
impl SubAssign<Integer> for Rational
source§fn sub_assign(&mut self, rhs: Integer)
fn sub_assign(&mut self, rhs: Integer)
-=
operation. Read moresource§impl SubAssign<i128> for Integer
impl SubAssign<i128> for Integer
source§fn sub_assign(&mut self, rhs: i128)
fn sub_assign(&mut self, rhs: i128)
-=
operation. Read moresource§impl SubAssign<i16> for Integer
impl SubAssign<i16> for Integer
source§fn sub_assign(&mut self, rhs: i16)
fn sub_assign(&mut self, rhs: i16)
-=
operation. Read moresource§impl SubAssign<i32> for Integer
impl SubAssign<i32> for Integer
source§fn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
-=
operation. Read moresource§impl SubAssign<i64> for Integer
impl SubAssign<i64> for Integer
source§fn sub_assign(&mut self, rhs: i64)
fn sub_assign(&mut self, rhs: i64)
-=
operation. Read moresource§impl SubAssign<i8> for Integer
impl SubAssign<i8> for Integer
source§fn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
-=
operation. Read moresource§impl SubAssign<u128> for Integer
impl SubAssign<u128> for Integer
source§fn sub_assign(&mut self, rhs: u128)
fn sub_assign(&mut self, rhs: u128)
-=
operation. Read moresource§impl SubAssign<u16> for Integer
impl SubAssign<u16> for Integer
source§fn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
-=
operation. Read moresource§impl SubAssign<u32> for Integer
impl SubAssign<u32> for Integer
source§fn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
-=
operation. Read moresource§impl SubAssign<u64> for Integer
impl SubAssign<u64> for Integer
source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
-=
operation. Read moresource§impl SubAssign<u8> for Integer
impl SubAssign<u8> for Integer
source§fn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
-=
operation. Read more