Struct UBig

Source
pub struct UBig(/* private fields */);
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:

  1. Use predifined constants (e.g. UBig::ZERO, UBig::ONE).
  2. Use the literal macro ubig! defined in the dashu-macro crate.
  3. 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§

Source§

impl UBig

Source

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));
Source

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));
Source

pub const 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);
§Availability

Const since Rust 1.64

Source

pub const fn trailing_ones(&self) -> Option<usize>

Returns the number of trailing ones in the binary representation.

In other words, it is the number of trailing zeros of it added by one.

This method never returns None.

§Examples
assert_eq!(UBig::from(17u8).trailing_ones(), Some(1));
assert_eq!(UBig::from(48u8).trailing_ones(), Some(0));
assert_eq!(UBig::from(0b101001111u16).trailing_ones(), Some(4));
assert_eq!(UBig::ZERO.trailing_ones(), Some(0));
§Availability

Const since Rust 1.64

Source

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));
Source

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);
Source

pub fn count_ones(&self) -> usize

Count the 1 bits in the integer

§Examples
assert_eq!(UBig::from(0b10100011u8).count_ones(), 4);
assert_eq!(UBig::from(0x90ffff3450897234u64).count_ones(), 33);

let x = (UBig::ONE << 150) - 1u8;
assert_eq!(x.count_ones(), x.bit_len());
Source

pub fn count_zeros(&self) -> Option<usize>

Count the 0 bits in the integer after the leading bit 1.

If the integer is zero, None will be returned.

§Examples
assert_eq!(UBig::from(0b10100011u8).count_zeros(), Some(4));
assert_eq!(UBig::from(0x90ffff3450897234u64).count_zeros(), Some(31));

let x = (UBig::ONE << 150) - 1u8;
assert_eq!(x.count_zeros(), Some(0));
Source§

impl UBig

Source

pub fn from_le_bytes(bytes: &[u8]) -> UBig

Construct from little-endian bytes.

§Examples
assert_eq!(UBig::from_le_bytes(&[3, 2, 1]), UBig::from(0x010203u32));
Source

pub fn from_be_bytes(bytes: &[u8]) -> UBig

Construct from big-endian bytes.

§Examples
assert_eq!(UBig::from_be_bytes(&[1, 2, 3]), UBig::from(0x010203u32));
Source

pub fn to_le_bytes(&self) -> Box<[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]);
Source

pub fn to_be_bytes(&self) -> Box<[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]);
Source

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);
Source

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);
Source

pub const fn as_ibig(&self) -> &IBig

Regard the number as a IBig number and return a reference of IBig type.

§Examples
assert_eq!(UBig::from(123u8).as_ibig(), &IBig::from(123));
Source§

impl UBig

Source

pub fn is_multiple_of(&self, divisor: &Self) -> bool

Determine whether the integer is perfectly divisible by the divisor.

§Examples
let a = UBig::from(24u8);
let b = UBig::from(6u8);
assert!(a.is_multiple_of(&b));
§Panics

Panics if the divisor is zero.

Source

pub const fn is_multiple_of_const(&self, divisor: DoubleWord) -> bool

A const version of UBig::is_multiple_of, but only accepts DoubleWord divisors.

§Availability

Since Rust 1.64

Source§

impl UBig

Source

pub fn in_radix(&self, radix: u32) -> InRadix<'_>

Representation in a given radix.

§Panics

Panics if radix is not between 2 and 36 inclusive.

§Examples
assert_eq!(format!("{}", UBig::from(83u8).in_radix(3)), "10002");
assert_eq!(format!("{:+010}", UBig::from(35u8).in_radix(36)), "+00000000z");
Source§

impl UBig

Source

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);
Source§

impl UBig

Source

pub fn sqr(&self) -> UBig

Calculate the square of the number (x * x).

§Examples
assert_eq!(UBig::from(3u8).sqr(), UBig::from(9u8));
Source

pub fn cubic(&self) -> UBig

Compute the cubic of the number (self * self * self).

§Examples
assert_eq!(UBig::from(3u8).cubic(), UBig::from(27u8));
Source§

impl UBig

Source

pub fn from_str_radix(src: &str, radix: u32) -> Result<UBig, ParseError>

Convert a string in a given base to UBig.

src may contain an optional + prefix. Digits 10-35 are represented by a-z or A-Z.

§Examples
assert_eq!(UBig::from_str_radix("+7ab", 32)?, UBig::from(7499u16));
Source

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.

It’s equivalent to UBig::from_str_with_radix_default with 10 as the default radix.

Source

pub fn from_str_with_radix_default( src: &str, default_radix: u32, ) -> Result<(UBig, u32), ParseError>

Convert a string with an optional radix prefix to UBig, returns the parsed integer and radix. If no prefix is present, then the default radix input will be used for parsing.

src may contain an optional + before the radix prefix.

Allowed prefixes: 0b for binary, 0o for octal, 0x for hexadecimal.

§Examples
assert_eq!(UBig::from_str_with_radix_default("+0o17", 10)?, (UBig::from(0o17u8), 8));
assert_eq!(UBig::from_str_with_radix_default("0x1f", 10)?.0, UBig::from(0x1fu8));
Source§

impl UBig

Source

pub fn pow(&self, exp: usize) -> UBig

Raises self to the power of exp.

§Examples
assert_eq!(UBig::from(3u8).pow(3), UBig::from(27u8));
Source§

impl UBig

Source

pub fn remove(&mut self, factor: &UBig) -> Option<usize>

Divide out all multiples of the factor from the integer, returns the exponent of the removed factor.

For self = 0 or factor = 0 or 1, this method returns None.

Source§

impl UBig

Source

pub fn nth_root(&self, n: usize) -> UBig

Calculate the nth-root of the integer rounding towards zero

§Examples
assert_eq!(UBig::from(4u8).nth_root(2), UBig::from(2u8));
assert_eq!(UBig::from(4u8).nth_root(3), UBig::from(1u8));
assert_eq!(UBig::from(1024u16).nth_root(5), UBig::from(4u8));
§Panics

If n is zero

Source§

impl UBig

Source

pub const ZERO: Self

UBig with value 0

Source

pub const ONE: Self

UBig with value 1

Source

pub fn as_words(&self) -> &[Word]

Get the raw representation in Words.

If the number is zero, then empty slice will be returned.

§Examples
assert_eq!(UBig::ZERO.as_words(), &[] as &[Word]);
assert_eq!(UBig::ONE.as_words(), &[1]);
Source

pub const fn from_word(word: Word) -> Self

Create a UBig from a single Word.

§Examples
const ZERO: UBig = UBig::from_word(0);
assert_eq!(ZERO, UBig::ZERO);
const ONE: UBig = UBig::from_word(1);
assert_eq!(ONE, UBig::ONE);
Source

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);
Source

pub fn from_words(words: &[Word]) -> Self

Convert a sequence of Words into a UBig

§Examples
assert_eq!(UBig::from_words(&[] as &[Word]), UBig::ZERO);
assert_eq!(UBig::from_words(&[1]), UBig::ONE);
assert_eq!(UBig::from_words(&[1, 1]), (UBig::ONE << Word::BITS as usize) + UBig::ONE);
Source

pub const fn is_zero(&self) -> bool

Check whether the value is 0

§Examples
assert!(UBig::ZERO.is_zero());
assert!(!UBig::ONE.is_zero());
Source

