#[repr(transparent)]pub struct UBig(_);Expand description
An unsigned arbitrary precision integer.
This struct represents an arbitrarily large unsigned 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
To create a UBig instance, there are three ways:
- Use predifined constants (e.g. UBig::ZERO, UBig::ONE).
- Use the literal macro
ubig!defined in thedashu-macrocrate. - Parse from a string.
Parsing from either literal or string supports representation with base 2~36.
For printing, the UBig 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 = UBig::from(408580953453092208335085386466371u128);
let b = UBig::from(0x1231abcd4134u64);
let c = UBig::from_str_radix("a2a123bbb127779cccc123", 32)?;
let d = UBig::from_str_radix("1231abcd4134", 16)?;
assert_eq!(a, c);
assert_eq!(b, d);
// printing
assert_eq!(format!("{}", UBig::from(12u8)), "12");
assert_eq!(format!("{:#X}", UBig::from(0xabcdu16)), "0xABCD");
if Word::BITS == 64 {
// number of digits to display depends on the word size
assert_eq!(
format!("{:?}", UBig::ONE << 1000),
"1071508607186267320..4386837205668069376"
);
}Memory
Integers that fit in a DoubleWord will be inlined on stack and no heap allocation will be invoked. For large integers, they will be represented as an array of Words, and stored on heap.
Note that the UBig struct has a niche bit, therefore it can be used within simple enums with no memory overhead.
use core::mem::size_of;
assert_eq!(size_of::<UBig>(), size_of::<Option<UBig>>());Implementations
sourceimpl UBig
impl UBig
sourcepub fn bit(&self, n: usize) -> bool
pub fn bit(&self, n: usize) -> bool
Returns true if the n-th bit is set, n starts from 0.
Examples
assert_eq!(UBig::from(0b10010u16).bit(1), true);
assert_eq!(UBig::from(0b10010u16).bit(3), false);
assert_eq!(UBig::from(0b10010u16).bit(100), false);sourcepub fn set_bit(&mut self, n: usize)
pub fn set_bit(&mut self, n: usize)
Set the n-th bit, n starts from 0.
Examples
let mut a = UBig::from(0b100u8);
a.set_bit(0);
assert_eq!(a, UBig::from(0b101u8));
a.set_bit(10);
assert_eq!(a, UBig::from(0b10000000101u16));sourcepub fn clear_bit(&mut self, n: usize)
pub fn clear_bit(&mut self, n: usize)
Clear the n-th bit, n starts from 0.
Examples
let mut a = UBig::from(0b101u8);
a.clear_bit(0);
assert_eq!(a, UBig::from(0b100u8));sourcepub fn trailing_zeros(&self) -> Option<usize>
pub fn trailing_zeros(&self) -> Option<usize>
Returns the number of trailing zeros in the 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!(UBig::from(17u8).trailing_zeros(), Some(0));
assert_eq!(UBig::from(48u8).trailing_zeros(), Some(4));
assert_eq!(UBig::from(0b101000000u16).trailing_zeros(), Some(6));
assert_eq!(UBig::ZERO.trailing_zeros(), None);sourcepub fn bit_len(&self) -> usize
pub fn bit_len(&self) -> usize
Bit length.
The length of the binary representation of the number.
For 0, the length is 0.
For non-zero numbers it is:
in_radix(2).to_string().len()- the index of the top 1 bit plus one
- the floor of the logarithm base 2 of the number plus one.
Examples
assert_eq!(UBig::from(17u8).bit_len(), 5);
assert_eq!(UBig::from(0b101000000u16).bit_len(), 9);
assert_eq!(UBig::ZERO.bit_len(), 0);
let x = UBig::from(0x90ffff3450897234u64);
assert_eq!(x.bit_len(), x.in_radix(2).to_string().len());sourcepub fn split_bits(self, n: usize) -> (UBig, UBig)
pub fn split_bits(self, n: usize) -> (UBig, UBig)
Split this integer into low bits and high bits.
Its returns are equal to (self & ((1 << n) - 1), self >> n).
Examples
let (lo, hi) = UBig::from(0b10100011u8).split_bits(4);
assert_eq!(hi, UBig::from(0b1010u8));
assert_eq!(lo, UBig::from(0b0011u8));
let x = UBig::from(0x90ffff3450897234u64);
let (lo, hi) = x.clone().split_bits(21);
assert_eq!(hi, (&x) >> 21);
assert_eq!(lo, x & ((UBig::ONE << 21) - 1u8));sourcepub fn clear_high_bits(&mut self, n: usize)
pub fn clear_high_bits(&mut self, n: usize)
Clear the high bits from (n+1)-th bit.
This operation is equivalent to getting the lowest n bits on the integer
i.e. self &= ((1 << n) - 1).
Examples
let mut x = UBig::from(0b10100011u8);
x.clear_high_bits(4);
assert_eq!(x, UBig::from(0b0011u8));
let mut x = UBig::from(0x90ffff3450897234u64);
let lo = (&x) & ((UBig::ONE << 21) - 1u8);
x.clear_high_bits(21);
assert_eq!(x, lo);sourceimpl UBig
impl UBig
sourcepub fn from_le_bytes(bytes: &[u8]) -> UBig
pub fn from_le_bytes(bytes: &[u8]) -> UBig
sourcepub fn from_be_bytes(bytes: &[u8]) -> UBig
pub fn from_be_bytes(bytes: &[u8]) -> UBig
sourcepub fn to_le_bytes(&self) -> Vec<u8>
pub fn to_le_bytes(&self) -> Vec<u8>
Return little-endian bytes.
Examples
assert!(UBig::ZERO.to_le_bytes().is_empty());
assert_eq!(UBig::from(0x010203u32).to_le_bytes(), [3, 2, 1]);sourcepub fn to_be_bytes(&self) -> Vec<u8>
pub fn to_be_bytes(&self) -> Vec<u8>
Return big-endian bytes.
Examples
assert!(UBig::ZERO.to_be_bytes().is_empty());
assert_eq!(UBig::from(0x010203u32).to_be_bytes(), [1, 2, 3]);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!(UBig::from(134u8).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!(UBig::from(134u8).to_f64().value(), 134.0f64);sourceimpl UBig
impl UBig
sourcepub fn ilog(&self, base: &UBig) -> usize
pub fn ilog(&self, base: &UBig) -> usize
Calculate the (truncated) logarithm of the UBig
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!(UBig::from(81u8).ilog(&base), 4);
assert_eq!(UBig::from(1000u16).ilog(&base), 6);sourceimpl UBig
impl UBig
sourcepub fn from_str_radix(src: &str, radix: u32) -> Result<UBig, ParseError>
pub fn from_str_radix(src: &str, radix: u32) -> Result<UBig, ParseError>
sourcepub fn from_str_with_radix_prefix(src: &str) -> Result<(UBig, u32), ParseError>
pub fn from_str_with_radix_prefix(src: &str) -> Result<(UBig, u32), ParseError>
Convert a string with an optional radix prefix to UBig, returns the parsed integer and radix.
src may contain an optional + after the radix prefix.
Allowed prefixes: 0b for binary, 0o for octal, 0x for hexadecimal.
Examples
assert_eq!(UBig::from_str_with_radix_prefix("+0o17")?, (UBig::from(0o17u8), 8));
assert_eq!(UBig::from_str_with_radix_prefix("0x1f")?.0, 0x1f);sourceimpl UBig
impl UBig
sourcepub const fn from_dword(dword: DoubleWord) -> Self
pub const fn from_dword(dword: DoubleWord) -> Self
Create a UBig from a DoubleWord.
Examples
const ZERO: UBig = UBig::from_dword(0);
assert_eq!(ZERO, UBig::ZERO);
const ONE: UBig = UBig::from_dword(1);
assert_eq!(ONE, UBig::ONE);sourcepub fn from_words(words: &[Word]) -> Self
pub fn from_words(words: &[Word]) -> Self
Trait Implementations
sourceimpl 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<&UBig> for UBig
impl AddAssign<&UBig> for UBig
sourcefn add_assign(&mut self, rhs: &UBig)
fn add_assign(&mut self, rhs: &UBig)
+= operation. Read moresourceimpl AddAssign<&u128> for UBig
impl AddAssign<&u128> for UBig
sourcefn add_assign(&mut self, rhs: &u128)
fn add_assign(&mut self, rhs: &u128)
+= operation. Read moresourceimpl AddAssign<&u16> for UBig
impl AddAssign<&u16> for UBig
sourcefn add_assign(&mut self, rhs: &u16)
fn add_assign(&mut self, rhs: &u16)
+= operation. Read moresourceimpl AddAssign<&u32> for UBig
impl AddAssign<&u32> for UBig
sourcefn add_assign(&mut self, rhs: &u32)
fn add_assign(&mut self, rhs: &u32)
+= operation. Read moresourceimpl AddAssign<&u64> for UBig
impl AddAssign<&u64> for UBig
sourcefn add_assign(&mut self, rhs: &u64)
fn add_assign(&mut self, rhs: &u64)
+= operation. Read moresourceimpl AddAssign<&u8> for UBig
impl AddAssign<&u8> for UBig
sourcefn add_assign(&mut self, rhs: &u8)
fn add_assign(&mut self, rhs: &u8)
+= operation. Read moresourceimpl AddAssign<&usize> for UBig
impl AddAssign<&usize> for UBig
sourcefn add_assign(&mut self, rhs: &usize)
fn add_assign(&mut self, rhs: &usize)
+= 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<UBig> for UBig
impl AddAssign<UBig> for UBig
sourcefn add_assign(&mut self, rhs: UBig)
fn add_assign(&mut self, rhs: UBig)
+= operation. Read moresourceimpl AddAssign<u128> for UBig
impl AddAssign<u128> for UBig
sourcefn add_assign(&mut self, rhs: u128)
fn add_assign(&mut self, rhs: u128)
+= operation. Read moresourceimpl AddAssign<u16> for UBig
impl AddAssign<u16> for UBig
sourcefn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
+= operation. Read moresourceimpl AddAssign<u32> for UBig
impl AddAssign<u32> for UBig
sourcefn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
+= operation. Read moresourceimpl AddAssign<u64> for UBig
impl AddAssign<u64> for UBig
sourcefn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
+= operation. Read moresourceimpl AddAssign<u8> for UBig
impl AddAssign<u8> for UBig
sourcefn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
+= operation. Read moresourceimpl AddAssign<usize> for UBig
impl AddAssign<usize> for UBig
sourcefn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
+= operation. Read moresourceimpl BitAndAssign<&UBig> for UBig
impl BitAndAssign<&UBig> for UBig
sourcefn bitand_assign(&mut self, rhs: &UBig)
fn bitand_assign(&mut self, rhs: &UBig)
&= operation. Read moresourceimpl BitAndAssign<&u128> for UBig
impl BitAndAssign<&u128> for UBig
sourcefn bitand_assign(&mut self, rhs: &u128)
fn bitand_assign(&mut self, rhs: &u128)
&= operation. Read moresourceimpl BitAndAssign<&u16> for UBig
impl BitAndAssign<&u16> for UBig
sourcefn bitand_assign(&mut self, rhs: &u16)
fn bitand_assign(&mut self, rhs: &u16)
&= operation. Read moresourceimpl BitAndAssign<&u32> for UBig
impl BitAndAssign<&u32> for UBig
sourcefn bitand_assign(&mut self, rhs: &u32)
fn bitand_assign(&mut self, rhs: &u32)
&= operation. Read moresourceimpl BitAndAssign<&u64> for UBig
impl BitAndAssign<&u64> for UBig
sourcefn bitand_assign(&mut self, rhs: &u64)
fn bitand_assign(&mut self, rhs: &u64)
&= operation. Read moresourceimpl BitAndAssign<&u8> for UBig
impl BitAndAssign<&u8> for UBig
sourcefn bitand_assign(&mut self, rhs: &u8)
fn bitand_assign(&mut self, rhs: &u8)
&= operation. Read moresourceimpl BitAndAssign<&usize> for UBig
impl BitAndAssign<&usize> for UBig
sourcefn bitand_assign(&mut self, rhs: &usize)
fn bitand_assign(&mut self, rhs: &usize)
&= operation. Read moresourceimpl BitAndAssign<UBig> for UBig
impl BitAndAssign<UBig> for UBig
sourcefn bitand_assign(&mut self, rhs: UBig)
fn bitand_assign(&mut self, rhs: UBig)
&= operation. Read moresourceimpl BitAndAssign<u128> for UBig
impl BitAndAssign<u128> for UBig
sourcefn bitand_assign(&mut self, rhs: u128)
fn bitand_assign(&mut self, rhs: u128)
&= operation. Read moresourceimpl BitAndAssign<u16> for UBig
impl BitAndAssign<u16> for UBig
sourcefn bitand_assign(&mut self, rhs: u16)
fn bitand_assign(&mut self, rhs: u16)
&= operation. Read moresourceimpl BitAndAssign<u32> for UBig
impl BitAndAssign<u32> for UBig
sourcefn bitand_assign(&mut self, rhs: u32)
fn bitand_assign(&mut self, rhs: u32)
&= operation. Read moresourceimpl BitAndAssign<u64> for UBig
impl BitAndAssign<u64> for UBig
sourcefn bitand_assign(&mut self, rhs: u64)
fn bitand_assign(&mut self, rhs: u64)
&= operation. Read moresourceimpl BitAndAssign<u8> for UBig
impl BitAndAssign<u8> for UBig
sourcefn bitand_assign(&mut self, rhs: u8)
fn bitand_assign(&mut self, rhs: u8)
&= operation. Read moresourceimpl BitAndAssign<usize> for UBig
impl BitAndAssign<usize> for UBig
sourcefn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
&= operation. Read moresourceimpl BitOrAssign<&UBig> for UBig
impl BitOrAssign<&UBig> for UBig
sourcefn bitor_assign(&mut self, rhs: &UBig)
fn bitor_assign(&mut self, rhs: &UBig)
|= operation. Read moresourceimpl BitOrAssign<&u128> for UBig
impl BitOrAssign<&u128> for UBig
sourcefn bitor_assign(&mut self, rhs: &u128)
fn bitor_assign(&mut self, rhs: &u128)
|= operation. Read moresourceimpl BitOrAssign<&u16> for UBig
impl BitOrAssign<&u16> for UBig
sourcefn bitor_assign(&mut self, rhs: &u16)
fn bitor_assign(&mut self, rhs: &u16)
|= operation. Read moresourceimpl BitOrAssign<&u32> for UBig
impl BitOrAssign<&u32> for UBig
sourcefn bitor_assign(&mut self, rhs: &u32)
fn bitor_assign(&mut self, rhs: &u32)
|= operation. Read moresourceimpl BitOrAssign<&u64> for UBig
impl BitOrAssign<&u64> for UBig
sourcefn bitor_assign(&mut self, rhs: &u64)
fn bitor_assign(&mut self, rhs: &u64)
|= operation. Read moresourceimpl BitOrAssign<&u8> for UBig
impl BitOrAssign<&u8> for UBig
sourcefn bitor_assign(&mut self, rhs: &u8)
fn bitor_assign(&mut self, rhs: &u8)
|= operation. Read moresourceimpl BitOrAssign<&usize> for UBig
impl BitOrAssign<&usize> for UBig
sourcefn bitor_assign(&mut self, rhs: &usize)
fn bitor_assign(&mut self, rhs: &usize)
|= operation. Read moresourceimpl BitOrAssign<UBig> for UBig
impl BitOrAssign<UBig> for UBig
sourcefn bitor_assign(&mut self, rhs: UBig)
fn bitor_assign(&mut self, rhs: UBig)
|= operation. Read moresourceimpl BitOrAssign<u128> for UBig
impl BitOrAssign<u128> for UBig
sourcefn bitor_assign(&mut self, rhs: u128)
fn bitor_assign(&mut self, rhs: u128)
|= operation. Read moresourceimpl BitOrAssign<u16> for UBig
impl BitOrAssign<u16> for UBig
sourcefn bitor_assign(&mut self, rhs: u16)
fn bitor_assign(&mut self, rhs: u16)
|= operation. Read moresourceimpl BitOrAssign<u32> for UBig
impl BitOrAssign<u32> for UBig
sourcefn bitor_assign(&mut self, rhs: u32)
fn bitor_assign(&mut self, rhs: u32)
|= operation. Read moresourceimpl BitOrAssign<u64> for UBig
impl BitOrAssign<u64> for UBig
sourcefn bitor_assign(&mut self, rhs: u64)
fn bitor_assign(&mut self, rhs: u64)
|= operation. Read moresourceimpl BitOrAssign<u8> for UBig
impl BitOrAssign<u8> for UBig
sourcefn bitor_assign(&mut self, rhs: u8)
fn bitor_assign(&mut self, rhs: u8)
|= operation. Read moresourceimpl BitOrAssign<usize> for UBig
impl BitOrAssign<usize> for UBig
sourcefn bitor_assign(&mut self, rhs: usize)
fn bitor_assign(&mut self, rhs: usize)
|= operation. Read moresourceimpl BitXorAssign<&UBig> for UBig
impl BitXorAssign<&UBig> for UBig
sourcefn bitxor_assign(&mut self, rhs: &UBig)
fn bitxor_assign(&mut self, rhs: &UBig)
^= operation. Read moresourceimpl BitXorAssign<&u128> for UBig
impl BitXorAssign<&u128> for UBig
sourcefn bitxor_assign(&mut self, rhs: &u128)
fn bitxor_assign(&mut self, rhs: &u128)
^= operation. Read moresourceimpl BitXorAssign<&u16> for UBig
impl BitXorAssign<&u16> for UBig
sourcefn bitxor_assign(&mut self, rhs: &u16)
fn bitxor_assign(&mut self, rhs: &u16)
^= operation. Read moresourceimpl BitXorAssign<&u32> for UBig
impl BitXorAssign<&u32> for UBig
sourcefn bitxor_assign(&mut self, rhs: &u32)
fn bitxor_assign(&mut self, rhs: &u32)
^= operation. Read moresourceimpl BitXorAssign<&u64> for UBig
impl BitXorAssign<&u64> for UBig
sourcefn bitxor_assign(&mut self, rhs: &u64)
fn bitxor_assign(&mut self, rhs: &u64)
^= operation. Read moresourceimpl BitXorAssign<&u8> for UBig
impl BitXorAssign<&u8> for UBig
sourcefn bitxor_assign(&mut self, rhs: &u8)
fn bitxor_assign(&mut self, rhs: &u8)
^= operation. Read moresourceimpl BitXorAssign<&usize> for UBig
impl BitXorAssign<&usize> for UBig
sourcefn bitxor_assign(&mut self, rhs: &usize)
fn bitxor_assign(&mut self, rhs: &usize)
^= operation. Read moresourceimpl BitXorAssign<UBig> for UBig
impl BitXorAssign<UBig> for UBig
sourcefn bitxor_assign(&mut self, rhs: UBig)
fn bitxor_assign(&mut self, rhs: UBig)
^= operation. Read moresourceimpl BitXorAssign<u128> for UBig
impl BitXorAssign<u128> for UBig
sourcefn bitxor_assign(&mut self, rhs: u128)
fn bitxor_assign(&mut self, rhs: u128)
^= operation. Read moresourceimpl BitXorAssign<u16> for UBig
impl BitXorAssign<u16> for UBig
sourcefn bitxor_assign(&mut self, rhs: u16)
fn bitxor_assign(&mut self, rhs: u16)
^= operation. Read moresourceimpl BitXorAssign<u32> for UBig
impl BitXorAssign<u32> for UBig
sourcefn bitxor_assign(&mut self, rhs: u32)
fn bitxor_assign(&mut self, rhs: u32)
^= operation. Read moresourceimpl BitXorAssign<u64> for UBig
impl BitXorAssign<u64> for UBig
sourcefn bitxor_assign(&mut self, rhs: u64)
fn bitxor_assign(&mut self, rhs: u64)
^= operation. Read moresourceimpl BitXorAssign<u8> for UBig
impl BitXorAssign<u8> for UBig
sourcefn bitxor_assign(&mut self, rhs: u8)
fn bitxor_assign(&mut self, rhs: u8)
^= operation. Read moresourceimpl BitXorAssign<usize> for UBig
impl BitXorAssign<usize> for UBig
sourcefn bitxor_assign(&mut self, rhs: usize)
fn bitxor_assign(&mut self, rhs: usize)
^= operation. Read moresourceimpl<'de> Deserialize<'de> for UBig
impl<'de> Deserialize<'de> for UBig
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 UBig
impl<'l, 'r> Div<&'r ConstDivisor> for &'l UBig
sourceimpl<'r> Div<&'r ConstDivisor> for UBig
impl<'r> Div<&'r ConstDivisor> for UBig
sourceimpl<'r> DivAssign<&'r ConstDivisor> for UBig
impl<'r> DivAssign<&'r ConstDivisor> for UBig
sourcefn div_assign(&mut self, rhs: &'r ConstDivisor)
fn div_assign(&mut self, rhs: &'r ConstDivisor)
/= 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<&UBig> for UBig
impl DivAssign<&UBig> for UBig
sourcefn div_assign(&mut self, rhs: &UBig)
fn div_assign(&mut self, rhs: &UBig)
/= operation. Read moresourceimpl DivAssign<&u128> for UBig
impl DivAssign<&u128> for UBig
sourcefn div_assign(&mut self, rhs: &u128)
fn div_assign(&mut self, rhs: &u128)
/= operation. Read moresourceimpl DivAssign<&u16> for UBig
impl DivAssign<&u16> for UBig
sourcefn div_assign(&mut self, rhs: &u16)
fn div_assign(&mut self, rhs: &u16)
/= operation. Read moresourceimpl DivAssign<&u32> for UBig
impl DivAssign<&u32> for UBig
sourcefn div_assign(&mut self, rhs: &u32)
fn div_assign(&mut self, rhs: &u32)
/= operation. Read moresourceimpl DivAssign<&u64> for UBig
impl DivAssign<&u64> for UBig
sourcefn div_assign(&mut self, rhs: &u64)
fn div_assign(&mut self, rhs: &u64)
/= operation. Read moresourceimpl DivAssign<&u8> for UBig
impl DivAssign<&u8> for UBig
sourcefn div_assign(&mut self, rhs: &u8)
fn div_assign(&mut self, rhs: &u8)
/= operation. Read moresourceimpl DivAssign<&usize> for UBig
impl DivAssign<&usize> for UBig
sourcefn div_assign(&mut self, rhs: &usize)
fn div_assign(&mut self, rhs: &usize)
/= 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<UBig> for UBig
impl DivAssign<UBig> for UBig
sourcefn div_assign(&mut self, rhs: UBig)
fn div_assign(&mut self, rhs: UBig)
/= operation. Read moresourceimpl DivAssign<u128> for UBig
impl DivAssign<u128> for UBig
sourcefn div_assign(&mut self, rhs: u128)
fn div_assign(&mut self, rhs: u128)
/= operation. Read moresourceimpl DivAssign<u16> for UBig
impl DivAssign<u16> for UBig
sourcefn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
/= operation. Read moresourceimpl DivAssign<u32> for UBig
impl DivAssign<u32> for UBig
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
/= operation. Read moresourceimpl DivAssign<u64> for UBig
impl DivAssign<u64> for UBig
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/= operation. Read moresourceimpl DivAssign<u8> for UBig
impl DivAssign<u8> for UBig
sourcefn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
/= operation. Read moresourceimpl DivAssign<usize> for UBig
impl DivAssign<usize> for UBig
sourcefn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
/= operation. Read moresourceimpl<'l, 'r> DivRem<&'r ConstDivisor> for &'l UBig
impl<'l, 'r> DivRem<&'r ConstDivisor> for &'l UBig
sourceimpl<'r> DivRem<&'r ConstDivisor> for UBig
impl<'r> DivRem<&'r ConstDivisor> for UBig
sourceimpl<'r> DivRemAssign<&'r ConstDivisor> for UBig
impl<'r> DivRemAssign<&'r ConstDivisor> for UBig
type OutputRem = UBig
fn div_rem_assign(&mut self, rhs: &ConstDivisor) -> UBig
sourceimpl DivRemAssign<&UBig> for UBig
impl DivRemAssign<&UBig> for UBig
sourceimpl DivRemAssign<&u128> for UBig
impl DivRemAssign<&u128> for UBig
sourceimpl DivRemAssign<&u16> for UBig
impl DivRemAssign<&u16> for UBig
sourceimpl DivRemAssign<&u32> for UBig
impl DivRemAssign<&u32> for UBig
sourceimpl DivRemAssign<&u64> for UBig
impl DivRemAssign<&u64> for UBig
sourceimpl DivRemAssign<&u8> for UBig
impl DivRemAssign<&u8> for UBig
sourceimpl DivRemAssign<&usize> for UBig
impl DivRemAssign<&usize> for UBig
sourceimpl DivRemAssign<UBig> for UBig
impl DivRemAssign<UBig> for UBig
sourceimpl DivRemAssign<u128> for UBig
impl DivRemAssign<u128> for UBig
sourceimpl DivRemAssign<u16> for UBig
impl DivRemAssign<u16> for UBig
sourceimpl DivRemAssign<u32> for UBig
impl DivRemAssign<u32> for UBig
sourceimpl DivRemAssign<u64> for UBig
impl DivRemAssign<u64> for UBig
sourceimpl DivRemAssign<u8> for UBig
impl DivRemAssign<u8> for UBig
sourceimpl DivRemAssign<usize> for UBig
impl DivRemAssign<usize> for UBig
sourceimpl<'l, 'r> DivRemEuclid<&'r UBig> for &'l UBig
impl<'l, 'r> DivRemEuclid<&'r UBig> for &'l UBig
sourceimpl<'r> DivRemEuclid<&'r UBig> for UBig
impl<'r> DivRemEuclid<&'r UBig> for UBig
sourceimpl<'l> DivRemEuclid<UBig> for &'l UBig
impl<'l> DivRemEuclid<UBig> for &'l UBig
sourceimpl DivRemEuclid<UBig> for UBig
impl DivRemEuclid<UBig> for UBig
sourceimpl EstimatedLog2 for UBig
impl EstimatedLog2 for UBig
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 UBig
impl Euclid for UBig
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 UBig> for &'l UBig
impl<'l, 'r> ExtendedGcd<&'r UBig> for &'l UBig
sourceimpl<'r> ExtendedGcd<&'r UBig> for UBig
impl<'r> ExtendedGcd<&'r UBig> for UBig
sourceimpl<'l> ExtendedGcd<UBig> for &'l UBig
impl<'l> ExtendedGcd<UBig> for &'l UBig
sourceimpl ExtendedGcd<UBig> for UBig
impl ExtendedGcd<UBig> for UBig
sourceimpl FromPrimitive for UBig
impl FromPrimitive for UBig
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 UBig
impl FromStr for UBig
type Err = ParseError
type Err = ParseError
sourceimpl Integer for UBig
impl Integer for UBig
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 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 &UBig
impl IntoModulo for &UBig
fn into_modulo(self, ring: &ModuloRing) -> Modulo<'_>
sourceimpl IntoModulo for UBig
impl IntoModulo for UBig
fn into_modulo(self, ring: &ModuloRing) -> Modulo<'_>
sourceimpl 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<&UBig> for UBig
impl MulAssign<&UBig> for UBig
sourcefn mul_assign(&mut self, rhs: &UBig)
fn mul_assign(&mut self, rhs: &UBig)
*= operation. Read moresourceimpl MulAssign<&u128> for UBig
impl MulAssign<&u128> for UBig
sourcefn mul_assign(&mut self, rhs: &u128)
fn mul_assign(&mut self, rhs: &u128)
*= operation. Read moresourceimpl MulAssign<&u16> for UBig
impl MulAssign<&u16> for UBig
sourcefn mul_assign(&mut self, rhs: &u16)
fn mul_assign(&mut self, rhs: &u16)
*= operation. Read moresourceimpl MulAssign<&u32> for UBig
impl MulAssign<&u32> for UBig
sourcefn mul_assign(&mut self, rhs: &u32)
fn mul_assign(&mut self, rhs: &u32)
*= operation. Read moresourceimpl MulAssign<&u64> for UBig
impl MulAssign<&u64> for UBig
sourcefn mul_assign(&mut self, rhs: &u64)
fn mul_assign(&mut self, rhs: &u64)
*= operation. Read moresourceimpl MulAssign<&u8> for UBig
impl MulAssign<&u8> for UBig
sourcefn mul_assign(&mut self, rhs: &u8)
fn mul_assign(&mut self, rhs: &u8)
*= operation. Read moresourceimpl MulAssign<&usize> for UBig
impl MulAssign<&usize> for UBig
sourcefn mul_assign(&mut self, rhs: &usize)
fn mul_assign(&mut self, rhs: &usize)
*= 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<UBig> for UBig
impl MulAssign<UBig> for UBig
sourcefn mul_assign(&mut self, rhs: UBig)
fn mul_assign(&mut self, rhs: UBig)
*= operation. Read moresourceimpl MulAssign<u128> for UBig
impl MulAssign<u128> for UBig
sourcefn mul_assign(&mut self, rhs: u128)
fn mul_assign(&mut self, rhs: u128)
*= operation. Read moresourceimpl MulAssign<u16> for UBig
impl MulAssign<u16> for UBig
sourcefn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
*= operation. Read moresourceimpl MulAssign<u32> for UBig
impl MulAssign<u32> for UBig
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
*= operation. Read moresourceimpl MulAssign<u64> for UBig
impl MulAssign<u64> for UBig
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*= operation. Read moresourceimpl MulAssign<u8> for UBig
impl MulAssign<u8> for UBig
sourcefn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
*= operation. Read moresourceimpl MulAssign<usize> for UBig
impl MulAssign<usize> for UBig
sourcefn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
*= operation. Read moresourceimpl Num for UBig
impl Num for UBig
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<UBig> for i128
impl NumOrd<UBig> for i128
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for i16
impl NumOrd<UBig> for i16
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for i32
impl NumOrd<UBig> for i32
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for i64
impl NumOrd<UBig> for i64
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for i8
impl NumOrd<UBig> for i8
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for isize
impl NumOrd<UBig> for isize
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for u128
impl NumOrd<UBig> for u128
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for u16
impl NumOrd<UBig> for u16
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for u32
impl NumOrd<UBig> for u32
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for u64
impl NumOrd<UBig> for u64
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for u8
impl NumOrd<UBig> for u8
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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<UBig> for usize
impl NumOrd<UBig> for usize
sourcefn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> 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 UBig
impl NumOrd<i128> for UBig
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 UBig
impl NumOrd<i16> for UBig
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 UBig
impl NumOrd<i32> for UBig
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 UBig
impl NumOrd<i64> for UBig
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 UBig
impl NumOrd<i8> for UBig
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 UBig
impl NumOrd<isize> for UBig
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 UBig
impl NumOrd<u128> for UBig
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 UBig
impl NumOrd<u16> for UBig
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 UBig
impl NumOrd<u32> for UBig
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 UBig
impl NumOrd<u64> for UBig
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 UBig
impl NumOrd<u8> for UBig
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 UBig
impl NumOrd<usize> for UBig
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 UBig
impl Ord for UBig
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 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<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<UBig> for UBig
impl PartialOrd<UBig> for UBig
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<UBig> for i128
impl PartialOrd<UBig> for i128
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<UBig> for i16
impl PartialOrd<UBig> for i16
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<UBig> for i32
impl PartialOrd<UBig> for i32
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<UBig> for i64
impl PartialOrd<UBig> for i64
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<UBig> for i8
impl PartialOrd<UBig> for i8
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<UBig> for isize
impl PartialOrd<UBig> for isize
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<UBig> for u128
impl PartialOrd<UBig> for u128
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<UBig> for u16
impl PartialOrd<UBig> for u16
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<UBig> for u32
impl PartialOrd<UBig> for u32
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<UBig> for u64
impl PartialOrd<UBig> for u64
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<UBig> for u8
impl PartialOrd<UBig> for u8
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<UBig> for usize
impl PartialOrd<UBig> for usize
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 UBig
impl PartialOrd<i128> for UBig
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 UBig
impl PartialOrd<i16> for UBig
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 UBig
impl PartialOrd<i32> for UBig
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 UBig
impl PartialOrd<i64> for UBig
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 UBig
impl PartialOrd<i8> for UBig
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 UBig
impl PartialOrd<isize> for UBig
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 UBig
impl PartialOrd<u128> for UBig
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 UBig
impl PartialOrd<u16> for UBig
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 UBig
impl PartialOrd<u32> for UBig
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 UBig
impl PartialOrd<u64> for UBig
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 UBig
impl PartialOrd<u8> for UBig
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 UBig
impl PartialOrd<usize> for UBig
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 PowerOfTwo for UBig
impl PowerOfTwo for UBig
sourcefn is_power_of_two(&self) -> bool
fn is_power_of_two(&self) -> bool
2^k)sourcefn next_power_of_two(self) -> UBig
fn next_power_of_two(self) -> UBig
sourceimpl<'l, 'r> Rem<&'r ConstDivisor> for &'l UBig
impl<'l, 'r> Rem<&'r ConstDivisor> for &'l UBig
sourceimpl<'r> Rem<&'r ConstDivisor> for UBig
impl<'r> Rem<&'r ConstDivisor> for UBig
sourceimpl<'r> RemAssign<&'r ConstDivisor> for UBig
impl<'r> RemAssign<&'r ConstDivisor> for UBig
sourcefn rem_assign(&mut self, rhs: &'r ConstDivisor)
fn rem_assign(&mut self, rhs: &'r ConstDivisor)
%= 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<&UBig> for UBig
impl RemAssign<&UBig> for UBig
sourcefn rem_assign(&mut self, rhs: &UBig)
fn rem_assign(&mut self, rhs: &UBig)
%= 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<UBig> for UBig
impl RemAssign<UBig> for UBig
sourcefn rem_assign(&mut self, rhs: UBig)
fn rem_assign(&mut self, rhs: UBig)
%= operation. Read moresourceimpl Roots for UBig
impl Roots for UBig
sourceimpl SampleUniform for UBig
impl SampleUniform for UBig
type Sampler = UniformUBig
type Sampler = UniformUBig
UniformSampler implementation supporting type X.sourceimpl ShlAssign<&usize> for UBig
impl ShlAssign<&usize> for UBig
sourcefn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<= operation. Read moresourceimpl ShlAssign<usize> for UBig
impl ShlAssign<usize> for UBig
sourcefn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<= operation. Read moresourceimpl ShrAssign<&usize> for UBig
impl ShrAssign<&usize> for UBig
sourcefn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>= operation. Read moresourceimpl ShrAssign<usize> for UBig
impl ShrAssign<usize> for UBig
sourcefn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>= 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<&UBig> for UBig
impl SubAssign<&UBig> for UBig
sourcefn sub_assign(&mut self, rhs: &UBig)
fn sub_assign(&mut self, rhs: &UBig)
-= operation. Read moresourceimpl SubAssign<&u128> for UBig
impl SubAssign<&u128> for UBig
sourcefn sub_assign(&mut self, rhs: &u128)
fn sub_assign(&mut self, rhs: &u128)
-= operation. Read moresourceimpl SubAssign<&u16> for UBig
impl SubAssign<&u16> for UBig
sourcefn sub_assign(&mut self, rhs: &u16)
fn sub_assign(&mut self, rhs: &u16)
-= operation. Read moresourceimpl SubAssign<&u32> for UBig
impl SubAssign<&u32> for UBig
sourcefn sub_assign(&mut self, rhs: &u32)
fn sub_assign(&mut self, rhs: &u32)
-= operation. Read moresourceimpl SubAssign<&u64> for UBig
impl SubAssign<&u64> for UBig
sourcefn sub_assign(&mut self, rhs: &u64)
fn sub_assign(&mut self, rhs: &u64)
-= operation. Read moresourceimpl SubAssign<&u8> for UBig
impl SubAssign<&u8> for UBig
sourcefn sub_assign(&mut self, rhs: &u8)
fn sub_assign(&mut self, rhs: &u8)
-= operation. Read moresourceimpl SubAssign<&usize> for UBig
impl SubAssign<&usize> for UBig
sourcefn sub_assign(&mut self, rhs: &usize)
fn sub_assign(&mut self, rhs: &usize)
-= 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<UBig> for UBig
impl SubAssign<UBig> for UBig
sourcefn sub_assign(&mut self, rhs: UBig)
fn sub_assign(&mut self, rhs: UBig)
-= operation. Read moresourceimpl SubAssign<u128> for UBig
impl SubAssign<u128> for UBig
sourcefn sub_assign(&mut self, rhs: u128)
fn sub_assign(&mut self, rhs: u128)
-= operation. Read moresourceimpl SubAssign<u16> for UBig
impl SubAssign<u16> for UBig
sourcefn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
-= operation. Read moresourceimpl SubAssign<u32> for UBig
impl SubAssign<u32> for UBig
sourcefn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
-= operation. Read moresourceimpl SubAssign<u64> for UBig
impl SubAssign<u64> for UBig
sourcefn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
-= operation. Read moresourceimpl SubAssign<u8> for UBig
impl SubAssign<u8> for UBig
sourcefn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
-= operation. Read moresourceimpl SubAssign<usize> for UBig
impl SubAssign<usize> for UBig
sourcefn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
-= operation. Read moresourceimpl ToPrimitive for UBig
impl ToPrimitive for UBig
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<&UBig> for i128
impl TryFrom<&UBig> for i128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for i16
impl TryFrom<&UBig> for i16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for i32
impl TryFrom<&UBig> for i32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for i64
impl TryFrom<&UBig> for i64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for i8
impl TryFrom<&UBig> for i8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for isize
impl TryFrom<&UBig> for isize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for u128
impl TryFrom<&UBig> for u128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for u16
impl TryFrom<&UBig> for u16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for u32
impl TryFrom<&UBig> for u32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for u64
impl TryFrom<&UBig> for u64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for u8
impl TryFrom<&UBig> for u8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<&UBig> for usize
impl TryFrom<&UBig> 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<UBig> for i128
impl TryFrom<UBig> for i128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for i16
impl TryFrom<UBig> for i16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for i32
impl TryFrom<UBig> for i32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for i64
impl TryFrom<UBig> for i64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for i8
impl TryFrom<UBig> for i8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for isize
impl TryFrom<UBig> for isize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for u128
impl TryFrom<UBig> for u128
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for u16
impl TryFrom<UBig> for u16
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for u32
impl TryFrom<UBig> for u32
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for u64
impl TryFrom<UBig> for u64
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for u8
impl TryFrom<UBig> for u8
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<UBig> for usize
impl TryFrom<UBig> for usize
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<i128> for UBig
impl TryFrom<i128> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<i16> for UBig
impl TryFrom<i16> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<i32> for UBig
impl TryFrom<i32> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<i64> for UBig
impl TryFrom<i64> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<i8> for UBig
impl TryFrom<i8> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
sourceimpl TryFrom<isize> for UBig
impl TryFrom<isize> for UBig
type Error = OutOfBoundsError
type Error = OutOfBoundsError
impl Eq for UBig
impl StructuralEq for UBig
impl StructuralPartialEq for UBig
impl Unsigned for UBig
Auto Trait Implementations
impl RefUnwindSafe for UBig
impl Send for UBig
impl Sync for UBig
impl Unpin for UBig
impl UnwindSafe for UBig
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