#[repr(transparent)]pub struct IBig(_);Expand description
An signed arbitrary precision integer.
This struct represents an arbitrarily large signed integer. Technically the size of the integer is bounded by the memory size, but it’s enough for practical use on modern devices.
Parsing and printing
There are four ways to create an IBig instance:
- Use predifined constants (e.g. IBig::ZERO, IBig::NEG_ONE).
- Use the literal macro
ibig!defined in thedashu-macrocrate. - Construct from a Sign and a UBig instance.
- Parse from a string.
Parsing from either literal or string supports representation with base 2~36.
For printing, the IBig type supports common formatting traits (Display, Debug, LowerHex, etc.). Specially, printing huge number using Debug will conveniently omit the middle digits of the number, only print the least and most significant (decimal) digits.
// parsing
let a = IBig::from(408580953453092208335085386466371u128);
let b = IBig::from(-0x1231abcd4134i64);
let c = IBig::from_str_radix("a2a123bbb127779cccc123", 32)?;
let d = IBig::from_str_radix("-1231abcd4134", 16)?;
assert_eq!(a, c);
assert_eq!(b, d);
// printing
assert_eq!(format!("{}", IBig::from(12)), "12");
assert_eq!(format!("{:#X}", IBig::from(-0xabcd)), "-0xABCD");
if Word::BITS == 64 {
// number of digits to display depends on the word size
assert_eq!(
format!("{:?}", IBig::NEG_ONE << 1000),
"-1071508607186267320..4386837205668069376"
);
}Memory
The internal representation of IBig is exactly the same as UBig. It just use a small trick to store the sign bit without additional memory allocation. This means that IBig also has the small integer optimization and the niche bit to use with simple enums.
use core::mem::size_of;
assert_eq!(size_of::<IBig>(), size_of::<UBig>());
assert_eq!(size_of::<IBig>(), size_of::<Option<IBig>>());Implementations
sourceimpl IBig
impl IBig
sourcepub fn trailing_zeros(&self) -> Option<usize>
pub fn trailing_zeros(&self) -> Option<usize>
Returns the number of trailing zeros in the two’s complement binary representation.
In other words, it is the largest n such that 2 to the power of n divides the number.
For 0, it returns None.
Examples
assert_eq!(IBig::from(17).trailing_zeros(), Some(0));
assert_eq!(IBig::from(-48).trailing_zeros(), Some(4));
assert_eq!(IBig::from(-0b101000000).trailing_zeros(), Some(6));
assert_eq!(IBig::ZERO.trailing_zeros(), None);sourceimpl IBig
impl IBig
sourceimpl IBig
impl IBig
sourcepub fn to_f32(&self) -> Approximation<f32, Sign>
pub fn to_f32(&self) -> Approximation<f32, Sign>
Convert to f32.
Round to nearest, breaking ties to even last bit. The returned approximation
is exact if the integer is exactly representable by f32, otherwise the error
field of the approximation contains the sign of result - self.
Examples
assert_eq!(IBig::from(-134).to_f32().value(), -134.0f32);sourcepub fn to_f64(&self) -> Approximation<f64, Sign>
pub fn to_f64(&self) -> Approximation<f64, Sign>
Convert to f64.
Round to nearest, breaking ties to even last bit. The returned approximation
is exact if the integer is exactly representable by f64, otherwise the error
field of the approximation contains the sign of result - self.
Examples
assert_eq!(IBig::from(-134).to_f64().value(), -134.0f64);sourceimpl IBig
impl IBig
sourcepub fn as_sign_words(&self) -> (Sign, &[Word])
pub fn as_sign_words(&self) -> (Sign, &[Word])
sourcepub fn into_parts(self) -> (Sign, UBig)
pub fn into_parts(self) -> (Sign, UBig)
sourcepub fn from_parts(sign: Sign, magnitude: UBig) -> Self
pub fn from_parts(sign: Sign, magnitude: UBig) -> Self
sourcepub const fn from_parts_const(sign: Sign, dword: DoubleWord) -> Self
pub const fn from_parts_const(sign: Sign, dword: DoubleWord) -> Self
Create an IBig from a Sign and a DoubleWord
Examples
const ONE: IBig = IBig::from_parts_const(Sign::Positive, 1);
assert_eq!(ONE, IBig::ONE);
const NEG_ONE: IBig = IBig::from_parts_const(Sign::Negative, 1);
assert_eq!(NEG_ONE, IBig::NEG_ONE);sourceimpl IBig
impl IBig
sourcepub fn ilog(&self, base: &UBig) -> usize
pub fn ilog(&self, base: &UBig) -> usize
Calculate the (truncated) logarithm of the magnitude of IBig
This function could takes a long time when the integer is very large. In applications where an exact result is not necessary, log2_bounds could be used.
Panics
Panics if the number is 0, or the base is 0 or 1
Examples
let base = UBig::from(3u8);
assert_eq!(IBig::from(-81).ilog(&base), 4);
assert_eq!(IBig::from(-1000).ilog(&base), 6);sourceimpl IBig
impl IBig
sourcepub fn from_str_radix(src: &str, radix: u32) -> Result<IBig, ParseError>
pub fn from_str_radix(src: &str, radix: u32) -> Result<IBig, ParseError>
sourcepub fn from_str_with_radix_prefix(src: &str) -> Result<(IBig, u32), ParseError>
pub fn from_str_with_radix_prefix(src: &str) -> Result<(IBig, u32), ParseError>
Convert a string with an optional radix prefix to IBig, return the parsed integer and radix.
src may contain an ‘+’ or - prefix after the radix prefix.
Allowed prefixes: 0b for binary, 0o for octal, 0x for hexadecimal.
Examples
assert_eq!(IBig::from_str_with_radix_prefix("+0o17")?, (IBig::from(0o17), 8));
assert_eq!(IBig::from_str_with_radix_prefix("-0x1f")?.0, -0x1f);Trait Implementations
sourceimpl AddAssign<&IBig> for IBig
impl AddAssign<&IBig> for IBig
sourcefn add_assign(&mut self, rhs: &IBig)
fn add_assign(&mut self, rhs: &IBig)
+= operation. Read moresourceimpl AddAssign<&UBig> for IBig
impl AddAssign<&UBig> for IBig
sourcefn add_assign(&mut self, rhs: &UBig)
fn add_assign(&mut self, rhs: &UBig)
+= operation. Read moresourceimpl AddAssign<&i128> for IBig
impl AddAssign<&i128> for IBig
sourcefn add_assign(&mut self, rhs: &i128)
fn add_assign(&mut self, rhs: &i128)
+= operation. Read moresourceimpl AddAssign<&i16> for IBig
impl AddAssign<&i16> for IBig
sourcefn add_assign(&mut self, rhs: &i16)
fn add_assign(&mut self, rhs: &i16)
+= operation. Read moresourceimpl AddAssign<&i32> for IBig
impl AddAssign<&i32> for IBig
sourcefn add_assign(&mut self, rhs: &i32)
fn add_assign(&mut self, rhs: &i32)
+= operation. Read moresourceimpl AddAssign<&i64> for IBig
impl AddAssign<&i64> for IBig
sourcefn add_assign(&mut self, rhs: &i64)
fn add_assign(&mut self, rhs: &i64)
+= operation. Read moresourceimpl AddAssign<&i8> for IBig
impl AddAssign<&i8> for IBig
sourcefn add_assign(&mut self, rhs: &i8)
fn add_assign(&mut self, rhs: &i8)
+= operation. Read moresourceimpl AddAssign<&isize> for IBig
impl AddAssign<&isize> for IBig
sourcefn add_assign(&mut self, rhs: &isize)
fn add_assign(&mut self, rhs: &isize)
+= operation. Read moresourceimpl AddAssign<&u128> for IBig
impl AddAssign<&u128> for IBig
sourcefn add_assign(&mut self, rhs: &u128)
fn add_assign(&mut self, rhs: &u128)
+= operation. Read moresourceimpl AddAssign<&u16> for IBig
impl AddAssign<&u16> for IBig
sourcefn add_assign(&mut self, rhs: &u16)
fn add_assign(&mut self, rhs: &u16)
+= operation. Read moresourceimpl AddAssign<&u32> for IBig
impl AddAssign<&u32> for IBig
sourcefn add_assign(&mut self, rhs: &u32)
fn add_assign(&mut self, rhs: &u32)
+= operation. Read moresourceimpl AddAssign<&u64> for IBig
impl AddAssign<&u64> for IBig
sourcefn add_assign(&mut self, rhs: &u64)
fn add_assign(&mut self, rhs: &u64)
+= operation. Read moresourceimpl AddAssign<&u8> for IBig
impl AddAssign<&u8> for IBig
sourcefn add_assign(&mut self, rhs: &u8)
fn add_assign(&mut self, rhs: &u8)
+= operation. Read moresourceimpl AddAssign<&usize> for IBig
impl AddAssign<&usize> for IBig
sourcefn add_assign(&mut self, rhs: &usize)
fn add_assign(&mut self, rhs: &usize)
+= operation. Read moresourceimpl AddAssign<IBig> for IBig
impl AddAssign<IBig> for IBig
sourcefn add_assign(&mut self, rhs: IBig)
fn add_assign(&mut self, rhs: IBig)
+= operation. Read moresourceimpl AddAssign<UBig> for IBig
impl AddAssign<UBig> for IBig
sourcefn add_assign(&mut self, rhs: UBig)
fn add_assign(&mut self, rhs: UBig)
+= operation. Read moresourceimpl AddAssign<i128> for IBig
impl AddAssign<i128> for IBig
sourcefn add_assign(&mut self, rhs: i128)
fn add_assign(&mut self, rhs: i128)
+= operation. Read moresourceimpl AddAssign<i16> for IBig
impl AddAssign<i16> for IBig
sourcefn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
+= operation. Read moresourceimpl AddAssign<i32> for IBig
impl AddAssign<i32> for IBig
sourcefn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
+= operation. Read moresourceimpl AddAssign<i64> for IBig
impl AddAssign<i64> for IBig
sourcefn add_assign(&mut self, rhs: i64)
fn add_assign(&mut self, rhs: i64)
+= operation. Read moresourceimpl AddAssign<i8> for IBig
impl AddAssign<i8> for IBig
sourcefn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
+= operation. Read moresourceimpl AddAssign<isize> for IBig
impl AddAssign<isize> for IBig
sourcefn add_assign(&mut self, rhs: isize)
fn add_assign(&mut self, rhs: isize)
+= operation. Read moresourceimpl AddAssign<u128> for IBig
impl AddAssign<u128> for IBig
sourcefn add_assign(&mut self, rhs: u128)
fn add_assign(&mut self, rhs: u128)
+= operation. Read moresourceimpl AddAssign<u16> for IBig
impl AddAssign<u16> for IBig
sourcefn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
+= operation. Read moresourceimpl AddAssign<u32> for IBig
impl AddAssign<u32> for IBig
sourcefn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
+= operation. Read moresourceimpl AddAssign<u64> for IBig
impl AddAssign<u64> for IBig
sourcefn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
+= operation. Read moresourceimpl AddAssign<u8> for IBig
impl AddAssign<u8> for IBig
sourcefn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
+= operation. Read moresourceimpl AddAssign<usize> for IBig
impl AddAssign<usize> for IBig
sourcefn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
+= operation. Read moresourceimpl BitAndAssign<&IBig> for IBig
impl BitAndAssign<&IBig> for IBig
sourcefn bitand_assign(&mut self, rhs: &IBig)
fn bitand_assign(&mut self, rhs: &IBig)
&= operation. Read moresourceimpl BitAndAssign<&i128> for IBig
impl BitAndAssign<&i128> for IBig
sourcefn bitand_assign(&mut self, rhs: &i128)
fn bitand_assign(&mut self, rhs: &i128)
&= operation. Read moresourceimpl BitAndAssign<&i16> for IBig
impl BitAndAssign<&i16> for IBig
sourcefn bitand_assign(&mut self, rhs: &i16)
fn bitand_assign(&mut self, rhs: &i16)
&= operation. Read moresourceimpl BitAndAssign<&i32> for IBig
impl BitAndAssign<&i32> for IBig
sourcefn bitand_assign(&mut self, rhs: &i32)
fn bitand_assign(&mut self, rhs: &i32)
&= operation. Read moresourceimpl BitAndAssign<&i64> for IBig
impl BitAndAssign<&i64> for IBig
sourcefn bitand_assign(&mut self, rhs: &i64)
fn bitand_assign(&mut self, rhs: &i64)
&= operation. Read moresourceimpl BitAndAssign<&i8> for IBig
impl BitAndAssign<&i8> for IBig
sourcefn bitand_assign(&mut self, rhs: &i8)
fn bitand_assign(&mut self, rhs: &i8)
&= operation. Read moresourceimpl BitAndAssign<&isize> for IBig
impl BitAndAssign<&isize> for IBig
sourcefn bitand_assign(&mut self, rhs: &isize)
fn bitand_assign(&mut self, rhs: &isize)
&= operation. Read moresourceimpl BitAndAssign<IBig> for IBig
impl BitAndAssign<IBig> for IBig
sourcefn bitand_assign(&mut self, rhs: IBig)
fn bitand_assign(&mut self, rhs: IBig)
&= operation. Read moresourceimpl BitAndAssign<i128> for IBig
impl BitAndAssign<i128> for IBig
sourcefn bitand_assign(&mut self, rhs: i128)
fn bitand_assign(&mut self, rhs: i128)
&= operation. Read moresourceimpl BitAndAssign<i16> for IBig
impl BitAndAssign<i16> for IBig
sourcefn bitand_assign(&mut self, rhs: i16)
fn bitand_assign(&mut self, rhs: i16)
&= operation. Read moresourceimpl BitAndAssign<i32> for IBig
impl BitAndAssign<i32> for IBig
sourcefn bitand_assign(&mut self, rhs: i32)
fn bitand_assign(&mut self, rhs: i32)
&= operation. Read moresourceimpl BitAndAssign<i64> for IBig
impl BitAndAssign<i64> for IBig
sourcefn bitand_assign(&mut self, rhs: i64)
fn bitand_assign(&mut self, rhs: i64)
&= operation. Read moresourceimpl BitAndAssign<i8> for IBig
impl BitAndAssign<i8> for IBig
sourcefn bitand_assign(&mut self, rhs: i8)
fn bitand_assign(&mut self, rhs: i8)
&= operation. Read moresourceimpl BitAndAssign<isize> for IBig
impl BitAndAssign<isize> for IBig
sourcefn bitand_assign(&mut self, rhs: isize)
fn bitand_assign(&mut self, rhs: isize)
&= operation. Read moresourceimpl BitOrAssign<&IBig> for IBig
impl BitOrAssign<&IBig> for IBig
sourcefn bitor_assign(&mut self, rhs: &IBig)
fn bitor_assign(&mut self, rhs: &IBig)
|= operation. Read moresourceimpl BitOrAssign<&i128> for IBig
impl BitOrAssign<&i128> for IBig
sourcefn bitor_assign(&mut self, rhs: &i128)
fn bitor_assign(&mut self, rhs: &i128)
|= operation. Read moresourceimpl BitOrAssign<&i16> for IBig
impl BitOrAssign<&i16> for IBig
sourcefn bitor_assign(&mut self, rhs: &i16)
fn bitor_assign(&mut self, rhs: &i16)
|= operation. Read moresourceimpl BitOrAssign<&i32> for IBig
impl BitOrAssign<&i32> for IBig
sourcefn bitor_assign(&mut self, rhs: &i32)
fn bitor_assign(&mut self, rhs: &i32)
|= operation. Read moresourceimpl BitOrAssign<&i64> for IBig
impl BitOrAssign<&i64> for IBig
sourcefn bitor_assign(&mut self, rhs: &i64)
fn bitor_assign(&mut self, rhs: &i64)
|= operation. Read moresourceimpl BitOrAssign<&i8> for IBig
impl BitOrAssign<&i8> for IBig
sourcefn bitor_assign(&mut self, rhs: &i8)
fn bitor_assign(&mut self, rhs: &i8)
|= operation. Read moresourceimpl BitOrAssign<&isize> for IBig
impl BitOrAssign<&isize> for IBig
sourcefn bitor_assign(&mut self, rhs: &isize)
fn bitor_assign(&mut self, rhs: &isize)
|= operation. Read moresourceimpl BitOrAssign<IBig> for IBig
impl BitOrAssign<IBig> for IBig
sourcefn bitor_assign(&mut self, rhs: IBig)
fn bitor_assign(&mut self, rhs: IBig)
|= operation. Read moresourceimpl BitOrAssign<i128> for IBig
impl BitOrAssign<i128> for IBig
sourcefn bitor_assign(&mut self, rhs: i128)
fn bitor_assign(&mut self, rhs: i128)
|= operation. Read moresourceimpl BitOrAssign<i16> for IBig
impl BitOrAssign<i16> for IBig
sourcefn bitor_assign(&mut self, rhs: i16)
fn bitor_assign(&mut self, rhs: i16)
|= operation. Read moresourceimpl BitOrAssign<i32> for IBig
impl BitOrAssign<i32> for IBig
sourcefn bitor_assign(&mut self, rhs: i32)
fn bitor_assign(&mut self, rhs: i32)
|= operation. Read moresourceimpl BitOrAssign<i64> for IBig
impl BitOrAssign<i64> for IBig
sourcefn bitor_assign(&mut self, rhs: i64)
fn bitor_assign(&mut self, rhs: i64)
|= operation. Read moresourceimpl BitOrAssign<i8> for IBig
impl BitOrAssign<i8> for IBig
sourcefn bitor_assign(&mut self, rhs: i8)
fn bitor_assign(&mut self, rhs: i8)
|= operation. Read moresourceimpl BitOrAssign<isize> for IBig
impl BitOrAssign<isize> for IBig
sourcefn bitor_assign(&mut self, rhs: isize)
fn bitor_assign(&mut self, rhs: isize)
|= operation. Read moresourceimpl BitXorAssign<&IBig> for IBig
impl BitXorAssign<&IBig> for IBig
sourcefn bitxor_assign(&mut self, rhs: &IBig)
fn bitxor_assign(&mut self, rhs: &IBig)
^= operation. Read moresourceimpl BitXorAssign<&i128> for IBig
impl BitXorAssign<&i128> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i128)
fn bitxor_assign(&mut self, rhs: &i128)
^= operation. Read moresourceimpl BitXorAssign<&i16> for IBig
impl BitXorAssign<&i16> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i16)
fn bitxor_assign(&mut self, rhs: &i16)
^= operation. Read moresourceimpl BitXorAssign<&i32> for IBig
impl BitXorAssign<&i32> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i32)
fn bitxor_assign(&mut self, rhs: &i32)
^= operation. Read moresourceimpl BitXorAssign<&i64> for IBig
impl BitXorAssign<&i64> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i64)
fn bitxor_assign(&mut self, rhs: &i64)
^= operation. Read moresourceimpl BitXorAssign<&i8> for IBig
impl BitXorAssign<&i8> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i8)
fn bitxor_assign(&mut self, rhs: &i8)
^= operation. Read moresourceimpl BitXorAssign<&isize> for IBig
impl BitXorAssign<&isize> for IBig
sourcefn bitxor_assign(&mut self, rhs: &isize)
fn bitxor_assign(&mut self, rhs: &isize)
^= operation. Read moresourceimpl BitXorAssign<IBig> for IBig
impl BitXorAssign<IBig> for IBig
sourcefn bitxor_assign(&mut self, rhs: IBig)
fn bitxor_assign(&mut self, rhs: IBig)
^= operation. Read moresourceimpl BitXorAssign<i128> for IBig
impl BitXorAssign<i128> for IBig
sourcefn bitxor_assign(&mut self, rhs: i128)
fn bitxor_assign(&mut self, rhs: i128)
^= operation. Read moresourceimpl BitXorAssign<i16> for IBig
impl BitXorAssign<i16> for IBig
sourcefn bitxor_assign(&mut self, rhs: i16)
fn bitxor_assign(&mut self, rhs: i16)
^= operation. Read moresourceimpl BitXorAssign<i32> for IBig
impl BitXorAssign<i32> for IBig
sourcefn bitxor_assign(&mut self, rhs: i32)
fn bitxor_assign(&mut self, rhs: i32)
^= operation. Read moresourceimpl BitXorAssign<i64> for IBig
impl BitXorAssign<i64> for IBig
sourcefn bitxor_assign(&mut self, rhs: i64)
fn bitxor_assign(&mut self, rhs: i64)
^= operation. Read moresourceimpl BitXorAssign<i8> for IBig
impl BitXorAssign<i8> for IBig
sourcefn bitxor_assign(&mut self, rhs: i8)
fn bitxor_assign(&mut self, rhs: i8)
^= operation. Read moresourceimpl BitXorAssign<isize> for IBig
impl BitXorAssign<isize> for IBig
sourcefn bitxor_assign(&mut self, rhs: isize)
fn bitxor_assign(&mut self, rhs: isize)
^= operation. Read moresourceimpl<'de> Deserialize<'de> for IBig
impl<'de> Deserialize<'de> for IBig
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
sourceimpl<'l, 'r> Div<&'r ConstDivisor> for &'l IBig
impl<'l, 'r> Div<&'r ConstDivisor> for &'l IBig
sourceimpl<'r> Div<&'r ConstDivisor> for IBig
impl<'r> Div<&'r ConstDivisor> for IBig
sourceimpl<'r> DivAssign<&'r ConstDivisor> for IBig
impl<'r> DivAssign<&'r ConstDivisor> for IBig
sourcefn div_assign(&mut self, rhs: &'r ConstDivisor)
fn div_assign(&mut self, rhs: &'r ConstDivisor)
/= operation. Read moresourceimpl DivAssign<&IBig> for IBig
impl DivAssign<&IBig> for IBig
sourcefn div_assign(&mut self, rhs: &IBig)
fn div_assign(&mut self, rhs: &IBig)
/= operation. Read moresourceimpl DivAssign<&UBig> for IBig
impl DivAssign<&UBig> for IBig
sourcefn div_assign(&mut self, rhs: &UBig)
fn div_assign(&mut self, rhs: &UBig)
/= operation. Read moresourceimpl DivAssign<&i128> for IBig
impl DivAssign<&i128> for IBig
sourcefn div_assign(&mut self, rhs: &i128)
fn div_assign(&mut self, rhs: &i128)
/= operation. Read moresourceimpl DivAssign<&i16> for IBig
impl DivAssign<&i16> for IBig
sourcefn div_assign(&mut self, rhs: &i16)
fn div_assign(&mut self, rhs: &i16)
/= operation. Read moresourceimpl DivAssign<&i32> for IBig
impl DivAssign<&i32> for IBig
sourcefn div_assign(&mut self, rhs: &i32)
fn div_assign(&mut self, rhs: &i32)
/= operation. Read moresourceimpl DivAssign<&i64> for IBig
impl DivAssign<&i64> for IBig
sourcefn div_assign(&mut self, rhs: &i64)
fn div_assign(&mut self, rhs: &i64)
/= operation. Read moresourceimpl DivAssign<&i8> for IBig
impl DivAssign<&i8> for IBig
sourcefn div_assign(&mut self, rhs: &i8)
fn div_assign(&mut self, rhs: &i8)
/= operation. Read moresourceimpl DivAssign<&isize> for IBig
impl DivAssign<&isize> for IBig
sourcefn div_assign(&mut self, rhs: &isize)
fn div_assign(&mut self, rhs: &isize)
/= operation. Read moresourceimpl DivAssign<&u128> for IBig
impl DivAssign<&u128> for IBig
sourcefn div_assign(&mut self, rhs: &u128)
fn div_assign(&mut self, rhs: &u128)
/= operation. Read moresourceimpl DivAssign<&u16> for IBig
impl DivAssign<&u16> for IBig
sourcefn div_assign(&mut self, rhs: &u16)
fn div_assign(&mut self, rhs: &u16)
/= operation. Read moresourceimpl DivAssign<&u32> for IBig
impl DivAssign<&u32> for IBig
sourcefn div_assign(&mut self, rhs: &u32)
fn div_assign(&mut self, rhs: &u32)
/= operation. Read moresourceimpl DivAssign<&u64> for IBig
impl DivAssign<&u64> for IBig
sourcefn div_assign(&mut self, rhs: &u64)
fn div_assign(&mut self, rhs: &u64)
/= operation. Read moresourceimpl DivAssign<&u8> for IBig
impl DivAssign<&u8> for IBig
sourcefn div_assign(&mut self, rhs: &u8)
fn div_assign(&mut self, rhs: &u8)
/= operation. Read moresourceimpl DivAssign<&usize> for IBig
impl DivAssign<&usize> for IBig
sourcefn div_assign(&mut self, rhs: &usize)
fn div_assign(&mut self, rhs: &usize)
/= operation. Read moresourceimpl DivAssign<IBig> for IBig
impl DivAssign<IBig> for IBig
sourcefn div_assign(&mut self, rhs: IBig)
fn div_assign(&mut self, rhs: IBig)
/= operation. Read moresourceimpl DivAssign<UBig> for IBig
impl DivAssign<UBig> for IBig
sourcefn div_assign(&mut self, rhs: UBig)
fn div_assign(&mut self, rhs: UBig)
/= operation. Read moresourceimpl DivAssign<i128> for IBig
impl DivAssign<i128> for IBig
sourcefn div_assign(&mut self, rhs: i128)
fn div_assign(&mut self, rhs: i128)
/= operation. Read moresourceimpl DivAssign<i16> for IBig
impl DivAssign<i16> for IBig
sourcefn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
/= operation. Read moresourceimpl DivAssign<i32> for IBig
impl DivAssign<i32> for IBig
sourcefn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
/= operation. Read moresourceimpl DivAssign<i64> for IBig
impl DivAssign<i64> for IBig
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/= operation. Read moresourceimpl DivAssign<i8> for IBig
impl DivAssign<i8> for IBig
sourcefn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
/= operation. Read moresourceimpl DivAssign<isize> for IBig
impl DivAssign<isize> for IBig
sourcefn div_assign(&mut self, rhs: isize)
fn div_assign(&mut self, rhs: isize)
/= operation. Read moresourceimpl DivAssign<u128> for IBig
impl DivAssign<u128> for IBig
sourcefn div_assign(&mut self, rhs: u128)
fn div_assign(&mut self, rhs: u128)
/= operation. Read moresourceimpl DivAssign<u16> for IBig
impl DivAssign<u16> for IBig
sourcefn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
/= operation. Read moresourceimpl DivAssign<u32> for IBig
impl DivAssign<u32> for IBig
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
/= operation. Read moresourceimpl DivAssign<u64> for IBig
impl DivAssign<u64> for IBig
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/= operation. Read moresourceimpl DivAssign<u8> for IBig
impl DivAssign<u8> for IBig
sourcefn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
/= operation. Read moresourceimpl DivAssign<usize> for IBig
impl DivAssign<usize> for IBig
sourcefn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
/= operation. Read moresourceimpl<'l, 'r> DivRem<&'r ConstDivisor> for &'l IBig
impl<'l, 'r> DivRem<&'r ConstDivisor> for &'l IBig
sourceimpl<'r> DivRem<&'r ConstDivisor> for IBig
impl<'r> DivRem<&'r ConstDivisor> for IBig
sourceimpl<'r> DivRemAssign<&'r ConstDivisor> for IBig
impl<'r> DivRemAssign<&'r ConstDivisor> for IBig
type OutputRem = IBig
fn div_rem_assign(&mut self, rhs: &ConstDivisor) -> IBig
sourceimpl DivRemAssign<&IBig> for IBig
impl DivRemAssign<&IBig> for IBig
sourceimpl DivRemAssign<&i128> for IBig
impl DivRemAssign<&i128> for IBig
sourceimpl DivRemAssign<&i16> for IBig
impl DivRemAssign<&i16> for IBig
sourceimpl DivRemAssign<&i32> for IBig
impl DivRemAssign<&i32> for IBig
sourceimpl DivRemAssign<&i64> for IBig
impl DivRemAssign<&i64> for IBig
sourceimpl DivRemAssign<&i8> for IBig
impl DivRemAssign<&i8> for IBig
sourceimpl DivRemAssign<&isize> for IBig
impl DivRemAssign<&isize> for IBig
sourceimpl DivRemAssign<&u128> for IBig
impl DivRemAssign<&u128> for IBig
sourceimpl DivRemAssign<&u16> for IBig
impl DivRemAssign<&u16> for IBig
sourceimpl DivRemAssign<&u32> for IBig
impl DivRemAssign<&u32> for IBig
sourceimpl DivRemAssign<&u64> for IBig
impl DivRemAssign<&u64> for IBig
sourceimpl DivRemAssign<&u8> for IBig
impl DivRemAssign<&u8> for IBig
sourceimpl DivRemAssign<&usize> for IBig
impl DivRemAssign<&usize> for IBig
sourceimpl DivRemAssign<IBig> for IBig
impl DivRemAssign<IBig> for IBig
sourceimpl DivRemAssign<i128> for IBig
impl DivRemAssign<i128> for IBig
sourceimpl DivRemAssign<i16> for IBig
impl DivRemAssign<i16> for IBig
sourceimpl DivRemAssign<i32> for IBig
impl DivRemAssign<i32> for IBig
sourceimpl DivRemAssign<i64> for IBig
impl DivRemAssign<i64> for IBig
sourceimpl DivRemAssign<i8> for IBig
impl DivRemAssign<i8> for IBig
sourceimpl DivRemAssign<isize> for IBig
impl DivRemAssign<isize> for IBig
sourceimpl DivRemAssign<u128> for IBig
impl DivRemAssign<u128> for IBig
sourceimpl DivRemAssign<u16> for IBig
impl DivRemAssign<u16> for IBig
sourceimpl DivRemAssign<u32> for IBig
impl DivRemAssign<u32> for IBig
sourceimpl DivRemAssign<u64> for IBig
impl DivRemAssign<u64> for IBig
sourceimpl DivRemAssign<u8> for IBig
impl DivRemAssign<u8> for IBig
sourceimpl DivRemAssign<usize> for IBig
impl DivRemAssign<usize> for IBig
sourceimpl<'l, 'r> DivRemEuclid<&'r IBig> for &'l IBig
impl<'l, 'r> DivRemEuclid<&'r IBig> for &'l IBig
sourceimpl<'r> DivRemEuclid<&'r IBig> for IBig
impl<'r> DivRemEuclid<&'r IBig> for IBig
sourceimpl<'l> DivRemEuclid<IBig> for &'l IBig
impl<'l> DivRemEuclid<IBig> for &'l IBig
sourceimpl DivRemEuclid<IBig> for IBig
impl DivRemEuclid<IBig> for IBig
sourceimpl EstimatedLog2 for IBig
impl EstimatedLog2 for IBig
sourcefn log2_bounds(&self) -> (f32, f32)
fn log2_bounds(&self) -> (f32, f32)
sourcefn log2_est(&self) -> f32
fn log2_est(&self) -> f32
sourceimpl Euclid for IBig
impl Euclid for IBig
sourcefn div_euclid(&self, v: &Self) -> Self
fn div_euclid(&self, v: &Self) -> Self
rem_euclid. Read moresourcefn rem_euclid(&self, v: &Self) -> Self
fn rem_euclid(&self, v: &Self) -> Self
self (mod v). Read moresourceimpl<'l, 'r> ExtendedGcd<&'r IBig> for &'l IBig
impl<'l, 'r> ExtendedGcd<&'r IBig> for &'l IBig
sourceimpl<'r> ExtendedGcd<&'r IBig> for IBig
impl<'r> ExtendedGcd<&'r IBig> for IBig
sourceimpl<'l> ExtendedGcd<IBig> for &'l IBig
impl<'l> ExtendedGcd<IBig> for &'l IBig
sourceimpl ExtendedGcd<IBig> for IBig
impl ExtendedGcd<IBig> for IBig
sourceimpl FromPrimitive for IBig
impl FromPrimitive for IBig
sourcefn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresourceimpl FromStr for IBig
impl FromStr for IBig
type Err = ParseError
type Err = ParseError
sourceimpl Integer for IBig
impl Integer for IBig
sourcefn div_rem(&self, other: &Self) -> (Self, Self)
fn div_rem(&self, other: &Self) -> (Self, Self)
(quotient, remainder). Read moresourcefn is_multiple_of(&self, other: &Self) -> bool
fn is_multiple_of(&self, other: &Self) -> bool
sourcefn extended_gcd(&self, other: &Self) -> ExtendedGcd<Self>
fn extended_gcd(&self, other: &Self) -> ExtendedGcd<Self>
sourcefn gcd_lcm(&self, other: &Self) -> (Self, Self)
fn gcd_lcm(&self, other: &Self) -> (Self, Self)
sourcefn extended_gcd_lcm(&self, other: &Self) -> (ExtendedGcd<Self>, Self)where
Self: Clone + Signed,
fn extended_gcd_lcm(&self, other: &Self) -> (ExtendedGcd<Self>, Self)where
Self: Clone + Signed,
sourcefn div_mod_floor(&self, other: &Self) -> (Self, Self)
fn div_mod_floor(&self, other: &Self) -> (Self, Self)
(quotient, remainder). Read moresourcefn next_multiple_of(&self, other: &Self) -> Selfwhere
Self: Clone,
fn next_multiple_of(&self, other: &Self) -> Selfwhere
Self: Clone,
sourcefn prev_multiple_of(&self, other: &Self) -> Selfwhere
Self: Clone,
fn prev_multiple_of(&self, other: &Self) -> Selfwhere
Self: Clone,
sourceimpl IntoModulo for &IBig
impl IntoModulo for &IBig
fn into_modulo(self, ring: &ModuloRing) -> Modulo<'_>
sourceimpl IntoModulo for IBig
impl IntoModulo for IBig
fn into_modulo(self, ring: &ModuloRing) -> Modulo<'_>
sourceimpl MulAssign<&IBig> for IBig
impl MulAssign<&IBig> for IBig
sourcefn mul_assign(&mut self, rhs: &IBig)
fn mul_assign(&mut self, rhs: &IBig)
*= operation. Read moresourceimpl MulAssign<&UBig> for IBig
impl MulAssign<&UBig> for IBig
sourcefn mul_assign(&mut self, rhs: &UBig)
fn mul_assign(&mut self, rhs: &UBig)
*= operation. Read moresourceimpl MulAssign<&i128> for IBig
impl MulAssign<&i128> for IBig
sourcefn mul_assign(&mut self, rhs: &i128)
fn mul_assign(&mut self, rhs: &i128)
*= operation. Read moresourceimpl MulAssign<&i16> for IBig
impl MulAssign<&i16> for IBig
sourcefn mul_assign(&mut self, rhs: &i16)
fn mul_assign(&mut self, rhs: &i16)
*= operation. Read moresourceimpl MulAssign<&i32> for IBig
impl MulAssign<&i32> for IBig
sourcefn mul_assign(&mut self, rhs: &i32)
fn mul_assign(&mut self, rhs: &i32)
*= operation. Read moresourceimpl MulAssign<&i64> for IBig
impl MulAssign<&i64> for IBig
sourcefn mul_assign(&mut self, rhs: &i64)
fn mul_assign(&mut self, rhs: &i64)
*= operation. Read moresourceimpl MulAssign<&i8> for IBig
impl MulAssign<&i8> for IBig
sourcefn mul_assign(&mut self, rhs: &i8)
fn mul_assign(&mut self, rhs: &i8)
*= operation. Read moresourceimpl MulAssign<&isize> for IBig
impl MulAssign<&isize> for IBig
sourcefn mul_assign(&mut self, rhs: &isize)
fn mul_assign(&mut self, rhs: &isize)
*= operation. Read moresourceimpl MulAssign<&u128> for IBig
impl MulAssign<&u128> for IBig
sourcefn mul_assign(&mut self, rhs: &u128)
fn mul_assign(&mut self, rhs: &u128)
*= operation. Read moresourceimpl MulAssign<&u16> for IBig
impl MulAssign<&u16> for IBig
sourcefn mul_assign(&mut self, rhs: &u16)
fn mul_assign(&mut self, rhs: &u16)
*= operation. Read moresourceimpl MulAssign<&u32> for IBig
impl MulAssign<&u32> for IBig
sourcefn mul_assign(&mut self, rhs: &u32)
fn mul_assign(&mut self, rhs: &u32)
*= operation. Read moresourceimpl MulAssign<&u64> for IBig
impl MulAssign<&u64> for IBig
sourcefn mul_assign(&mut self, rhs: &u64)
fn mul_assign(&mut self, rhs: &u64)
*= operation. Read moresourceimpl MulAssign<&u8> for IBig
impl MulAssign<&u8> for IBig
sourcefn mul_assign(&mut self, rhs: &u8)
fn mul_assign(&mut self, rhs: &u8)
*= operation. Read moresourceimpl MulAssign<&usize> for IBig
impl MulAssign<&usize> for IBig
sourcefn mul_assign(&mut self, rhs: &usize)
fn mul_assign(&mut self, rhs: &usize)
*= operation. Read moresourceimpl MulAssign<IBig> for IBig
impl MulAssign<IBig> for IBig
sourcefn mul_assign(&mut self, rhs: IBig)
fn mul_assign(&mut self, rhs: IBig)
*= operation. Read moresourceimpl MulAssign<Sign> for IBig
impl MulAssign<Sign> for IBig
sourcefn mul_assign(&mut self, rhs: Sign)
fn mul_assign(&mut self, rhs: Sign)
*= operation. Read moresourceimpl MulAssign<UBig> for IBig
impl MulAssign<UBig> for IBig
sourcefn mul_assign(&mut self, rhs: UBig)
fn mul_assign(&mut self, rhs: UBig)
*= operation. Read moresourceimpl MulAssign<i128> for IBig
impl MulAssign<i128> for IBig
sourcefn mul_assign(&mut self, rhs: i128)
fn mul_assign(&mut self, rhs: i128)
*= operation. Read moresourceimpl MulAssign<i16> for IBig
impl MulAssign<i16> for IBig
sourcefn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
*= operation. Read moresourceimpl MulAssign<i32> for IBig
impl MulAssign<i32> for IBig
sourcefn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
*= operation. Read moresourceimpl MulAssign<i64> for IBig
impl MulAssign<i64> for IBig
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*= operation. Read moresourceimpl MulAssign<i8> for IBig
impl MulAssign<i8> for IBig
sourcefn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
*= operation. Read moresourceimpl MulAssign<isize> for IBig
impl MulAssign<isize> for IBig
sourcefn mul_assign(&mut self, rhs: isize)
fn mul_assign(&mut self, rhs: isize)
*= operation. Read moresourceimpl MulAssign<u128> for IBig
impl MulAssign<u128> for IBig
sourcefn mul_assign(&mut self, rhs: u128)
fn mul_assign(&mut self, rhs: u128)
*= operation. Read moresourceimpl MulAssign<u16> for IBig
impl MulAssign<u16> for IBig
sourcefn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
*= operation. Read moresourceimpl MulAssign<u32> for IBig
impl MulAssign<u32> for IBig
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
*= operation. Read moresourceimpl MulAssign<u64> for IBig
impl MulAssign<u64> for IBig
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*= operation. Read moresourceimpl MulAssign<u8> for IBig
impl MulAssign<u8> for IBig
sourcefn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
*= operation. Read moresourceimpl MulAssign<usize> for IBig
impl MulAssign<usize> for IBig
sourcefn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
*= operation. Read moresourceimpl Num for IBig
impl Num for IBig
type FromStrRadixErr = ParseError
sourcefn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseError>
fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseError>
2..=36). Read moresourceimpl NumOrd<IBig> for i128
impl NumOrd<IBig> for i128
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for i16
impl NumOrd<IBig> for i16
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for i32
impl NumOrd<IBig> for i32
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for i64
impl NumOrd<IBig> for i64
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for i8
impl NumOrd<IBig> for i8
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for isize
impl NumOrd<IBig> for isize
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for u128
impl NumOrd<IBig> for u128
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for u16
impl NumOrd<IBig> for u16
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for u32
impl NumOrd<IBig> for u32
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for u64
impl NumOrd<IBig> for u64
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for u8
impl NumOrd<IBig> for u8
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<IBig> for usize
impl NumOrd<IBig> for usize
sourcefn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<i128> for IBig
impl NumOrd<i128> for IBig
sourcefn num_partial_cmp(&self, other: &i128) -> Option<Ordering>
fn num_partial_cmp(&self, other: &i128) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<i16> for IBig
impl NumOrd<i16> for IBig
sourcefn num_partial_cmp(&self, other: &i16) -> Option<Ordering>
fn num_partial_cmp(&self, other: &i16) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<i32> for IBig
impl NumOrd<i32> for IBig
sourcefn num_partial_cmp(&self, other: &i32) -> Option<Ordering>
fn num_partial_cmp(&self, other: &i32) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<i64> for IBig
impl NumOrd<i64> for IBig
sourcefn num_partial_cmp(&self, other: &i64) -> Option<Ordering>
fn num_partial_cmp(&self, other: &i64) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<i8> for IBig
impl NumOrd<i8> for IBig
sourcefn num_partial_cmp(&self, other: &i8) -> Option<Ordering>
fn num_partial_cmp(&self, other: &i8) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<isize> for IBig
impl NumOrd<isize> for IBig
sourcefn num_partial_cmp(&self, other: &isize) -> Option<Ordering>
fn num_partial_cmp(&self, other: &isize) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<u128> for IBig
impl NumOrd<u128> for IBig
sourcefn num_partial_cmp(&self, other: &u128) -> Option<Ordering>
fn num_partial_cmp(&self, other: &u128) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<u16> for IBig
impl NumOrd<u16> for IBig
sourcefn num_partial_cmp(&self, other: &u16) -> Option<Ordering>
fn num_partial_cmp(&self, other: &u16) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<u32> for IBig
impl NumOrd<u32> for IBig
sourcefn num_partial_cmp(&self, other: &u32) -> Option<Ordering>
fn num_partial_cmp(&self, other: &u32) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<u64> for IBig
impl NumOrd<u64> for IBig
sourcefn num_partial_cmp(&self, other: &u64) -> Option<Ordering>
fn num_partial_cmp(&self, other: &u64) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<u8> for IBig
impl NumOrd<u8> for IBig
sourcefn num_partial_cmp(&self, other: &u8) -> Option<Ordering>
fn num_partial_cmp(&self, other: &u8) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl NumOrd<usize> for IBig
impl NumOrd<usize> for IBig
sourcefn num_partial_cmp(&self, other: &usize) -> Option<Ordering>
fn num_partial_cmp(&self, other: &usize) -> Option<Ordering>
sourcefn num_eq(&self, other: &Other) -> bool
fn num_eq(&self, other: &Other) -> bool
sourcefn num_ne(&self, other: &Other) -> bool
fn num_ne(&self, other: &Other) -> bool
sourcefn num_lt(&self, other: &Other) -> bool
fn num_lt(&self, other: &Other) -> bool
sourcefn num_le(&self, other: &Other) -> bool
fn num_le(&self, other: &Other) -> bool
sourcefn num_gt(&self, other: &Other) -> bool
fn num_gt(&self, other: &Other) -> bool
sourcefn num_ge(&self, other: &Other) -> bool
fn num_ge(&self, other: &Other) -> bool
sourceimpl Ord for IBig
impl Ord for IBig
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialOrd<IBig> for IBig
impl PartialOrd<IBig> for IBig
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for UBig
impl PartialOrd<IBig> for UBig
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for i128
impl PartialOrd<IBig> for i128
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for i16
impl PartialOrd<IBig> for i16
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for i32
impl PartialOrd<IBig> for i32
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for i64
impl PartialOrd<IBig> for i64
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for i8
impl PartialOrd<IBig> for i8
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for isize
impl PartialOrd<IBig> for isize
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for u128
impl PartialOrd<IBig> for u128
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for u16
impl PartialOrd<IBig> for u16
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for u32
impl PartialOrd<IBig> for u32
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for u64
impl PartialOrd<IBig> for u64
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for u8
impl PartialOrd<IBig> for u8
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<IBig> for usize
impl PartialOrd<IBig> for usize
sourcefn partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn partial_cmp(&self, other: &IBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<UBig> for IBig
impl PartialOrd<UBig> for IBig
sourcefn partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn partial_cmp(&self, other: &UBig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<i128> for IBig
impl PartialOrd<i128> for IBig
sourcefn partial_cmp(&self, other: &i128) -> Option<Ordering>
fn partial_cmp(&self, other: &i128) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<i16> for IBig
impl PartialOrd<i16> for IBig
sourcefn partial_cmp(&self, other: &i16) -> Option<Ordering>
fn partial_cmp(&self, other: &i16) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<i32> for IBig
impl PartialOrd<i32> for IBig
sourcefn partial_cmp(&self, other: &i32) -> Option<Ordering>
fn partial_cmp(&self, other: &i32) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<i64> for IBig
impl PartialOrd<i64> for IBig
sourcefn partial_cmp(&self, other: &i64) -> Option<Ordering>
fn partial_cmp(&self, other: &i64) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<i8> for IBig
impl PartialOrd<i8> for IBig
sourcefn partial_cmp(&self, other: &i8) -> Option<Ordering>
fn partial_cmp(&self, other: &i8) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<isize> for IBig
impl PartialOrd<isize> for IBig
sourcefn partial_cmp(&self, other: &isize) -> Option<Ordering>
fn partial_cmp(&self, other: &isize) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<u128> for IBig
impl PartialOrd<u128> for IBig
sourcefn partial_cmp(&self, other: &u128) -> Option<Ordering>
fn partial_cmp(&self, other: &u128) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<u16> for IBig
impl PartialOrd<u16> for IBig
sourcefn partial_cmp(&self, other: &u16) -> Option<Ordering>
fn partial_cmp(&self, other: &u16) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<u32> for IBig
impl PartialOrd<u32> for IBig
sourcefn partial_cmp(&self, other: &u32) -> Option<Ordering>
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<u64> for IBig
impl PartialOrd<u64> for IBig
sourcefn partial_cmp(&self, other: &u64) -> Option<Ordering>
fn partial_cmp(&self, other: &u64) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<u8> for IBig
impl PartialOrd<u8> for IBig
sourcefn partial_cmp(&self, other: &u8) -> Option<Ordering>
fn partial_cmp(&self, other: &u8) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl PartialOrd<usize> for IBig
impl PartialOrd<usize> for IBig
sourcefn partial_cmp(&self, other: &usize) -> Option<Ordering>
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl<'l, 'r> Rem<&'r ConstDivisor> for &'l IBig
impl<'l, 'r> Rem<&'r ConstDivisor> for &'l IBig
sourceimpl<'r> Rem<&'r ConstDivisor> for IBig
impl<'r> Rem<&'r ConstDivisor> for IBig
sourceimpl<'r> RemAssign<&'r ConstDivisor> for IBig
impl<'r> RemAssign<&'r ConstDivisor> for IBig
sourcefn rem_assign(&mut self, rhs: &'r ConstDivisor)
fn rem_assign(&mut self, rhs: &'r ConstDivisor)
%= operation. Read moresourceimpl RemAssign<&IBig> for IBig
impl RemAssign<&IBig> for IBig
sourcefn rem_assign(&mut self, rhs: &IBig)
fn rem_assign(&mut self, rhs: &IBig)
%= operation. Read moresourceimpl RemAssign<&IBig> for UBig
impl RemAssign<&IBig> for UBig
sourcefn rem_assign(&mut self, rhs: &IBig)
fn rem_assign(&mut self, rhs: &IBig)
%= operation. Read moresourceimpl RemAssign<&UBig> for IBig
impl RemAssign<&UBig> for IBig
sourcefn rem_assign(&mut self, rhs: &UBig)
fn rem_assign(&mut self, rhs: &UBig)
%= operation. Read moresourceimpl RemAssign<IBig> for IBig
impl RemAssign<IBig> for IBig
sourcefn rem_assign(&mut self, rhs: IBig)
fn rem_assign(&mut self, rhs: IBig)
%= operation. Read moresourceimpl RemAssign<IBig> for UBig
impl RemAssign<IBig> for UBig
sourcefn rem_assign(&mut self, rhs: IBig)
fn rem_assign(&mut self, rhs: IBig)
%= operation. Read moresourceimpl RemAssign<UBig> for IBig
impl RemAssign<UBig> for IBig
sourcefn rem_assign(&mut self, rhs: UBig)
fn rem_assign(&mut self, rhs: UBig)
%= operation. Read moresourceimpl Roots for IBig
impl Roots for IBig
sourceimpl SampleUniform for IBig
impl SampleUniform for IBig
type Sampler = UniformIBig
type Sampler = UniformIBig
UniformSampler implementation supporting type X.sourceimpl ShlAssign<&usize> for IBig
impl ShlAssign<&usize> for IBig
sourcefn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<= operation. Read moresourceimpl ShlAssign<usize> for IBig
impl ShlAssign<usize> for IBig
sourcefn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<= operation. Read moresourceimpl ShrAssign<&usize> for IBig
impl ShrAssign<&usize> for IBig
sourcefn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>= operation. Read moresourceimpl ShrAssign<usize> for IBig
impl ShrAssign<usize> for IBig
sourcefn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>= operation. Read moresourceimpl Signed for IBig
impl Signed for IBig
sourcefn is_positive(&self) -> bool
fn is_positive(&self) -> bool
sourcefn is_negative(&self) -> bool
fn is_negative(&self) -> bool
sourceimpl SubAssign<&IBig> for IBig
impl SubAssign<&IBig> for IBig
sourcefn sub_assign(&mut self, rhs: &IBig)
fn sub_assign(&mut self, rhs: &IBig)
-= operation. Read moresourceimpl SubAssign<&UBig> for IBig
impl SubAssign<&UBig> for IBig
sourcefn sub_assign(&mut self, rhs: &UBig)
fn sub_assign(&mut self, rhs: &UBig)
-= operation. Read moresourceimpl SubAssign<&i128> for IBig
impl SubAssign<&i128> for IBig
sourcefn sub_assign(&mut self, rhs: &i128)
fn sub_assign(&mut self, rhs: &i128)
-= operation. Read moresourceimpl SubAssign<&i16> for IBig
impl SubAssign<&i16> for IBig
sourcefn sub_assign(&mut self, rhs: &i16)
fn sub_assign(&mut self, rhs: &i16)
-= operation. Read moresourceimpl SubAssign<&i32> for IBig
impl SubAssign<&i32> for IBig
sourcefn sub_assign(&mut self, rhs: &i32)
fn sub_assign(&mut self, rhs: &i32)
-= operation. Read moresourceimpl SubAssign<&i64> for IBig
impl SubAssign<&i64> for IBig
sourcefn sub_assign(&mut self, rhs: &i64)
fn sub_assign(&mut self, rhs: &i64)
-= operation. Read moresourceimpl SubAssign<&i8> for IBig
impl SubAssign<&i8> for IBig
sourcefn sub_assign(&mut self, rhs: &i8)
fn sub_assign(&mut self, rhs: &i8)
-= operation. Read moresourceimpl SubAssign<&isize> for IBig
impl SubAssign<&isize> for IBig
sourcefn sub_assign(&mut self, rhs: &isize)
fn sub_assign(&mut self, rhs: &isize)
-= operation. Read moresourceimpl SubAssign<&u128> for IBig
impl SubAssign<&u128> for IBig
sourcefn sub_assign(&mut self, rhs: &u128)
fn sub_assign(&mut self, rhs: &u128)
-= operation. Read moresourceimpl SubAssign<&u16> for IBig
impl SubAssign<&u16> for IBig
sourcefn sub_assign(&mut self, rhs: &u16)
fn sub_assign(&mut self, rhs: &u16)
-= operation. Read moresourceimpl SubAssign<&u32> for IBig
impl SubAssign<&u32> for IBig
sourcefn sub_assign(&mut self, rhs: &u32)
fn sub_assign(&mut self, rhs: &u32)
-= operation. Read moresourceimpl SubAssign<&u64> for IBig
impl SubAssign<&u64> for IBig
sourcefn sub_assign(&mut self, rhs: &u64)
fn sub_assign(&mut self, rhs: &u64)
-= operation. Read moresourceimpl SubAssign<&u8> for IBig
impl SubAssign<&u8> for IBig
sourcefn sub_assign(&mut self, rhs: &u8)
fn sub_assign(&mut self, rhs: &u8)
-= operation. Read moresourceimpl SubAssign<&usize> for IBig
impl SubAssign<&usize> for IBig
sourcefn sub_assign(&mut self, rhs: &usize)
fn sub_assign(&mut self, rhs: &usize)
-= operation. Read moresourceimpl SubAssign<IBig> for IBig
impl SubAssign<IBig> for IBig
sourcefn sub_assign(&mut self, rhs: IBig)
fn sub_assign(&mut self, rhs: IBig)
-= operation. Read moresourceimpl SubAssign<UBig> for IBig
impl SubAssign<UBig> for IBig
sourcefn sub_assign(&mut self, rhs: UBig)
fn sub_assign(&mut self, rhs: UBig)
-= operation. Read moresourceimpl SubAssign<i128> for IBig
impl SubAssign<i128> for IBig
sourcefn sub_assign(&mut self, rhs: i128)
fn sub_assign(&mut self, rhs: i128)
-= operation. Read moresourceimpl SubAssign<i16> for IBig
impl SubAssign<i16> for IBig
sourcefn sub_assign(&mut self, rhs: i16)
fn sub_assign(&mut self, rhs: i16)
-= operation. Read moresourceimpl SubAssign<i32> for IBig
impl SubAssign<i32> for IBig
sourcefn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
-= operation. Read moresourceimpl SubAssign<i64> for IBig
impl SubAssign<i64> for IBig
sourcefn sub_assign(&mut self, rhs: i64)
fn sub_assign(&mut self, rhs: i64)
-= operation. Read moresourceimpl SubAssign<i8> for IBig
impl SubAssign<i8> for IBig
sourcefn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
-= operation. Read moresourceimpl SubAssign<isize> for IBig
impl SubAssign<isize> for IBig
sourcefn sub_assign(&mut self, rhs: isize)
fn sub_assign(&mut self, rhs: isize)
-= operation. Read moresourceimpl SubAssign<u128> for IBig
impl SubAssign<u128> for IBig
sourcefn sub_assign(&mut self, rhs: u128)
fn sub_assign(&mut self, rhs: u128)
-= operation. Read moresourceimpl SubAssign<u16> for IBig
impl SubAssign<u16> for IBig
sourcefn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
-= operation. Read moresourceimpl SubAssign<u32> for IBig
impl SubAssign<u32> for IBig
sourcefn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
-= operation. Read moresourceimpl SubAssign<u64> for IBig
impl SubAssign<u64> for IBig
sourcefn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
-= operation. Read moresourceimpl SubAssign<u8> for IBig
impl SubAssign<u8> for IBig
sourcefn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
-= operation. Read moresourceimpl SubAssign<usize> for IBig
impl SubAssign<usize> for IBig
sourcefn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
-= operation. Read moresourceimpl ToPrimitive for IBig
impl ToPrimitive for IBig
sourcefn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned. Read moresourcefn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned. Read moresourcefn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moresourcefn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moresourcefn to_f64(&self) -> Option<f64>
fn to_f64(&self) -> Option<f64>
self to an f64. Overflows may map to positive
or negative inifinity, otherwise None is returned if the value cannot
be represented by an f64. Read moresourcefn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned. Read moresourcefn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned. Read moresourcefn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned. Read moresourcefn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned. Read moresourcefn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned. Read moresourcefn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned. Read moresourcefn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned. Read moresourceimpl TryFrom<&IBig> for UBig
impl TryFrom<&IBig> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for i128
impl TryFrom<&IBig> for i128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for i16
impl TryFrom<&IBig> for i16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for i32
impl TryFrom<&IBig> for i32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for i64
impl TryFrom<&IBig> for i64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for i8
impl TryFrom<&IBig> for i8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for isize
impl TryFrom<&IBig> for isize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for u128
impl TryFrom<&IBig> for u128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for u16
impl TryFrom<&IBig> for u16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for u32
impl TryFrom<&IBig> for u32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for u64
impl TryFrom<&IBig> for u64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for u8
impl TryFrom<&IBig> for u8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&IBig> for usize
impl TryFrom<&IBig> for usize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for UBig
impl TryFrom<IBig> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for i128
impl TryFrom<IBig> for i128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for i16
impl TryFrom<IBig> for i16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for i32
impl TryFrom<IBig> for i32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for i64
impl TryFrom<IBig> for i64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for i8
impl TryFrom<IBig> for i8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for isize
impl TryFrom<IBig> for isize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for u128
impl TryFrom<IBig> for u128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for u16
impl TryFrom<IBig> for u16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for u32
impl TryFrom<IBig> for u32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for u64
impl TryFrom<IBig> for u64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for u8
impl TryFrom<IBig> for u8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<IBig> for usize
impl TryFrom<IBig> for usize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl UnsignedAbs for &IBig
impl UnsignedAbs for &IBig
type Output = UBig
fn unsigned_abs(self) -> UBig
sourceimpl UnsignedAbs for IBig
impl UnsignedAbs for IBig
type Output = UBig
fn unsigned_abs(self) -> UBig
impl Eq for IBig
impl StructuralEq for IBig
impl StructuralPartialEq for IBig
Auto Trait Implementations
impl RefUnwindSafe for IBig
impl Send for IBig
impl Sync for IBig
impl Unpin for IBig
impl UnwindSafe for IBig
Blanket Implementations
sourceimpl<I> Average for Iwhere
&'a I: for<'a, 'b> BitAnd<&'b I, Output = I> + for<'a, 'b> BitOr<&'b I, Output = I> + for<'a, 'b> BitXor<&'b I, Output = I>,
I: Integer + Shr<usize, Output = I>,
impl<I> Average for Iwhere
&'a I: for<'a, 'b> BitAnd<&'b I, Output = I> + for<'a, 'b> BitOr<&'b I, Output = I> + for<'a, 'b> BitXor<&'b I, Output = I>,
I: Integer + Shr<usize, Output = I>,
sourcefn average_floor(&self, other: &I) -> I
fn average_floor(&self, other: &I) -> I
Returns the floor value of the average of self and other.
sourcefn average_ceil(&self, other: &I) -> I
fn average_ceil(&self, other: &I) -> I
Returns the ceil value of the average of self and other.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
sourcefn borrow(&self) -> &Borrowed
fn borrow(&self) -> &Borrowed
Borrow::borrow Read more