pub const fn is_one(&self) -> bool

Check whether the value is 1

§Examples
assert!(!UBig::ZERO.is_one());
assert!(UBig::ONE.is_one());

Trait Implementations§

Source§

impl AbsEq<IBig> for UBig

Source§

fn abs_eq(&self, rhs: &IBig) -> bool

Source§

impl AbsEq<UBig> for IBig

Source§

fn abs_eq(&self, rhs: &UBig) -> bool

Source§

impl AbsEq for UBig

Source§

fn abs_eq(&self, rhs: &Self) -> bool

Source§

impl AbsOrd<IBig> for UBig

Source§

fn abs_cmp(&self, rhs: &IBig) -> Ordering

Source§

impl AbsOrd<UBig> for IBig

Source§

fn abs_cmp(&self, rhs: &UBig) -> Ordering

Source§

impl AbsOrd for UBig

Source§

fn abs_cmp(&self, rhs: &Self) -> Ordering

Source§

impl<'l, 'r> Add<&'r IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &IBig) -> IBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &IBig) -> IBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> IBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> IBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for u128

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for u16

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for u32

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for u64

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for u8

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for usize

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u128) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r u128> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u128) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u16) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r u16> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u16) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r u32> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u64) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r u64> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u64) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u8) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r u8> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u8) -> UBig

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &usize) -> UBig

Performs the + operation. Read more
Source§

impl<'r> Add<&'r usize> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &usize) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: IBig) -> IBig

Performs the + operation. Read more
Source§

impl Add<IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: IBig) -> IBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> IBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl Add<UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> IBig

Performs the + operation. Read more
Source§

impl Add<UBig> for u128

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl Add<UBig> for u16

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl Add<UBig> for u32

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl Add<UBig> for u64

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl Add<UBig> for u8

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl Add<UBig> for usize

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u128) -> UBig

Performs the + operation. Read more
Source§

impl Add<u128> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u128) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> UBig

Performs the + operation. Read more
Source§

impl Add<u16> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> UBig

Performs the + operation. Read more
Source§

impl Add<u32> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> UBig

Performs the + operation. Read more
Source§

impl Add<u64> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> UBig

Performs the + operation. Read more
Source§

impl Add<u8> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> UBig

Performs the + operation. Read more
Source§

impl<'l> Add<usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: usize) -> UBig

Performs the + operation. Read more
Source§

impl Add<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: usize) -> UBig

Performs the + operation. Read more
Source§

impl Add for UBig

Source§

type Output = UBig

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> UBig

Performs the + operation. Read more
Source§

impl AddAssign<&UBig> for IBig

Source§

fn add_assign(&mut self, rhs: &UBig)

Performs the += operation. Read more
Source§

impl AddAssign<&UBig> for UBig

Source§

fn add_assign(&mut self, rhs: &UBig)

Performs the += operation. Read more
Source§

impl AddAssign<&u128> for UBig

Source§

fn add_assign(&mut self, rhs: &u128)

Performs the += operation. Read more
Source§

impl AddAssign<&u16> for UBig

Source§

fn add_assign(&mut self, rhs: &u16)

Performs the += operation. Read more
Source§

impl AddAssign<&u32> for UBig

Source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
Source§

impl AddAssign<&u64> for UBig

Source§

fn add_assign(&mut self, rhs: &u64)

Performs the += operation. Read more
Source§

impl AddAssign<&u8> for UBig

Source§

fn add_assign(&mut self, rhs: &u8)

Performs the += operation. Read more
Source§

impl AddAssign<&usize> for UBig

Source§

fn add_assign(&mut self, rhs: &usize)

Performs the += operation. Read more
Source§

impl AddAssign<UBig> for IBig

Source§

fn add_assign(&mut self, rhs: UBig)

Performs the += operation. Read more
Source§

impl AddAssign<u128> for UBig

Source§

fn add_assign(&mut self, rhs: u128)

Performs the += operation. Read more
Source§

impl AddAssign<u16> for UBig

Source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
Source§

impl AddAssign<u32> for UBig

Source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
Source§

impl AddAssign<u64> for UBig

Source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
Source§

impl AddAssign<u8> for UBig

Source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
Source§

impl AddAssign<usize> for UBig

Source§

fn add_assign(&mut self, rhs: usize)

Performs the += operation. Read more
Source§

impl AddAssign for UBig

Source§

fn add_assign(&mut self, rhs: UBig)

Performs the += operation. Read more
Source§

impl Binary for UBig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> UBig

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l u128

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u128

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l u16

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u16

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l u32

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u32

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l u64

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u64

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u8

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r UBig> for &'l usize

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> usize

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> UBig

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for u128

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u128

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for u16

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u16

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for u32

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u32

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for u64

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u64

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> u8

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r UBig> for usize

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &UBig) -> usize

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r u128> for &'l UBig

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u128) -> u128

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r u128> for UBig

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u128) -> u128

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r u16> for &'l UBig

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u16) -> u16

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r u16> for UBig

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u16) -> u16

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r u32> for &'l UBig

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u32) -> u32

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r u32> for UBig

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u32) -> u32

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r u64> for &'l UBig

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u64) -> u64

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r u64> for UBig

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u64) -> u64

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r u8> for &'l UBig

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u8) -> u8

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r u8> for UBig

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u8) -> u8

Performs the & operation. Read more
Source§

impl<'l, 'r> BitAnd<&'r usize> for &'l UBig

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &usize) -> usize

Performs the & operation. Read more
Source§

impl<'r> BitAnd<&'r usize> for UBig

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &usize) -> usize

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> UBig

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l u128

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u128

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l u16

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u16

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l u32

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u32

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l u64

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u64

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u8

Performs the & operation. Read more
Source§

impl<'l> BitAnd<UBig> for &'l usize

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> usize

Performs the & operation. Read more
Source§

impl BitAnd<UBig> for u128

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u128

Performs the & operation. Read more
Source§

impl BitAnd<UBig> for u16

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u16

Performs the & operation. Read more
Source§

impl BitAnd<UBig> for u32

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u32

Performs the & operation. Read more
Source§

impl BitAnd<UBig> for u64

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u64

Performs the & operation. Read more
Source§

impl BitAnd<UBig> for u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> u8

Performs the & operation. Read more
Source§

impl BitAnd<UBig> for usize

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> usize

Performs the & operation. Read more
Source§

impl<'l> BitAnd<u128> for &'l UBig

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u128) -> u128

Performs the & operation. Read more
Source§

impl BitAnd<u128> for UBig

Source§

type Output = u128

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u128) -> u128

Performs the & operation. Read more
Source§

impl<'l> BitAnd<u16> for &'l UBig

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u16) -> u16

Performs the & operation. Read more
Source§

impl BitAnd<u16> for UBig

Source§

type Output = u16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u16) -> u16

Performs the & operation. Read more
Source§

impl<'l> BitAnd<u32> for &'l UBig

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> u32

Performs the & operation. Read more
Source§

impl BitAnd<u32> for UBig

Source§

type Output = u32

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> u32

Performs the & operation. Read more
Source§

impl<'l> BitAnd<u64> for &'l UBig

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u64) -> u64

Performs the & operation. Read more
Source§

impl BitAnd<u64> for UBig

Source§

type Output = u64

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u64) -> u64

