#[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-macro
crate. - 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)
Performs the +=
operation. Read more
sourceimpl AddAssign<&UBig> for IBig
impl AddAssign<&UBig> for IBig
sourcefn add_assign(&mut self, rhs: &UBig)
fn add_assign(&mut self, rhs: &UBig)
Performs the +=
operation. Read more
sourceimpl AddAssign<&i128> for IBig
impl AddAssign<&i128> for IBig
sourcefn add_assign(&mut self, rhs: &i128)
fn add_assign(&mut self, rhs: &i128)
Performs the +=
operation. Read more
sourceimpl AddAssign<&i16> for IBig
impl AddAssign<&i16> for IBig
sourcefn add_assign(&mut self, rhs: &i16)
fn add_assign(&mut self, rhs: &i16)
Performs the +=
operation. Read more
sourceimpl AddAssign<&i32> for IBig
impl AddAssign<&i32> for IBig
sourcefn add_assign(&mut self, rhs: &i32)
fn add_assign(&mut self, rhs: &i32)
Performs the +=
operation. Read more
sourceimpl AddAssign<&i64> for IBig
impl AddAssign<&i64> for IBig
sourcefn add_assign(&mut self, rhs: &i64)
fn add_assign(&mut self, rhs: &i64)
Performs the +=
operation. Read more
sourceimpl AddAssign<&i8> for IBig
impl AddAssign<&i8> for IBig
sourcefn add_assign(&mut self, rhs: &i8)
fn add_assign(&mut self, rhs: &i8)
Performs the +=
operation. Read more
sourceimpl AddAssign<&isize> for IBig
impl AddAssign<&isize> for IBig
sourcefn add_assign(&mut self, rhs: &isize)
fn add_assign(&mut self, rhs: &isize)
Performs the +=
operation. Read more
sourceimpl AddAssign<&u128> for IBig
impl AddAssign<&u128> for IBig
sourcefn add_assign(&mut self, rhs: &u128)
fn add_assign(&mut self, rhs: &u128)
Performs the +=
operation. Read more
sourceimpl AddAssign<&u16> for IBig
impl AddAssign<&u16> for IBig
sourcefn add_assign(&mut self, rhs: &u16)
fn add_assign(&mut self, rhs: &u16)
Performs the +=
operation. Read more
sourceimpl AddAssign<&u32> for IBig
impl AddAssign<&u32> for IBig
sourcefn add_assign(&mut self, rhs: &u32)
fn add_assign(&mut self, rhs: &u32)
Performs the +=
operation. Read more
sourceimpl AddAssign<&u64> for IBig
impl AddAssign<&u64> for IBig
sourcefn add_assign(&mut self, rhs: &u64)
fn add_assign(&mut self, rhs: &u64)
Performs the +=
operation. Read more
sourceimpl AddAssign<&u8> for IBig
impl AddAssign<&u8> for IBig
sourcefn add_assign(&mut self, rhs: &u8)
fn add_assign(&mut self, rhs: &u8)
Performs the +=
operation. Read more
sourceimpl AddAssign<&usize> for IBig
impl AddAssign<&usize> for IBig
sourcefn add_assign(&mut self, rhs: &usize)
fn add_assign(&mut self, rhs: &usize)
Performs the +=
operation. Read more
sourceimpl AddAssign<IBig> for IBig
impl AddAssign<IBig> for IBig
sourcefn add_assign(&mut self, rhs: IBig)
fn add_assign(&mut self, rhs: IBig)
Performs the +=
operation. Read more
sourceimpl AddAssign<UBig> for IBig
impl AddAssign<UBig> for IBig
sourcefn add_assign(&mut self, rhs: UBig)
fn add_assign(&mut self, rhs: UBig)
Performs the +=
operation. Read more
sourceimpl AddAssign<i128> for IBig
impl AddAssign<i128> for IBig
sourcefn add_assign(&mut self, rhs: i128)
fn add_assign(&mut self, rhs: i128)
Performs the +=
operation. Read more
sourceimpl AddAssign<i16> for IBig
impl AddAssign<i16> for IBig
sourcefn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
Performs the +=
operation. Read more
sourceimpl AddAssign<i32> for IBig
impl AddAssign<i32> for IBig
sourcefn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
Performs the +=
operation. Read more
sourceimpl AddAssign<i64> for IBig
impl AddAssign<i64> for IBig
sourcefn add_assign(&mut self, rhs: i64)
fn add_assign(&mut self, rhs: i64)
Performs the +=
operation. Read more
sourceimpl AddAssign<i8> for IBig
impl AddAssign<i8> for IBig
sourcefn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the +=
operation. Read more
sourceimpl AddAssign<isize> for IBig
impl AddAssign<isize> for IBig
sourcefn add_assign(&mut self, rhs: isize)
fn add_assign(&mut self, rhs: isize)
Performs the +=
operation. Read more
sourceimpl AddAssign<u128> for IBig
impl AddAssign<u128> for IBig
sourcefn add_assign(&mut self, rhs: u128)
fn add_assign(&mut self, rhs: u128)
Performs the +=
operation. Read more
sourceimpl AddAssign<u16> for IBig
impl AddAssign<u16> for IBig
sourcefn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
Performs the +=
operation. Read more
sourceimpl AddAssign<u32> for IBig
impl AddAssign<u32> for IBig
sourcefn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the +=
operation. Read more
sourceimpl AddAssign<u64> for IBig
impl AddAssign<u64> for IBig
sourcefn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the +=
operation. Read more
sourceimpl AddAssign<u8> for IBig
impl AddAssign<u8> for IBig
sourcefn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the +=
operation. Read more
sourceimpl AddAssign<usize> for IBig
impl AddAssign<usize> for IBig
sourcefn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the +=
operation. Read more
sourceimpl BitAndAssign<&IBig> for IBig
impl BitAndAssign<&IBig> for IBig
sourcefn bitand_assign(&mut self, rhs: &IBig)
fn bitand_assign(&mut self, rhs: &IBig)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<&i128> for IBig
impl BitAndAssign<&i128> for IBig
sourcefn bitand_assign(&mut self, rhs: &i128)
fn bitand_assign(&mut self, rhs: &i128)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<&i16> for IBig
impl BitAndAssign<&i16> for IBig
sourcefn bitand_assign(&mut self, rhs: &i16)
fn bitand_assign(&mut self, rhs: &i16)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<&i32> for IBig
impl BitAndAssign<&i32> for IBig
sourcefn bitand_assign(&mut self, rhs: &i32)
fn bitand_assign(&mut self, rhs: &i32)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<&i64> for IBig
impl BitAndAssign<&i64> for IBig
sourcefn bitand_assign(&mut self, rhs: &i64)
fn bitand_assign(&mut self, rhs: &i64)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<&i8> for IBig
impl BitAndAssign<&i8> for IBig
sourcefn bitand_assign(&mut self, rhs: &i8)
fn bitand_assign(&mut self, rhs: &i8)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<&isize> for IBig
impl BitAndAssign<&isize> for IBig
sourcefn bitand_assign(&mut self, rhs: &isize)
fn bitand_assign(&mut self, rhs: &isize)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<IBig> for IBig
impl BitAndAssign<IBig> for IBig
sourcefn bitand_assign(&mut self, rhs: IBig)
fn bitand_assign(&mut self, rhs: IBig)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<i128> for IBig
impl BitAndAssign<i128> for IBig
sourcefn bitand_assign(&mut self, rhs: i128)
fn bitand_assign(&mut self, rhs: i128)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<i16> for IBig
impl BitAndAssign<i16> for IBig
sourcefn bitand_assign(&mut self, rhs: i16)
fn bitand_assign(&mut self, rhs: i16)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<i32> for IBig
impl BitAndAssign<i32> for IBig
sourcefn bitand_assign(&mut self, rhs: i32)
fn bitand_assign(&mut self, rhs: i32)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<i64> for IBig
impl BitAndAssign<i64> for IBig
sourcefn bitand_assign(&mut self, rhs: i64)
fn bitand_assign(&mut self, rhs: i64)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<i8> for IBig
impl BitAndAssign<i8> for IBig
sourcefn bitand_assign(&mut self, rhs: i8)
fn bitand_assign(&mut self, rhs: i8)
Performs the &=
operation. Read more
sourceimpl BitAndAssign<isize> for IBig
impl BitAndAssign<isize> for IBig
sourcefn bitand_assign(&mut self, rhs: isize)
fn bitand_assign(&mut self, rhs: isize)
Performs the &=
operation. Read more
sourceimpl BitOrAssign<&IBig> for IBig
impl BitOrAssign<&IBig> for IBig
sourcefn bitor_assign(&mut self, rhs: &IBig)
fn bitor_assign(&mut self, rhs: &IBig)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<&i128> for IBig
impl BitOrAssign<&i128> for IBig
sourcefn bitor_assign(&mut self, rhs: &i128)
fn bitor_assign(&mut self, rhs: &i128)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<&i16> for IBig
impl BitOrAssign<&i16> for IBig
sourcefn bitor_assign(&mut self, rhs: &i16)
fn bitor_assign(&mut self, rhs: &i16)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<&i32> for IBig
impl BitOrAssign<&i32> for IBig
sourcefn bitor_assign(&mut self, rhs: &i32)
fn bitor_assign(&mut self, rhs: &i32)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<&i64> for IBig
impl BitOrAssign<&i64> for IBig
sourcefn bitor_assign(&mut self, rhs: &i64)
fn bitor_assign(&mut self, rhs: &i64)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<&i8> for IBig
impl BitOrAssign<&i8> for IBig
sourcefn bitor_assign(&mut self, rhs: &i8)
fn bitor_assign(&mut self, rhs: &i8)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<&isize> for IBig
impl BitOrAssign<&isize> for IBig
sourcefn bitor_assign(&mut self, rhs: &isize)
fn bitor_assign(&mut self, rhs: &isize)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<IBig> for IBig
impl BitOrAssign<IBig> for IBig
sourcefn bitor_assign(&mut self, rhs: IBig)
fn bitor_assign(&mut self, rhs: IBig)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<i128> for IBig
impl BitOrAssign<i128> for IBig
sourcefn bitor_assign(&mut self, rhs: i128)
fn bitor_assign(&mut self, rhs: i128)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<i16> for IBig
impl BitOrAssign<i16> for IBig
sourcefn bitor_assign(&mut self, rhs: i16)
fn bitor_assign(&mut self, rhs: i16)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<i32> for IBig
impl BitOrAssign<i32> for IBig
sourcefn bitor_assign(&mut self, rhs: i32)
fn bitor_assign(&mut self, rhs: i32)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<i64> for IBig
impl BitOrAssign<i64> for IBig
sourcefn bitor_assign(&mut self, rhs: i64)
fn bitor_assign(&mut self, rhs: i64)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<i8> for IBig
impl BitOrAssign<i8> for IBig
sourcefn bitor_assign(&mut self, rhs: i8)
fn bitor_assign(&mut self, rhs: i8)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<isize> for IBig
impl BitOrAssign<isize> for IBig
sourcefn bitor_assign(&mut self, rhs: isize)
fn bitor_assign(&mut self, rhs: isize)
Performs the |=
operation. Read more
sourceimpl BitXorAssign<&IBig> for IBig
impl BitXorAssign<&IBig> for IBig
sourcefn bitxor_assign(&mut self, rhs: &IBig)
fn bitxor_assign(&mut self, rhs: &IBig)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<&i128> for IBig
impl BitXorAssign<&i128> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i128)
fn bitxor_assign(&mut self, rhs: &i128)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<&i16> for IBig
impl BitXorAssign<&i16> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i16)
fn bitxor_assign(&mut self, rhs: &i16)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<&i32> for IBig
impl BitXorAssign<&i32> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i32)
fn bitxor_assign(&mut self, rhs: &i32)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<&i64> for IBig
impl BitXorAssign<&i64> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i64)
fn bitxor_assign(&mut self, rhs: &i64)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<&i8> for IBig
impl BitXorAssign<&i8> for IBig
sourcefn bitxor_assign(&mut self, rhs: &i8)
fn bitxor_assign(&mut self, rhs: &i8)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<&isize> for IBig
impl BitXorAssign<&isize> for IBig
sourcefn bitxor_assign(&mut self, rhs: &isize)
fn bitxor_assign(&mut self, rhs: &isize)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<IBig> for IBig
impl BitXorAssign<IBig> for IBig
sourcefn bitxor_assign(&mut self, rhs: IBig)
fn bitxor_assign(&mut self, rhs: IBig)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<i128> for IBig
impl BitXorAssign<i128> for IBig
sourcefn bitxor_assign(&mut self, rhs: i128)
fn bitxor_assign(&mut self, rhs: i128)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<i16> for IBig
impl BitXorAssign<i16> for IBig
sourcefn bitxor_assign(&mut self, rhs: i16)
fn bitxor_assign(&mut self, rhs: i16)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<i32> for IBig
impl BitXorAssign<i32> for IBig
sourcefn bitxor_assign(&mut self, rhs: i32)
fn bitxor_assign(&mut self, rhs: i32)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<i64> for IBig
impl BitXorAssign<i64> for IBig
sourcefn bitxor_assign(&mut self, rhs: i64)
fn bitxor_assign(&mut self, rhs: i64)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<i8> for IBig
impl BitXorAssign<i8> for IBig
sourcefn bitxor_assign(&mut self, rhs: i8)
fn bitxor_assign(&mut self, rhs: i8)
Performs the ^=
operation. Read more
sourceimpl BitXorAssign<isize> for IBig
impl BitXorAssign<isize> for IBig
sourcefn bitxor_assign(&mut self, rhs: isize)
fn bitxor_assign(&mut self, rhs: isize)
Performs the ^=
operation. Read more
sourceimpl<'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>
Deserialize this value from the given Serde deserializer. Read more
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)
Performs the /=
operation. Read more
sourceimpl DivAssign<&IBig> for IBig
impl DivAssign<&IBig> for IBig
sourcefn div_assign(&mut self, rhs: &IBig)
fn div_assign(&mut self, rhs: &IBig)
Performs the /=
operation. Read more
sourceimpl DivAssign<&UBig> for IBig
impl DivAssign<&UBig> for IBig
sourcefn div_assign(&mut self, rhs: &UBig)
fn div_assign(&mut self, rhs: &UBig)
Performs the /=
operation. Read more
sourceimpl DivAssign<&i128> for IBig
impl DivAssign<&i128> for IBig
sourcefn div_assign(&mut self, rhs: &i128)
fn div_assign(&mut self, rhs: &i128)
Performs the /=
operation. Read more
sourceimpl DivAssign<&i16> for IBig
impl DivAssign<&i16> for IBig
sourcefn div_assign(&mut self, rhs: &i16)
fn div_assign(&mut self, rhs: &i16)
Performs the /=
operation. Read more
sourceimpl DivAssign<&i32> for IBig
impl DivAssign<&i32> for IBig
sourcefn div_assign(&mut self, rhs: &i32)
fn div_assign(&mut self, rhs: &i32)
Performs the /=
operation. Read more
sourceimpl DivAssign<&i64> for IBig
impl DivAssign<&i64> for IBig
sourcefn div_assign(&mut self, rhs: &i64)
fn div_assign(&mut self, rhs: &i64)
Performs the /=
operation. Read more
sourceimpl DivAssign<&i8> for IBig
impl DivAssign<&i8> for IBig
sourcefn div_assign(&mut self, rhs: &i8)
fn div_assign(&mut self, rhs: &i8)
Performs the /=
operation. Read more
sourceimpl DivAssign<&isize> for IBig
impl DivAssign<&isize> for IBig
sourcefn div_assign(&mut self, rhs: &isize)
fn div_assign(&mut self, rhs: &isize)
Performs the /=
operation. Read more
sourceimpl DivAssign<&u128> for IBig
impl DivAssign<&u128> for IBig
sourcefn div_assign(&mut self, rhs: &u128)
fn div_assign(&mut self, rhs: &u128)
Performs the /=
operation. Read more
sourceimpl DivAssign<&u16> for IBig
impl DivAssign<&u16> for IBig
sourcefn div_assign(&mut self, rhs: &u16)
fn div_assign(&mut self, rhs: &u16)
Performs the /=
operation. Read more
sourceimpl DivAssign<&u32> for IBig
impl DivAssign<&u32> for IBig
sourcefn div_assign(&mut self, rhs: &u32)
fn div_assign(&mut self, rhs: &u32)
Performs the /=
operation. Read more
sourceimpl DivAssign<&u64> for IBig
impl DivAssign<&u64> for IBig
sourcefn div_assign(&mut self, rhs: &u64)
fn div_assign(&mut self, rhs: &u64)
Performs the /=
operation. Read more
sourceimpl DivAssign<&u8> for IBig
impl DivAssign<&u8> for IBig
sourcefn div_assign(&mut self, rhs: &u8)
fn div_assign(&mut self, rhs: &u8)
Performs the /=
operation. Read more
sourceimpl DivAssign<&usize> for IBig
impl DivAssign<&usize> for IBig
sourcefn div_assign(&mut self, rhs: &usize)
fn div_assign(&mut self, rhs: &usize)
Performs the /=
operation. Read more
sourceimpl DivAssign<IBig> for IBig
impl DivAssign<IBig> for IBig
sourcefn div_assign(&mut self, rhs: IBig)
fn div_assign(&mut self, rhs: IBig)
Performs the /=
operation. Read more
sourceimpl DivAssign<UBig> for IBig
impl DivAssign<UBig> for IBig
sourcefn div_assign(&mut self, rhs: UBig)
fn div_assign(&mut self, rhs: UBig)
Performs the /=
operation. Read more
sourceimpl DivAssign<i128> for IBig
impl DivAssign<i128> for IBig
sourcefn div_assign(&mut self, rhs: i128)
fn div_assign(&mut self, rhs: i128)
Performs the /=
operation. Read more
sourceimpl DivAssign<i16> for IBig
impl DivAssign<i16> for IBig
sourcefn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
Performs the /=
operation. Read more
sourceimpl DivAssign<i32> for IBig
impl DivAssign<i32> for IBig
sourcefn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
Performs the /=
operation. Read more
sourceimpl DivAssign<i64> for IBig
impl DivAssign<i64> for IBig
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
Performs the /=
operation. Read more
sourceimpl DivAssign<i8> for IBig
impl DivAssign<i8> for IBig
sourcefn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
Performs the /=
operation. Read more
sourceimpl DivAssign<isize> for IBig
impl DivAssign<isize> for IBig
sourcefn div_assign(&mut self, rhs: isize)
fn div_assign(&mut self, rhs: isize)
Performs the /=
operation. Read more
sourceimpl DivAssign<u128> for IBig
impl DivAssign<u128> for IBig
sourcefn div_assign(&mut self, rhs: u128)
fn div_assign(&mut self, rhs: u128)
Performs the /=
operation. Read more
sourceimpl DivAssign<u16> for IBig
impl DivAssign<u16> for IBig
sourcefn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
Performs the /=
operation. Read more
sourceimpl DivAssign<u32> for IBig
impl DivAssign<u32> for IBig
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
Performs the /=
operation. Read more
sourceimpl DivAssign<u64> for IBig
impl DivAssign<u64> for IBig
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the /=
operation. Read more
sourceimpl DivAssign<u8> for IBig
impl DivAssign<u8> for IBig
sourcefn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
Performs the /=
operation. Read more
sourceimpl DivAssign<usize> for IBig
impl DivAssign<usize> for IBig
sourcefn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
Performs the /=
operation. Read more
sourceimpl<'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)
Estimate the bounds of the binary logarithm. Read more
sourcefn log2_est(&self) -> f32
fn log2_est(&self) -> f32
Estimate the value of the binary logarithm. It’s calculated as the average of log2_bounds by default. Read more
sourceimpl<'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 FromStr for IBig
impl FromStr for IBig
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
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)
Performs the *=
operation. Read more
sourceimpl MulAssign<&UBig> for IBig
impl MulAssign<&UBig> for IBig
sourcefn mul_assign(&mut self, rhs: &UBig)
fn mul_assign(&mut self, rhs: &UBig)
Performs the *=
operation. Read more
sourceimpl MulAssign<&i128> for IBig
impl MulAssign<&i128> for IBig
sourcefn mul_assign(&mut self, rhs: &i128)
fn mul_assign(&mut self, rhs: &i128)
Performs the *=
operation. Read more
sourceimpl MulAssign<&i16> for IBig
impl MulAssign<&i16> for IBig
sourcefn mul_assign(&mut self, rhs: &i16)
fn mul_assign(&mut self, rhs: &i16)
Performs the *=
operation. Read more
sourceimpl MulAssign<&i32> for IBig
impl MulAssign<&i32> for IBig
sourcefn mul_assign(&mut self, rhs: &i32)
fn mul_assign(&mut self, rhs: &i32)
Performs the *=
operation. Read more
sourceimpl MulAssign<&i64> for IBig
impl MulAssign<&i64> for IBig
sourcefn mul_assign(&mut self, rhs: &i64)
fn mul_assign(&mut self, rhs: &i64)
Performs the *=
operation. Read more
sourceimpl MulAssign<&i8> for IBig
impl MulAssign<&i8> for IBig
sourcefn mul_assign(&mut self, rhs: &i8)
fn mul_assign(&mut self, rhs: &i8)
Performs the *=
operation. Read more
sourceimpl MulAssign<&isize> for IBig
impl MulAssign<&isize> for IBig
sourcefn mul_assign(&mut self, rhs: &isize)
fn mul_assign(&mut self, rhs: &isize)
Performs the *=
operation. Read more
sourceimpl MulAssign<&u128> for IBig
impl MulAssign<&u128> for IBig
sourcefn mul_assign(&mut self, rhs: &u128)
fn mul_assign(&mut self, rhs: &u128)
Performs the *=
operation. Read more
sourceimpl MulAssign<&u16> for IBig
impl MulAssign<&u16> for IBig
sourcefn mul_assign(&mut self, rhs: &u16)
fn mul_assign(&mut self, rhs: &u16)
Performs the *=
operation. Read more
sourceimpl MulAssign<&u32> for IBig
impl MulAssign<&u32> for IBig
sourcefn mul_assign(&mut self, rhs: &u32)
fn mul_assign(&mut self, rhs: &u32)
Performs the *=
operation. Read more
sourceimpl MulAssign<&u64> for IBig
impl MulAssign<&u64> for IBig
sourcefn mul_assign(&mut self, rhs: &u64)
fn mul_assign(&mut self, rhs: &u64)
Performs the *=
operation. Read more
sourceimpl MulAssign<&u8> for IBig
impl MulAssign<&u8> for IBig
sourcefn mul_assign(&mut self, rhs: &u8)
fn mul_assign(&mut self, rhs: &u8)
Performs the *=
operation. Read more
sourceimpl MulAssign<&usize> for IBig
impl MulAssign<&usize> for IBig
sourcefn mul_assign(&mut self, rhs: &usize)
fn mul_assign(&mut self, rhs: &usize)
Performs the *=
operation. Read more
sourceimpl MulAssign<IBig> for IBig
impl MulAssign<IBig> for IBig
sourcefn mul_assign(&mut self, rhs: IBig)
fn mul_assign(&mut self, rhs: IBig)
Performs the *=
operation. Read more
sourceimpl MulAssign<Sign> for IBig
impl MulAssign<Sign> for IBig
sourcefn mul_assign(&mut self, rhs: Sign)
fn mul_assign(&mut self, rhs: Sign)
Performs the *=
operation. Read more
sourceimpl MulAssign<UBig> for IBig
impl MulAssign<UBig> for IBig
sourcefn mul_assign(&mut self, rhs: UBig)
fn mul_assign(&mut self, rhs: UBig)
Performs the *=
operation. Read more
sourceimpl MulAssign<i128> for IBig
impl MulAssign<i128> for IBig
sourcefn mul_assign(&mut self, rhs: i128)
fn mul_assign(&mut self, rhs: i128)
Performs the *=
operation. Read more
sourceimpl MulAssign<i16> for IBig
impl MulAssign<i16> for IBig
sourcefn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
Performs the *=
operation. Read more
sourceimpl MulAssign<i32> for IBig
impl MulAssign<i32> for IBig
sourcefn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
Performs the *=
operation. Read more
sourceimpl MulAssign<i64> for IBig
impl MulAssign<i64> for IBig
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
Performs the *=
operation. Read more
sourceimpl MulAssign<i8> for IBig
impl MulAssign<i8> for IBig
sourcefn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
Performs the *=
operation. Read more
sourceimpl MulAssign<isize> for IBig
impl MulAssign<isize> for IBig
sourcefn mul_assign(&mut self, rhs: isize)
fn mul_assign(&mut self, rhs: isize)
Performs the *=
operation. Read more
sourceimpl MulAssign<u128> for IBig
impl MulAssign<u128> for IBig
sourcefn mul_assign(&mut self, rhs: u128)
fn mul_assign(&mut self, rhs: u128)
Performs the *=
operation. Read more
sourceimpl MulAssign<u16> for IBig
impl MulAssign<u16> for IBig
sourcefn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
Performs the *=
operation. Read more
sourceimpl MulAssign<u32> for IBig
impl MulAssign<u32> for IBig
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the *=
operation. Read more
sourceimpl MulAssign<u64> for IBig
impl MulAssign<u64> for IBig
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the *=
operation. Read more
sourceimpl MulAssign<u8> for IBig
impl MulAssign<u8> for IBig
sourcefn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
Performs the *=
operation. Read more
sourceimpl MulAssign<usize> for IBig
impl MulAssign<usize> for IBig
sourcefn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
Performs the *=
operation. Read more
sourceimpl 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>
Convert from a string and radix (typically 2..=36
). Read more
sourceimpl Ord for IBig
impl Ord for IBig
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<IBig> for IBig
impl PartialEq<IBig> for IBig
sourceimpl PartialEq<IBig> for UBig
impl PartialEq<IBig> for UBig
sourceimpl PartialEq<IBig> for i128
impl PartialEq<IBig> for i128
sourceimpl PartialEq<IBig> for i16
impl PartialEq<IBig> for i16
sourceimpl PartialEq<IBig> for i32
impl PartialEq<IBig> for i32
sourceimpl PartialEq<IBig> for i64
impl PartialEq<IBig> for i64
sourceimpl PartialEq<IBig> for i8
impl PartialEq<IBig> for i8
sourceimpl PartialEq<IBig> for isize
impl PartialEq<IBig> for isize
sourceimpl PartialEq<IBig> for u128
impl PartialEq<IBig> for u128
sourceimpl PartialEq<IBig> for u16
impl PartialEq<IBig> for u16
sourceimpl PartialEq<IBig> for u32
impl PartialEq<IBig> for u32
sourceimpl PartialEq<IBig> for u64
impl PartialEq<IBig> for u64
sourceimpl PartialEq<IBig> for u8
impl PartialEq<IBig> for u8
sourceimpl PartialEq<IBig> for usize
impl PartialEq<IBig> for usize
sourceimpl PartialEq<UBig> for IBig
impl PartialEq<UBig> for IBig
sourceimpl PartialEq<i128> for IBig
impl PartialEq<i128> for IBig
sourceimpl PartialEq<i16> for IBig
impl PartialEq<i16> for IBig
sourceimpl PartialEq<i32> for IBig
impl PartialEq<i32> for IBig
sourceimpl PartialEq<i64> for IBig
impl PartialEq<i64> for IBig
sourceimpl PartialEq<i8> for IBig
impl PartialEq<i8> for IBig
sourceimpl PartialEq<isize> for IBig
impl PartialEq<isize> for IBig
sourceimpl PartialEq<u128> for IBig
impl PartialEq<u128> for IBig
sourceimpl PartialEq<u16> for IBig
impl PartialEq<u16> for IBig
sourceimpl PartialEq<u32> for IBig
impl PartialEq<u32> for IBig
sourceimpl PartialEq<u64> for IBig
impl PartialEq<u64> for IBig
sourceimpl PartialEq<u8> for IBig
impl PartialEq<u8> for IBig
sourceimpl PartialEq<usize> for IBig
impl PartialEq<usize> for IBig
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'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)
Performs the %=
operation. Read more
sourceimpl RemAssign<&IBig> for IBig
impl RemAssign<&IBig> for IBig
sourcefn rem_assign(&mut self, rhs: &IBig)
fn rem_assign(&mut self, rhs: &IBig)
Performs the %=
operation. Read more
sourceimpl RemAssign<&IBig> for UBig
impl RemAssign<&IBig> for UBig
sourcefn rem_assign(&mut self, rhs: &IBig)
fn rem_assign(&mut self, rhs: &IBig)
Performs the %=
operation. Read more
sourceimpl RemAssign<&UBig> for IBig
impl RemAssign<&UBig> for IBig
sourcefn rem_assign(&mut self, rhs: &UBig)
fn rem_assign(&mut self, rhs: &UBig)
Performs the %=
operation. Read more
sourceimpl RemAssign<IBig> for IBig
impl RemAssign<IBig> for IBig
sourcefn rem_assign(&mut self, rhs: IBig)
fn rem_assign(&mut self, rhs: IBig)
Performs the %=
operation. Read more
sourceimpl RemAssign<IBig> for UBig
impl RemAssign<IBig> for UBig
sourcefn rem_assign(&mut self, rhs: IBig)
fn rem_assign(&mut self, rhs: IBig)
Performs the %=
operation. Read more
sourceimpl RemAssign<UBig> for IBig
impl RemAssign<UBig> for IBig
sourcefn rem_assign(&mut self, rhs: UBig)
fn rem_assign(&mut self, rhs: UBig)
Performs the %=
operation. Read more
sourceimpl SampleUniform for IBig
impl SampleUniform for IBig
type Sampler = UniformIBig
type Sampler = UniformIBig
The 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)
Performs the <<=
operation. Read more
sourceimpl ShlAssign<usize> for IBig
impl ShlAssign<usize> for IBig
sourcefn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the <<=
operation. Read more
sourceimpl ShrAssign<&usize> for IBig
impl ShrAssign<&usize> for IBig
sourcefn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
Performs the >>=
operation. Read more
sourceimpl ShrAssign<usize> for IBig
impl ShrAssign<usize> for IBig
sourcefn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the >>=
operation. Read more
sourceimpl Signed for IBig
impl Signed for IBig
sourcefn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Returns true if the number is positive and false if the number is zero or negative.
sourcefn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Returns true if the number is negative and false if the number is zero or positive.
sourceimpl SubAssign<&IBig> for IBig
impl SubAssign<&IBig> for IBig
sourcefn sub_assign(&mut self, rhs: &IBig)
fn sub_assign(&mut self, rhs: &IBig)
Performs the -=
operation. Read more
sourceimpl SubAssign<&UBig> for IBig
impl SubAssign<&UBig> for IBig
sourcefn sub_assign(&mut self, rhs: &UBig)
fn sub_assign(&mut self, rhs: &UBig)
Performs the -=
operation. Read more
sourceimpl SubAssign<&i128> for IBig
impl SubAssign<&i128> for IBig
sourcefn sub_assign(&mut self, rhs: &i128)
fn sub_assign(&mut self, rhs: &i128)
Performs the -=
operation. Read more
sourceimpl SubAssign<&i16> for IBig
impl SubAssign<&i16> for IBig
sourcefn sub_assign(&mut self, rhs: &i16)
fn sub_assign(&mut self, rhs: &i16)
Performs the -=
operation. Read more
sourceimpl SubAssign<&i32> for IBig
impl SubAssign<&i32> for IBig
sourcefn sub_assign(&mut self, rhs: &i32)
fn sub_assign(&mut self, rhs: &i32)
Performs the -=
operation. Read more
sourceimpl SubAssign<&i64> for IBig
impl SubAssign<&i64> for IBig
sourcefn sub_assign(&mut self, rhs: &i64)
fn sub_assign(&mut self, rhs: &i64)
Performs the -=
operation. Read more
sourceimpl SubAssign<&i8> for IBig
impl SubAssign<&i8> for IBig
sourcefn sub_assign(&mut self, rhs: &i8)
fn sub_assign(&mut self, rhs: &i8)
Performs the -=
operation. Read more
sourceimpl SubAssign<&isize> for IBig
impl SubAssign<&isize> for IBig
sourcefn sub_assign(&mut self, rhs: &isize)
fn sub_assign(&mut self, rhs: &isize)
Performs the -=
operation. Read more
sourceimpl SubAssign<&u128> for IBig
impl SubAssign<&u128> for IBig
sourcefn sub_assign(&mut self, rhs: &u128)
fn sub_assign(&mut self, rhs: &u128)
Performs the -=
operation. Read more
sourceimpl SubAssign<&u16> for IBig
impl SubAssign<&u16> for IBig
sourcefn sub_assign(&mut self, rhs: &u16)
fn sub_assign(&mut self, rhs: &u16)
Performs the -=
operation. Read more
sourceimpl SubAssign<&u32> for IBig
impl SubAssign<&u32> for IBig
sourcefn sub_assign(&mut self, rhs: &u32)
fn sub_assign(&mut self, rhs: &u32)
Performs the -=
operation. Read more
sourceimpl SubAssign<&u64> for IBig
impl SubAssign<&u64> for IBig
sourcefn sub_assign(&mut self, rhs: &u64)
fn sub_assign(&mut self, rhs: &u64)
Performs the -=
operation. Read more
sourceimpl SubAssign<&u8> for IBig
impl SubAssign<&u8> for IBig
sourcefn sub_assign(&mut self, rhs: &u8)
fn sub_assign(&mut self, rhs: &u8)
Performs the -=
operation. Read more
sourceimpl SubAssign<&usize> for IBig
impl SubAssign<&usize> for IBig
sourcefn sub_assign(&mut self, rhs: &usize)
fn sub_assign(&mut self, rhs: &usize)
Performs the -=
operation. Read more
sourceimpl SubAssign<IBig> for IBig
impl SubAssign<IBig> for IBig
sourcefn sub_assign(&mut self, rhs: IBig)
fn sub_assign(&mut self, rhs: IBig)
Performs the -=
operation. Read more
sourceimpl SubAssign<UBig> for IBig
impl SubAssign<UBig> for IBig
sourcefn sub_assign(&mut self, rhs: UBig)
fn sub_assign(&mut self, rhs: UBig)
Performs the -=
operation. Read more
sourceimpl SubAssign<i128> for IBig
impl SubAssign<i128> for IBig
sourcefn sub_assign(&mut self, rhs: i128)
fn sub_assign(&mut self, rhs: i128)
Performs the -=
operation. Read more
sourceimpl SubAssign<i16> for IBig
impl SubAssign<i16> for IBig
sourcefn sub_assign(&mut self, rhs: i16)
fn sub_assign(&mut self, rhs: i16)
Performs the -=
operation. Read more
sourceimpl SubAssign<i32> for IBig
impl SubAssign<i32> for IBig
sourcefn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
Performs the -=
operation. Read more
sourceimpl SubAssign<i64> for IBig
impl SubAssign<i64> for IBig
sourcefn sub_assign(&mut self, rhs: i64)
fn sub_assign(&mut self, rhs: i64)
Performs the -=
operation. Read more
sourceimpl SubAssign<i8> for IBig
impl SubAssign<i8> for IBig
sourcefn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
Performs the -=
operation. Read more
sourceimpl SubAssign<isize> for IBig
impl SubAssign<isize> for IBig
sourcefn sub_assign(&mut self, rhs: isize)
fn sub_assign(&mut self, rhs: isize)
Performs the -=
operation. Read more
sourceimpl SubAssign<u128> for IBig
impl SubAssign<u128> for IBig
sourcefn sub_assign(&mut self, rhs: u128)
fn sub_assign(&mut self, rhs: u128)
Performs the -=
operation. Read more
sourceimpl SubAssign<u16> for IBig
impl SubAssign<u16> for IBig
sourcefn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
Performs the -=
operation. Read more
sourceimpl SubAssign<u32> for IBig
impl SubAssign<u32> for IBig
sourcefn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
Performs the -=
operation. Read more
sourceimpl SubAssign<u64> for IBig
impl SubAssign<u64> for IBig
sourcefn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the -=
operation. Read more
sourceimpl SubAssign<u8> for IBig
impl SubAssign<u8> for IBig
sourcefn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
Performs the -=
operation. Read more
sourceimpl SubAssign<usize> for IBig
impl SubAssign<usize> for IBig
sourcefn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the -=
operation. Read more
sourceimpl TryFrom<&IBig> for UBig
impl TryFrom<&IBig> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for i128
impl TryFrom<&IBig> for i128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for i16
impl TryFrom<&IBig> for i16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for i32
impl TryFrom<&IBig> for i32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for i64
impl TryFrom<&IBig> for i64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for i8
impl TryFrom<&IBig> for i8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for isize
impl TryFrom<&IBig> for isize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for u128
impl TryFrom<&IBig> for u128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for u16
impl TryFrom<&IBig> for u16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for u32
impl TryFrom<&IBig> for u32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for u64
impl TryFrom<&IBig> for u64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for u8
impl TryFrom<&IBig> for u8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<&IBig> for usize
impl TryFrom<&IBig> for usize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for UBig
impl TryFrom<IBig> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for i128
impl TryFrom<IBig> for i128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for i16
impl TryFrom<IBig> for i16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for i32
impl TryFrom<IBig> for i32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for i64
impl TryFrom<IBig> for i64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for i8
impl TryFrom<IBig> for i8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for isize
impl TryFrom<IBig> for isize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for u128
impl TryFrom<IBig> for u128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for u16
impl TryFrom<IBig> for u16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for u32
impl TryFrom<IBig> for u32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for u64
impl TryFrom<IBig> for u64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for u8
impl TryFrom<IBig> for u8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<IBig> for usize
impl TryFrom<IBig> for usize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
The type returned in the event of a conversion error.
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<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
Mutably borrows from an owned value. Read more
sourceimpl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
impl<Borrowed> SampleBorrow<Borrowed> for Borrowedwhere
Borrowed: SampleUniform,
sourcefn borrow(&self) -> &Borrowed
fn borrow(&self) -> &Borrowed
Immutably borrows from an owned value. See Borrow::borrow
Read more