Performs the & operation. Read more
Source§

impl<'l> BitAnd<u8> for &'l UBig

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u8) -> u8

Performs the & operation. Read more
Source§

impl BitAnd<u8> for UBig

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u8) -> u8

Performs the & operation. Read more
Source§

impl<'l> BitAnd<usize> for &'l UBig

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: usize) -> usize

Performs the & operation. Read more
Source§

impl BitAnd<usize> for UBig

Source§

type Output = usize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: usize) -> usize

Performs the & operation. Read more
Source§

impl BitAnd for UBig

Source§

type Output = UBig

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: UBig) -> UBig

Performs the & operation. Read more
Source§

impl BitAndAssign<&UBig> for UBig

Source§

fn bitand_assign(&mut self, rhs: &UBig)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u128> for UBig

Source§

fn bitand_assign(&mut self, rhs: &u128)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u16> for UBig

Source§

fn bitand_assign(&mut self, rhs: &u16)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u32> for UBig

Source§

fn bitand_assign(&mut self, rhs: &u32)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u64> for UBig

Source§

fn bitand_assign(&mut self, rhs: &u64)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u8> for UBig

Source§

fn bitand_assign(&mut self, rhs: &u8)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&usize> for UBig

Source§

fn bitand_assign(&mut self, rhs: &usize)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u128> for UBig

Source§

fn bitand_assign(&mut self, rhs: u128)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u16> for UBig

Source§

fn bitand_assign(&mut self, rhs: u16)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u32> for UBig

Source§

fn bitand_assign(&mut self, rhs: u32)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u64> for UBig

Source§

fn bitand_assign(&mut self, rhs: u64)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u8> for UBig

Source§

fn bitand_assign(&mut self, rhs: u8)

Performs the &= operation. Read more
Source§

impl BitAndAssign<usize> for UBig

Source§

fn bitand_assign(&mut self, rhs: usize)

Performs the &= operation. Read more
Source§

impl BitAndAssign for UBig

Source§

fn bitand_assign(&mut self, rhs: UBig)

Performs the &= operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for u128

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for u16

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for u32

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for u64

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for u8

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r UBig> for usize

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u128) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r u128> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u128) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u16) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r u16> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u16) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u32) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r u32> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u32) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u64) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r u64> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u64) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u8) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r u8> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u8) -> UBig

Performs the | operation. Read more
Source§

impl<'l, 'r> BitOr<&'r usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &usize) -> UBig

Performs the | operation. Read more
Source§

impl<'r> BitOr<&'r usize> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &usize) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<UBig> for u128

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<UBig> for u16

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<UBig> for u32

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<UBig> for u64

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<UBig> for u8

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<UBig> for usize

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u128) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<u128> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u128) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u16) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<u16> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u16) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<u32> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u64) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<u64> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u64) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u8) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<u8> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u8) -> UBig

Performs the | operation. Read more
Source§

impl<'l> BitOr<usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: usize) -> UBig

Performs the | operation. Read more
Source§

impl BitOr<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: usize) -> UBig

Performs the | operation. Read more
Source§

impl BitOr for UBig

Source§

type Output = UBig

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: UBig) -> UBig

Performs the | operation. Read more
Source§

impl BitOrAssign<&UBig> for UBig

Source§

fn bitor_assign(&mut self, rhs: &UBig)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u128> for UBig

Source§

fn bitor_assign(&mut self, rhs: &u128)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u16> for UBig

Source§

fn bitor_assign(&mut self, rhs: &u16)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u32> for UBig

Source§

fn bitor_assign(&mut self, rhs: &u32)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u64> for UBig

Source§

fn bitor_assign(&mut self, rhs: &u64)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u8> for UBig

Source§

fn bitor_assign(&mut self, rhs: &u8)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&usize> for UBig

Source§

fn bitor_assign(&mut self, rhs: &usize)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u128> for UBig

Source§

fn bitor_assign(&mut self, rhs: u128)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u16> for UBig

Source§

fn bitor_assign(&mut self, rhs: u16)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u32> for UBig

Source§

fn bitor_assign(&mut self, rhs: u32)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u64> for UBig

Source§

fn bitor_assign(&mut self, rhs: u64)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u8> for UBig

Source§

fn bitor_assign(&mut self, rhs: u8)

Performs the |= operation. Read more
Source§

impl BitOrAssign<usize> for UBig

Source§

fn bitor_assign(&mut self, rhs: usize)

Performs the |= operation. Read more
Source§

impl BitOrAssign for UBig

Source§

fn bitor_assign(&mut self, rhs: UBig)

Performs the |= operation. Read more
Source§

impl BitTest for UBig

Source§

fn bit(&self, n: usize) -> bool

Returns true if the n-th bit is set in its two’s complement binary representation, n starts from 0.
Source§

fn bit_len(&self) -> usize

Effective bit length of the binary representation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for u128

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for u16

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for u32

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for u64

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for u8

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r UBig> for usize

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u128) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r u128> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u128) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u16) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r u16> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u16) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u32) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r u32> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u32) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u64) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r u64> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u64) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u8) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r u8> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u8) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l, 'r> BitXor<&'r usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &usize) -> UBig

Performs the ^ operation. Read more
Source§

impl<'r> BitXor<&'r usize> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &usize) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<UBig> for u128

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<UBig> for u16

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<UBig> for u32

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<UBig> for u64

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<UBig> for u8

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<UBig> for usize

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u128) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<u128> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u128) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u16) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<u16> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u16) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<u32> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u64) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<u64> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u64) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u8) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<u8> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u8) -> UBig

Performs the ^ operation. Read more
Source§

impl<'l> BitXor<usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: usize) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: usize) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXor for UBig

Source§

type Output = UBig

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: UBig) -> UBig

Performs the ^ operation. Read more
Source§

impl BitXorAssign<&UBig> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &UBig)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u128> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &u128)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u16> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &u16)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u32> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &u32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u64> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &u64)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u8> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &u8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&usize> for UBig

Source§

fn bitxor_assign(&mut self, rhs: &usize)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u128> for UBig

Source§

fn bitxor_assign(&mut self, rhs: u128)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u16> for UBig

Source§

fn bitxor_assign(&mut self, rhs: u16)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u32> for UBig

Source§

fn bitxor_assign(&mut self, rhs: u32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u64> for UBig

Source§

fn bitxor_assign(&mut self, rhs: u64)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u8> for UBig

Source§

fn bitxor_assign(&mut self, rhs: u8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<usize> for UBig

Source§

fn bitxor_assign(&mut self, rhs: usize)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for UBig

Source§

fn bitxor_assign(&mut self, rhs: UBig)

Performs the ^= operation. Read more
Source§

impl Clone for UBig

Source§

fn clone(&self) -> UBig

Returns a duplicate of the value. Read more
Source§

fn clone_from(&mut self, source: &UBig)

Performs copy-assignment from source. Read more
Source§

impl CubicRoot for UBig

Source§

type Output = UBig

Source§

fn cbrt(&self) -> Self::Output

Source§

impl CubicRootRem for UBig

Source§

type Output = UBig

Source§

fn cbrt_rem(&self) -> (Self::Output, Self)

Source§

impl Debug for UBig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UBig

Source§

fn default() -> UBig

Default value: 0.

Source§

impl<'de> Deserialize<'de> for UBig

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for UBig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Distribution<UBig> for UniformBelow<'a>

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> UBig

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl Distribution<UBig> for UniformBits

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> UBig

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl<'l, 'r> Div<&'r ConstDivisor> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &ConstDivisor) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r ConstDivisor> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &ConstDivisor) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &IBig) -> IBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &IBig) -> IBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UBig) -> IBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UBig) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UBig) -> IBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UBig) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u128) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r u128> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u128) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u16) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r u16> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u16) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r u32> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u64) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r u64> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u64) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u8) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r u8> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u8) -> UBig

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &usize) -> UBig

Performs the / operation. Read more
Source§

impl<'r> Div<&'r usize> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &usize) -> UBig

Performs the / operation. Read more
Source§

impl<'l> Div<IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: IBig) -> IBig

Performs the / operation. Read more
Source§

impl Div<IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: IBig) -> IBig

Performs the / operation. Read more
Source§

impl<'l> Div<UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UBig) -> IBig

Performs the / operation. Read more
Source§

impl<'l> Div<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UBig) -> UBig

Performs the / operation. Read more
Source§

impl Div<UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UBig) -> IBig

Performs the / operation. Read more
Source§

impl<'l> Div<u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u128) -> UBig

Performs the / operation. Read more
Source§

impl Div<u128> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u128) -> UBig

Performs the / operation. Read more
Source§

impl<'l> Div<u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u16) -> UBig

Performs the / operation. Read more
Source§

impl Div<u16> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u16) -> UBig

Performs the / operation. Read more
Source§

impl<'l> Div<u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> UBig

Performs the / operation. Read more
Source§

impl Div<u32> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> UBig

Performs the / operation. Read more
Source§

impl<'l> Div<u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u64) -> UBig

Performs the / operation. Read more
Source§

impl Div<u64> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u64) -> UBig

Performs the / operation. Read more
Source§

impl<'l> Div<u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u8) -> UBig

Performs the / operation. Read more
Source§

impl Div<u8> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u8) -> UBig

Performs the / operation. Read more
Source§

impl<'l> Div<usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: usize) -> UBig

Performs the / operation. Read more
Source§

impl Div<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: usize) -> UBig

Performs the / operation. Read more
Source§

impl Div for UBig

Source§

type Output = UBig

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UBig) -> UBig

Performs the / operation. Read more
Source§

impl<'r> DivAssign<&'r ConstDivisor> for UBig

Source§

fn div_assign(&mut self, rhs: &'r ConstDivisor)

Performs the /= operation. Read more
Source§

impl DivAssign<&UBig> for IBig

Source§

fn div_assign(&mut self, rhs: &UBig)

Performs the /= operation. Read more
Source§

impl DivAssign<&UBig> for UBig

Source§

fn div_assign(&mut self, rhs: &UBig)

Performs the /= operation. Read more
Source§

impl DivAssign<&u128> for UBig

Source§

fn div_assign(&mut self, rhs: &u128)

Performs the /= operation. Read more
Source§

impl DivAssign<&u16> for UBig

Source§

fn div_assign(&mut self, rhs: &u16)

Performs the /= operation. Read more
Source§

impl DivAssign<&u32> for UBig

Source§

fn div_assign(&mut self, rhs: &u32)

Performs the /= operation. Read more
Source§

impl DivAssign<&u64> for UBig

Source§

fn div_assign(&mut self, rhs: &u64)

Performs the /= operation. Read more
Source§

impl DivAssign<&u8> for UBig

Source§

fn div_assign(&mut self, rhs: &u8)

Performs the /= operation. Read more
Source§

impl DivAssign<&usize> for UBig

Source§

fn div_assign(&mut self, rhs: &usize)

Performs the /= operation. Read more
Source§

impl DivAssign<UBig> for IBig

Source§

fn div_assign(&mut self, rhs: UBig)

Performs the /= operation. Read more
Source§

impl DivAssign<u128> for UBig

Source§

fn div_assign(&mut self, rhs: u128)

Performs the /= operation. Read more
Source§

impl DivAssign<u16> for UBig

Source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
Source§

impl DivAssign<u32> for UBig

Source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
Source§

impl DivAssign<u64> for UBig

Source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
Source§

impl DivAssign<u8> for UBig

Source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
Source§

impl DivAssign<usize> for UBig

Source§

fn div_assign(&mut self, rhs: usize)

Performs the /= operation. Read more
Source§

impl DivAssign for UBig

Source§

fn div_assign(&mut self, rhs: UBig)

Performs the /= operation. Read more
Source§

impl<'l, 'r> DivEuclid<&'r UBig> for &'l UBig

Source§

impl<'r> DivEuclid<&'r UBig> for UBig

Source§

impl<'l> DivEuclid<UBig> for &'l UBig

Source§

impl DivEuclid for UBig

Source§

impl<'l, 'r> DivRem<&'r ConstDivisor> for &'l UBig

Source§

impl<'r> DivRem<&'r ConstDivisor> for UBig

Source§

impl<'l, 'r> DivRem<&'r IBig> for &'l UBig

Source§

impl<'r> DivRem<&'r IBig> for UBig

Source§

impl<'l, 'r> DivRem<&'r UBig> for &'l IBig

Source§

impl<'l, 'r> DivRem<&'r UBig> for &'l UBig

Source§

impl<'r> DivRem<&'r UBig> for IBig

Source§

impl<'r> DivRem<&'r UBig> for UBig

Source§

impl<'l, 'r> DivRem<&'r u128> for &'l UBig

Source§

impl<'r> DivRem<&'r u128> for UBig

Source§

impl<'l, 'r> DivRem<&'r u16> for &'l UBig

Source§

impl<'r> DivRem<&'r u16> for UBig

Source§

impl<'l, 'r> DivRem<&'r u32> for &'l UBig

Source§

impl<'r> DivRem<&'r u32> for UBig

Source§

impl<'l, 'r> DivRem<&'r u64> for &'l UBig

Source§

impl<'r> DivRem<&'r u64> for UBig

Source§

impl<'l, 'r> DivRem<&'r u8> for &'l UBig

Source§

impl<'r> DivRem<&'r u8> for UBig

Source§

impl<'l, 'r> DivRem<&'r usize> for &'l UBig

Source§

impl<'r> DivRem<&'r usize> for UBig

Source§

impl<'l> DivRem<IBig> for &'l UBig

Source§

impl DivRem<IBig> for UBig

Source§

impl<'l> DivRem<UBig> for &'l IBig

Source§

impl<'l> DivRem<UBig> for &'l UBig

Source§

impl DivRem<UBig> for IBig

Source§

impl<'l> DivRem<u128> for &'l UBig

Source§

impl DivRem<u128> for UBig

Source§

impl<'l> DivRem<u16> for &'l UBig

Source§

impl DivRem<u16> for UBig

Source§

impl<'l> DivRem<u32> for &'l UBig

Source§

impl DivRem<u32> for UBig

Source§

impl<'l> DivRem<u64> for &'l UBig

Source§

impl DivRem<u64> for UBig

Source§

impl<'l> DivRem<u8> for &'l UBig

Source§

impl DivRem<u8> for UBig

Source§

impl<'l> DivRem<usize> for &'l UBig

Source§

impl DivRem<usize> for UBig

Source§

impl DivRem for UBig

Source§

impl<'r> DivRemAssign<&'r ConstDivisor> for UBig

Source§

impl DivRemAssign<&UBig> for UBig

Source§

type OutputRem = UBig

Source§

fn div_rem_assign(&mut self, rhs: &UBig) -> UBig

Source§

impl DivRemAssign<&u128> for UBig

Source§

type OutputRem = u128

Source§

fn div_rem_assign(&mut self, rhs: &u128) -> u128

Source§

impl DivRemAssign<&u16> for UBig

Source§

type OutputRem = u16

Source§

fn div_rem_assign(&mut self, rhs: &u16) -> u16

Source§

impl DivRemAssign<&u32> for UBig

Source§

type OutputRem = u32

Source§

fn div_rem_assign(&mut self, rhs: &u32) -> u32

Source§

impl DivRemAssign<&u64> for UBig

Source§

type OutputRem = u64

Source§

fn div_rem_assign(&mut self, rhs: &u64) -> u64

Source§

impl DivRemAssign<&u8> for UBig

Source§

type OutputRem = u8

Source§

fn div_rem_assign(&mut self, rhs: &u8) -> u8

Source§

impl DivRemAssign<&usize> for UBig

Source§

impl DivRemAssign<u128> for UBig

Source§

impl DivRemAssign<u16> for UBig

Source§

type OutputRem = u16

Source§

fn div_rem_assign(&mut self, rhs: u16) -> u16

Source§

impl DivRemAssign<u32> for UBig

Source§

type OutputRem = u32

Source§

fn div_rem_assign(&mut self, rhs: u32) -> u32

Source§

impl DivRemAssign<u64> for UBig

Source§

type OutputRem = u64

Source§

fn div_rem_assign(&mut self, rhs: u64) -> u64

Source§

impl DivRemAssign<u8> for UBig

Source§

type OutputRem = u8

Source§

fn div_rem_assign(&mut self, rhs: u8) -> u8

Source§

impl DivRemAssign<usize> for UBig

Source§

impl DivRemAssign for UBig

Source§

impl<'l, 'r> DivRemEuclid<&'r UBig> for &'l UBig

Source§

impl<'r> DivRemEuclid<&'r UBig> for UBig

Source§

impl<'l> DivRemEuclid<UBig> for &'l UBig

Source§

impl DivRemEuclid for UBig

Source§

impl EstimatedLog2 for UBig

Source§

fn log2_bounds(&self) -> (f32, f32)

Estimate the bounds of the binary logarithm. Read more
Source§

fn log2_est(&self) -> f32

Estimate the value of the binary logarithm. It’s calculated as the average of log2_bounds by default.
Source§

impl Euclid for UBig

Source§

fn div_euclid(&self, v: &Self) -> Self

Calculates Euclidean division, the matching method for rem_euclid. Read more
Source§

fn rem_euclid(&self, v: &Self) -> Self

Calculates the least nonnegative remainder of self (mod v). Read more
Source§

impl<'l, 'r> ExtendedGcd<&'r IBig> for &'l UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: &IBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'r> ExtendedGcd<&'r IBig> for UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: &IBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'l, 'r> ExtendedGcd<&'r UBig> for &'l IBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: &UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'l, 'r> ExtendedGcd<&'r UBig> for &'l UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: &UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'r> ExtendedGcd<&'r UBig> for IBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: &UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'r> ExtendedGcd<&'r UBig> for UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: &UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'l> ExtendedGcd<IBig> for &'l UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: IBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl ExtendedGcd<IBig> for UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: IBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'l> ExtendedGcd<UBig> for &'l IBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl<'l> ExtendedGcd<UBig> for &'l UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl ExtendedGcd<UBig> for IBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl ExtendedGcd for UBig

Source§

type OutputGcd = UBig

Source§

type OutputCoeff = IBig

Source§

fn gcd_ext(self, rhs: UBig) -> (UBig, IBig, IBig)

Calculate the greatest common divisor between the two operands, returns the common divisor g and the Bézout coefficients respectively. Read more
Source§

impl From<UBig> for IBig

Source§

fn from(x: UBig) -> IBig

Converts to this type from the input type.
Source§

impl From<bool> for UBig

Source§

fn from(b: bool) -> UBig

Converts to this type from the input type.
Source§

impl From<u128> for UBig

Source§

fn from(value: u128) -> UBig

Converts to this type from the input type.
Source§

impl From<u16> for UBig

Source§

fn from(value: u16) -> UBig

Converts to this type from the input type.
Source§

impl From<u32> for UBig

Source§

fn from(value: u32) -> UBig

Converts to this type from the input type.
Source§

impl From<u64> for UBig

Source§

fn from(value: u64) -> UBig

Converts to this type from the input type.
Source§

impl From<u8> for UBig

Source§

fn from(value: u8) -> UBig

Converts to this type from the input type.
Source§

impl From<usize> for UBig

Source§

fn from(value: usize) -> UBig

Converts to this type from the input type.
Source§

impl FromPrimitive for UBig

Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl FromStr for UBig

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<UBig, ParseError>

Parses a string s to return a value of this type. Read more
Source§

impl<'l, 'r> Gcd<&'r IBig> for &'l UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: &IBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'r> Gcd<&'r IBig> for UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: &IBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'l, 'r> Gcd<&'r UBig> for &'l IBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: &UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'l, 'r> Gcd<&'r UBig> for &'l UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: &UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'r> Gcd<&'r UBig> for IBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: &UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'r> Gcd<&'r UBig> for UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: &UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'l> Gcd<IBig> for &'l UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: IBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl Gcd<IBig> for UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: IBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'l> Gcd<UBig> for &'l IBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl<'l> Gcd<UBig> for &'l UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl Gcd<UBig> for IBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl Gcd for UBig

Source§

type Output = UBig

Source§

fn gcd(self, rhs: UBig) -> UBig

Compute the greatest common divisor between the two operands. Read more
Source§

impl Hash for UBig

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Integer for UBig

Source§

fn div_floor(&self, other: &Self) -> Self

Floored integer division. Read more
Source§

fn div_rem(&self, other: &Self) -> (Self, Self)

Simultaneous truncated integer division and modulus. Returns (quotient, remainder). Read more
Source§

fn mod_floor(&self, other: &Self) -> Self

Floored integer modulo, satisfying: Read more
Source§

fn divides(&self, other: &Self) -> bool

Deprecated, use is_multiple_of instead.
Source§

fn is_multiple_of(&self, other: &Self) -> bool

Returns true if self is a multiple of other. Read more
Source§

fn is_even(&self) -> bool

Returns true if the number is even. Read more
Source§

fn is_odd(&self) -> bool

Returns true if the number is odd. Read more
Source§

fn gcd(&self, other: &Self) -> Self

Greatest Common Divisor (GCD). Read more
Source§

fn lcm(&self, other: &Self) -> Self

Lowest Common Multiple (LCM). Read more
Source§

fn extended_gcd(&self, other: &Self) -> ExtendedGcd<Self>

Greatest common divisor and Bézout coefficients. Read more
Source§

fn div_ceil(&self, other: &Self) -> Self

Ceiled integer division. Read more
Source§

fn gcd_lcm(&self, other: &Self) -> (Self, Self)

Greatest Common Divisor (GCD) and Lowest Common Multiple (LCM) together. Read more
Source§

fn div_mod_floor(&self, other: &Self) -> (Self, Self)

Simultaneous floored integer division and modulus. Returns (quotient, remainder). Read more
Source§

fn next_multiple_of(&self, other: &Self) -> Self
where Self: Clone,

Rounds up to nearest multiple of argument. Read more
Source§

fn prev_multiple_of(&self, other: &Self) -> Self
where Self: Clone,

Rounds down to nearest multiple of argument. Read more
Source§

impl<'a> IntoRing<'a, ConstDivisor> for UBig

Source§

impl LowerHex for UBig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'l, 'r> Mul<&'r IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &IBig) -> IBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &IBig) -> IBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> IBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> IBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for u128

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for u16

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for u32

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for u64

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for u8

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for usize

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u128) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r u128> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u128) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u16) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r u16> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u16) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r u32> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u64) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r u64> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u64) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u8) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r u8> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u8) -> UBig

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &usize) -> UBig

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r usize> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &usize) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: IBig) -> IBig

Performs the * operation. Read more
Source§

impl Mul<IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: IBig) -> IBig

Performs the * operation. Read more
Source§

impl Mul<Sign> for UBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Sign) -> Self::Output

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> IBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> IBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for Sign

Source§

type Output = IBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<UBig> for u128

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for u16

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for u32

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for u64

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for u8

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl Mul<UBig> for usize

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u128) -> UBig

Performs the * operation. Read more
Source§

impl Mul<u128> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u128) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> UBig

Performs the * operation. Read more
Source§

impl Mul<u16> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> UBig

Performs the * operation. Read more
Source§

impl Mul<u32> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u64) -> UBig

Performs the * operation. Read more
Source§

impl Mul<u64> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u64) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u8) -> UBig

Performs the * operation. Read more
Source§

impl Mul<u8> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u8) -> UBig

Performs the * operation. Read more
Source§

impl<'l> Mul<usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: usize) -> UBig

Performs the * operation. Read more
Source§

impl Mul<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: usize) -> UBig

Performs the * operation. Read more
Source§

impl Mul for UBig

Source§

type Output = UBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> UBig

Performs the * operation. Read more
Source§

impl MulAssign<&UBig> for IBig

Source§

fn mul_assign(&mut self, rhs: &UBig)

Performs the *= operation. Read more
Source§

impl MulAssign<&UBig> for UBig

Source§

fn mul_assign(&mut self, rhs: &UBig)

Performs the *= operation. Read more
Source§

impl MulAssign<&u128> for UBig

Source§

fn mul_assign(&mut self, rhs: &u128)

Performs the *= operation. Read more
Source§

impl MulAssign<&u16> for UBig

Source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
Source§

impl MulAssign<&u32> for UBig

Source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
Source§

impl MulAssign<&u64> for UBig

Source§

fn mul_assign(&mut self, rhs: &u64)

Performs the *= operation. Read more
Source§

impl MulAssign<&u8> for UBig

Source§

fn mul_assign(&mut self, rhs: &u8)

Performs the *= operation. Read more
Source§

impl MulAssign<&usize> for UBig

Source§

fn mul_assign(&mut self, rhs: &usize)

Performs the *= operation. Read more
Source§

impl MulAssign<UBig> for IBig

Source§

fn mul_assign(&mut self, rhs: UBig)

Performs the *= operation. Read more
Source§

impl MulAssign<u128> for UBig

Source§

fn mul_assign(&mut self, rhs: u128)

Performs the *= operation. Read more
Source§

impl MulAssign<u16> for UBig

Source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for UBig

Source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
Source§

impl MulAssign<u64> for UBig

Source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
Source§

impl MulAssign<u8> for UBig

Source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
Source§

impl MulAssign<usize> for UBig

Source§

fn mul_assign(&mut self, rhs: usize)

Performs the *= operation. Read more
Source§

impl MulAssign for UBig

Source§

fn mul_assign(&mut self, rhs: UBig)

Performs the *= operation. Read more
Source§

impl Neg for &UBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn neg(self) -> IBig

Performs the unary - operation. Read more
Source§

impl Neg for UBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn neg(self) -> IBig

Performs the unary - operation. Read more
Source§

impl Num for UBig

Source§

type FromStrRadixErr = ParseError

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseError>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl NumHash for UBig

Source§

fn num_hash<H: Hasher>(&self, state: &mut H)

Consistent Hash::hash on different numeric types. Read more
Source§

impl NumOrd<IBig> for UBig

Source§

fn num_cmp(&self, other: &IBig) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<UBig> for IBig

Source§

fn num_cmp(&self, other: &UBig) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<UBig> for UBig

Source§

fn num_cmp(&self, other: &UBig) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<UBig> for f32

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for f64

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for i128

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for i16

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for i32

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for i64

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for i8

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for isize

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for u128

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for u16

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for u32

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for u64

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for u8

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<UBig> for usize

Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<f32> for UBig

Source§

fn num_partial_cmp(&self, other: &f32) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<f64> for UBig

Source§

fn num_partial_cmp(&self, other: &f64) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<i128> for UBig

Source§

fn num_partial_cmp(&self, other: &i128) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<i16> for UBig

Source§

fn num_partial_cmp(&self, other: &i16) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<i32> for UBig

Source§

fn num_partial_cmp(&self, other: &i32) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<i64> for UBig

Source§

fn num_partial_cmp(&self, other: &i64) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<i8> for UBig

Source§

fn num_partial_cmp(&self, other: &i8) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<isize> for UBig

Source§

fn num_partial_cmp(&self, other: &isize) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<u128> for UBig

Source§

fn num_partial_cmp(&self, other: &u128) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<u16> for UBig

Source§

fn num_partial_cmp(&self, other: &u16) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<u32> for UBig

Source§

fn num_partial_cmp(&self, other: &u32) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<u64> for UBig

Source§

fn num_partial_cmp(&self, other: &u64) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<u8> for UBig

Source§

fn num_partial_cmp(&self, other: &u8) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl NumOrd<usize> for UBig

Source§

fn num_partial_cmp(&self, other: &usize) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

fn num_cmp(&self, other: &Other) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

impl Octal for UBig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl One for UBig

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl Ord for UBig

Source§

fn cmp(&self, other: &UBig) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UBig

Source§

fn eq(&self, other: &UBig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for UBig

Source§

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 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Pow<usize> for &UBig

Source§

type Output = UBig

The result after applying the operator.
Source§

fn pow(self, rhs: usize) -> UBig

Returns self to the power rhs. Read more
Source§

impl Pow<usize> for UBig

Source§

type Output = UBig

The result after applying the operator.
Source§

fn pow(self, rhs: usize) -> UBig

Returns self to the power rhs. Read more
Source§

impl PowerOfTwo for UBig

Source§

fn is_power_of_two(&self) -> bool

Test if self is a power of two (2^k)
Source§

fn next_power_of_two(self) -> UBig

Get the smallest power of two greater than or equal to self.
Source§

impl<T> Product<T> for UBig
where UBig: Mul<T, Output = UBig>,

Source§

fn product<I: Iterator<Item = T>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Reducer<UBig> for ConstDivisor

Source§

fn new(m: &UBig) -> Self

Create a reducer for a modulus m
Source§

fn transform(&self, target: UBig) -> UBig

Transform a normal integer into reduced form
Source§

fn check(&self, target: &UBig) -> bool

Check whether target is a valid reduced form
Source§

fn modulus(&self) -> UBig

Get the modulus in original integer type
Source§

fn residue(&self, target: UBig) -> UBig

Transform a reduced form back to normal integer
Source§

fn is_zero(&self, target: &UBig) -> bool

Test if the residue() == 0
Source§

fn add(&self, lhs: &UBig, rhs: &UBig) -> UBig

Calculate (lhs + rhs) mod m in reduced form
Source§

fn dbl(&self, target: UBig) -> UBig

Calculate 2*target mod m
Source§

fn sub(&self, lhs: &UBig, rhs: &UBig) -> UBig

Calculate (lhs - rhs) mod m in reduced form
Source§

fn neg(&self, target: UBig) -> UBig

Calculate -monty mod m in reduced form
Source§

fn mul(&self, lhs: &UBig, rhs: &UBig) -> UBig

Calculate (lhs * rhs) mod m in reduced form
Source§

fn sqr(&self, target: UBig) -> UBig

Calculate target^2 mod m in reduced form
Source§

fn inv(&self, target: UBig) -> Option<UBig>

Calculate target^-1 mod m in reduced form, it may return None when there is no modular inverse.
Source§

fn pow(&self, base: UBig, exp: &UBig) -> UBig

Calculate base ^ exp mod m in reduced form
Source§

fn add_in_place(&self, lhs: &mut T, rhs: &T)

Source§

fn sub_in_place(&self, lhs: &mut T, rhs: &T)

Source§

fn mul_in_place(&self, lhs: &mut T, rhs: &T)

Source§

impl<'l, 'r> Rem<&'r ConstDivisor> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &ConstDivisor) -> UBig

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r ConstDivisor> for UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &ConstDivisor) -> UBig

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r IBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &IBig) -> UBig

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r IBig> for UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &IBig) -> UBig

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &UBig) -> IBig

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &UBig) -> UBig

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &UBig) -> IBig

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &UBig) -> UBig

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r u128> for &'l UBig

Source§

type Output = u128

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u128) -> u128

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r u128> for UBig

Source§

type Output = u128

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u128) -> u128

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r u16> for &'l UBig

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u16) -> u16

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r u16> for UBig

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u16) -> u16

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r u32> for &'l UBig

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> u32

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r u32> for UBig

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> u32

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r u64> for &'l UBig

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u64) -> u64

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r u64> for UBig

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u64) -> u64

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r u8> for &'l UBig

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u8) -> u8

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r u8> for UBig

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u8) -> u8

Performs the % operation. Read more
Source§

impl<'l, 'r> Rem<&'r usize> for &'l UBig

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &usize) -> usize

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r usize> for UBig

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &usize) -> usize

Performs the % operation. Read more
Source§

impl<'l> Rem<IBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: IBig) -> UBig

Performs the % operation. Read more
Source§

impl Rem<IBig> for UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: IBig) -> UBig

Performs the % operation. Read more
Source§

impl<'l> Rem<UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: UBig) -> IBig

Performs the % operation. Read more
Source§

impl<'l> Rem<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: UBig) -> UBig

Performs the % operation. Read more
Source§

impl Rem<UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: UBig) -> IBig

Performs the % operation. Read more
Source§

impl<'l> Rem<u128> for &'l UBig

Source§

type Output = u128

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u128) -> u128

Performs the % operation. Read more
Source§

impl Rem<u128> for UBig

Source§

type Output = u128

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u128) -> u128

Performs the % operation. Read more
Source§

impl<'l> Rem<u16> for &'l UBig

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u16) -> u16

Performs the % operation. Read more
Source§

impl Rem<u16> for UBig

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u16) -> u16

Performs the % operation. Read more
Source§

impl<'l> Rem<u32> for &'l UBig

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> u32

Performs the % operation. Read more
Source§

impl Rem<u32> for UBig

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> u32

Performs the % operation. Read more
Source§

impl<'l> Rem<u64> for &'l UBig

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u64) -> u64

Performs the % operation. Read more
Source§

impl Rem<u64> for UBig

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u64) -> u64

Performs the % operation. Read more
Source§

impl<'l> Rem<u8> for &'l UBig

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u8) -> u8

Performs the % operation. Read more
Source§

impl Rem<u8> for UBig

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u8) -> u8

Performs the % operation. Read more
Source§

impl<'l> Rem<usize> for &'l UBig

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: usize) -> usize

Performs the % operation. Read more
Source§

impl Rem<usize> for UBig

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: usize) -> usize

Performs the % operation. Read more
Source§

impl Rem for UBig

Source§

type Output = UBig

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: UBig) -> UBig

Performs the % operation. Read more
Source§

impl<'r> RemAssign<&'r ConstDivisor> for UBig

Source§

fn rem_assign(&mut self, rhs: &'r ConstDivisor)

Performs the %= operation. Read more
Source§

impl RemAssign<&IBig> for UBig

Source§

fn rem_assign(&mut self, rhs: &IBig)

Performs the %= operation. Read more
Source§

impl RemAssign<&UBig> for IBig

Source§

fn rem_assign(&mut self, rhs: &UBig)

Performs the %= operation. Read more
Source§

impl RemAssign<&UBig> for UBig

Source§

fn rem_assign(&mut self, rhs: &UBig)

Performs the %= operation. Read more
Source§

impl RemAssign<IBig> for UBig

Source§

fn rem_assign(&mut self, rhs: IBig)

Performs the %= operation. Read more
Source§

impl RemAssign<UBig> for IBig

Source§

fn rem_assign(&mut self, rhs: UBig)

Performs the %= operation. Read more
Source§

impl RemAssign for UBig

Source§

fn rem_assign(&mut self, rhs: UBig)

Performs the %= operation. Read more
Source§

impl<'l, 'r> RemEuclid<&'r UBig> for &'l UBig

Source§

impl<'r> RemEuclid<&'r UBig> for UBig

Source§

impl<'l> RemEuclid<UBig> for &'l UBig

Source§

impl RemEuclid for UBig

Source§

impl Roots for UBig

Source§

fn sqrt(&self) -> Self

Returns the truncated principal square root of an integer – ⌊√x⌋ Read more
Source§

fn cbrt(&self) -> Self

Returns the truncated principal cube root of an integer – if x >= 0 { ⌊∛x⌋ } else { ⌈∛x⌉ } Read more
Source§

fn nth_root(&self, n: u32) -> Self

Returns the truncated principal nth root of an integer – if x >= 0 { ⌊ⁿ√x⌋ } else { ⌈ⁿ√x⌉ } Read more
Source§

impl SampleUniform for UBig

Source§

type Sampler = UniformUBig

The UniformSampler implementation supporting type X.
Source§

impl Serialize for UBig

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl Shl<&usize> for &UBig

Source§

type Output = UBig

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &usize) -> UBig

Performs the << operation. Read more
Source§

impl Shl<&usize> for UBig

Source§

type Output = UBig

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &usize) -> UBig

Performs the << operation. Read more
Source§

impl Shl<usize> for &UBig

Source§

type Output = UBig

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: usize) -> UBig

Performs the << operation. Read more
Source§

impl Shl<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: usize) -> UBig

Performs the << operation. Read more
Source§

impl ShlAssign<&usize> for UBig

Source§

fn shl_assign(&mut self, rhs: &usize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<usize> for UBig

Source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
Source§

impl Shr<&usize> for &UBig

Source§

type Output = UBig

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &usize) -> UBig

Performs the >> operation. Read more
Source§

impl Shr<&usize> for UBig

Source§

type Output = UBig

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &usize) -> UBig

Performs the >> operation. Read more
Source§

impl Shr<usize> for &UBig

Source§

type Output = UBig

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: usize) -> UBig

Performs the >> operation. Read more
Source§

impl Shr<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: usize) -> UBig

Performs the >> operation. Read more
Source§

impl ShrAssign<&usize> for UBig

Source§

fn shr_assign(&mut self, rhs: &usize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<usize> for UBig

Source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
Source§

impl SquareRoot for UBig

Source§

type Output = UBig

Source§

fn sqrt(&self) -> Self::Output

Source§

impl SquareRootRem for UBig

Source§

type Output = UBig

Source§

fn sqrt_rem(&self) -> (Self, Self)

Source§

impl<'l, 'r> Sub<&'r IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IBig) -> IBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IBig) -> IBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> IBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> IBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for u128

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for u16

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for u32

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for u64

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for u8

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for usize

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u128) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r u128> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u128) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u16) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r u16> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u16) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r u32> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u64) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r u64> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u64) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u8) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r u8> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u8) -> UBig

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &usize) -> UBig

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r usize> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &usize) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<IBig> for &'l UBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: IBig) -> IBig

Performs the - operation. Read more
Source§

impl Sub<IBig> for UBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: IBig) -> IBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l IBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> IBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l u128

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l u16

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l u32

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l u64

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l u8

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l usize

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for IBig

Source§

type Output = IBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> IBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for u128

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for u16

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for u32

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for u64

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for u8

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl Sub<UBig> for usize

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<u128> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u128) -> UBig

Performs the - operation. Read more
Source§

impl Sub<u128> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u128) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<u16> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> UBig

Performs the - operation. Read more
Source§

impl Sub<u16> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<u32> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> UBig

Performs the - operation. Read more
Source§

impl Sub<u32> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<u64> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> UBig

Performs the - operation. Read more
Source§

impl Sub<u64> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<u8> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> UBig

Performs the - operation. Read more
Source§

impl Sub<u8> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> UBig

Performs the - operation. Read more
Source§

impl<'l> Sub<usize> for &'l UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: usize) -> UBig

Performs the - operation. Read more
Source§

impl Sub<usize> for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: usize) -> UBig

Performs the - operation. Read more
Source§

impl Sub for UBig

Source§

type Output = UBig

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> UBig

Performs the - operation. Read more
Source§

impl SubAssign<&UBig> for IBig

Source§

fn sub_assign(&mut self, rhs: &UBig)

Performs the -= operation. Read more
Source§

impl SubAssign<&UBig> for UBig

Source§

fn sub_assign(&mut self, rhs: &UBig)

Performs the -= operation. Read more
Source§

impl SubAssign<&u128> for UBig

Source§

fn sub_assign(&mut self, rhs: &u128)

Performs the -= operation. Read more
Source§

impl SubAssign<&u16> for UBig

Source§

fn sub_assign(&mut self, rhs: &u16)

Performs the -= operation. Read more
Source§

impl SubAssign<&u32> for UBig

Source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
Source§

impl SubAssign<&u64> for UBig

Source§

fn sub_assign(&mut self, rhs: &u64)

Performs the -= operation. Read more
Source§

impl SubAssign<&u8> for UBig

Source§

fn sub_assign(&mut self, rhs: &u8)

Performs the -= operation. Read more
Source§

impl SubAssign<&usize> for UBig

Source§

fn sub_assign(&mut self, rhs: &usize)

Performs the -= operation. Read more
Source§

impl SubAssign<UBig> for IBig

Source§

fn sub_assign(&mut self, rhs: UBig)

Performs the -= operation. Read more
Source§

impl SubAssign<u128> for UBig

Source§

fn sub_assign(&mut self, rhs: u128)

Performs the -= operation. Read more
Source§

impl SubAssign<u16> for UBig

Source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
Source§

impl SubAssign<u32> for UBig

Source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
Source§

impl SubAssign<u64> for UBig

Source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
Source§

impl SubAssign<u8> for UBig

Source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
Source§

impl SubAssign<usize> for UBig

Source§

fn sub_assign(&mut self, rhs: usize)

Performs the -= operation. Read more
Source§

impl SubAssign for UBig

Source§

fn sub_assign(&mut self, rhs: UBig)

Performs the -= operation. Read more
Source§

impl<T> Sum<T> for UBig
where UBig: Add<T, Output = UBig>,

Source§

fn sum<I: Iterator<Item = T>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl ToPrimitive for UBig

Source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
Source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
Source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
Source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
Source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
Source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
Source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
Source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
Source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
Source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
Source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
Source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
Source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
Source§

fn to_f64(&self) -> Option<f64>

Converts the value of 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 more
Source§

impl TryFrom<&UBig> for i128

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<i128, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for i16

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<i16, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for i32

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<i32, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for i64

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<i64, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for i8

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<i8, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for isize

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<isize, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for u128

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<u128, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for u16

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<u16, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for u32

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<u32, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for u64

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<u64, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for u8

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<u8, ConversionError>

Performs the conversion.
Source§

impl TryFrom<&UBig> for usize

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &UBig) -> Result<usize, ConversionError>

Performs the conversion.
Source§

impl TryFrom<IBig> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(x: IBig) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for i128

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<i128, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for i16

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<i16, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for i32

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<i32, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for i64

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<i64, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for i8

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<i8, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for isize

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<isize, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for u128

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<u128, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for u16

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<u16, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for u32

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<u32, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for u64

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<u64, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for u8

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<u8, ConversionError>

Performs the conversion.
Source§

impl TryFrom<UBig> for usize

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: UBig) -> Result<usize, ConversionError>

Performs the conversion.
Source§

impl TryFrom<f32> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: f32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f64> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: f64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i128> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: i128) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl TryFrom<i16> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: i16) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl TryFrom<i32> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: i32) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl TryFrom<i64> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: i64) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl TryFrom<i8> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: i8) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl TryFrom<isize> for UBig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: isize) -> Result<UBig, ConversionError>

Performs the conversion.
Source§

impl UpperHex for UBig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Zero for UBig

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl Zeroize for UBig

Source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.
Source§

impl Eq for UBig

Source§

impl StructuralPartialEq for UBig

Source§

impl Unsigned for UBig

Auto Trait Implementations§

§

impl Freeze for UBig

§

impl RefUnwindSafe for UBig

§

impl Send for UBig

§

impl Sync for UBig

§

impl Unpin for UBig

§

impl UnwindSafe for UBig

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<I> Average for I
where &'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>,

Source§

fn average_floor(&self, other: &I) -> I

Returns the floor value of the average of self and other.

Source§

fn average_ceil(&self, other: &I) -> I

Returns the ceil value of the average of self and other.

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Borrowed> SampleBorrow<Borrowed> for Borrowed
where Borrowed: SampleUniform,

Source§

fn borrow(&self) -> &Borrowed

Immutably borrows from an owned value. See Borrow::borrow
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> NumAssign for T
where T: Num + NumAssignOps,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T> NumAssignRef for T
where T: NumAssign + for<'r> NumAssignOps<&'r T>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> NumRef for T
where T: Num + for<'r> NumOps<&'r T>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,