[][src]Struct smallbigint::Uint

pub struct Uint(_);

Implementations

impl Uint[src]

pub const fn zero() -> Self[src]

pub const fn small(x: u32) -> Self[src]

pub fn big(v: BigUint) -> Self[src]

pub fn cow_big(&self) -> Cow<'_, BigUint>[src]

A convenience function to get or convert to a BigUint, without having to copy any heap-allocated data if we are already a &BigUint.

Given a variable x : &Uint, the following pattern may be useful to get a &BigUint without unneeded allocation. If the Uint is small, then we create a new temporary BigUint from it and the Rust compiler can automatically figure out the lifetimes.

let x1 = x.cow_big();
let x2 : &BigUint = x1.deref();

We have to

  • Put x1 in a variable, so that the compiler can figure out the lifetimes
  • Put x2 in a variable, otherwise the Rust compiler can't figure out its type.

pub fn normalize(self) -> Self[src]

If we're storing a BigUint but it would fit in a small uint instead, then convert, and discard the heap-allocated memory.

pub fn normalize_ref(&self) -> Cow<'_, Self>[src]

Like normalize, but borrows instead.

impl Uint[src]

pub fn into_int(self) -> Int[src]

Convert owned to Int.

pub fn to_int(&self) -> Int[src]

Convert reference to Int.

Trait Implementations

impl<'_> Add<&'_ Uint> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<&'_ u128> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<&'_ u16> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<&'_ u32> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<&'_ u64> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<&'_ u8> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<&'_ usize> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<Uint> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<u128> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<u16> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<u32> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<u64> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<u8> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl Add<usize> for Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> Add<usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the + operator.

impl<'_> AddAssign<&'_ Uint> for Uint[src]

impl<'_> AddAssign<&'_ u128> for Uint[src]

impl<'_> AddAssign<&'_ u16> for Uint[src]

impl<'_> AddAssign<&'_ u32> for Uint[src]

impl<'_> AddAssign<&'_ u64> for Uint[src]

impl<'_> AddAssign<&'_ u8> for Uint[src]

impl<'_> AddAssign<&'_ usize> for Uint[src]

impl AddAssign<Uint> for Uint[src]

impl AddAssign<u128> for Uint[src]

impl AddAssign<u16> for Uint[src]

impl AddAssign<u32> for Uint[src]

impl AddAssign<u64> for Uint[src]

impl AddAssign<u8> for Uint[src]

impl AddAssign<usize> for Uint[src]

impl CheckedAdd for Uint[src]

impl CheckedDiv for Uint[src]

impl CheckedMul for Uint[src]

impl CheckedSub for Uint[src]

impl Clone for Uint[src]

impl Debug for Uint[src]

impl Default for Uint[src]

impl Display for Uint[src]

impl<'_> Div<&'_ Uint> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<&'_ u128> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<&'_ u16> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<&'_ u32> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<&'_ u64> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<&'_ u8> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<&'_ usize> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<Uint> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<u128> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<u16> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<u32> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<u64> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<u8> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl Div<usize> for Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> Div<usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the / operator.

impl<'_> DivAssign<&'_ Uint> for Uint[src]

impl<'_> DivAssign<&'_ u128> for Uint[src]

impl<'_> DivAssign<&'_ u16> for Uint[src]

impl<'_> DivAssign<&'_ u32> for Uint[src]

impl<'_> DivAssign<&'_ u64> for Uint[src]

impl<'_> DivAssign<&'_ u8> for Uint[src]

impl<'_> DivAssign<&'_ usize> for Uint[src]

impl DivAssign<Uint> for Uint[src]

impl DivAssign<u128> for Uint[src]

impl DivAssign<u16> for Uint[src]

impl DivAssign<u32> for Uint[src]

impl DivAssign<u64> for Uint[src]

impl DivAssign<u8> for Uint[src]

impl DivAssign<usize> for Uint[src]

impl Eq for Uint[src]

impl From<BigUint> for Uint[src]

impl From<Uint> for BigUint[src]

impl From<Uint> for Int[src]

An alias for .into_uint().

impl From<u128> for Uint[src]

impl From<u16> for Uint[src]

impl From<u32> for Uint[src]

impl From<u64> for Uint[src]

impl From<u8> for Uint[src]

impl From<usize> for Uint[src]

impl FromPrimitive for Uint[src]

impl FromStr for Uint[src]

type Err = ParseBigIntError

The associated error which can be returned from parsing.

impl Hash for Uint[src]

impl<'_> Mul<&'_ Uint> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ u128> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ u16> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ u32> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ u64> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ u8> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<&'_ usize> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<Uint> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<u128> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<u16> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<u32> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<u64> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<u8> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl Mul<usize> for Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> Mul<usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the * operator.

impl<'_> MulAssign<&'_ Uint> for Uint[src]

impl<'_> MulAssign<&'_ u128> for Uint[src]

impl<'_> MulAssign<&'_ u16> for Uint[src]

impl<'_> MulAssign<&'_ u32> for Uint[src]

impl<'_> MulAssign<&'_ u64> for Uint[src]

impl<'_> MulAssign<&'_ u8> for Uint[src]

impl<'_> MulAssign<&'_ usize> for Uint[src]

impl MulAssign<Uint> for Uint[src]

impl MulAssign<u128> for Uint[src]

impl MulAssign<u16> for Uint[src]

impl MulAssign<u32> for Uint[src]

impl MulAssign<u64> for Uint[src]

impl MulAssign<u8> for Uint[src]

impl MulAssign<usize> for Uint[src]

impl One for Uint[src]

impl Ord for Uint[src]

impl<'_> PartialEq<&'_ Int> for Uint[src]

impl<'_> PartialEq<&'_ Uint> for Uint[src]

impl<'_> PartialEq<&'_ Uint> for Int[src]

impl<'_> PartialEq<&'_ Uint> for i32[src]

impl<'_> PartialEq<&'_ Uint> for i64[src]

impl<'_> PartialEq<&'_ Uint> for i128[src]

impl<'_> PartialEq<&'_ Uint> for isize[src]

impl<'_> PartialEq<&'_ Uint> for u8[src]

impl<'_> PartialEq<&'_ Uint> for u16[src]

impl<'_> PartialEq<&'_ Uint> for u32[src]

impl<'_> PartialEq<&'_ Uint> for u64[src]

impl<'_> PartialEq<&'_ Uint> for u128[src]

impl<'_> PartialEq<&'_ Uint> for usize[src]

impl<'_> PartialEq<&'_ Uint> for i8[src]

impl<'_> PartialEq<&'_ Uint> for i16[src]

impl<'_> PartialEq<&'_ i128> for Uint[src]

impl<'_> PartialEq<&'_ i16> for Uint[src]

impl<'_> PartialEq<&'_ i32> for Uint[src]

impl<'_> PartialEq<&'_ i64> for Uint[src]

impl<'_> PartialEq<&'_ i8> for Uint[src]

impl<'_> PartialEq<&'_ isize> for Uint[src]

impl<'_> PartialEq<&'_ u128> for Uint[src]

impl<'_> PartialEq<&'_ u16> for Uint[src]

impl<'_> PartialEq<&'_ u32> for Uint[src]

impl<'_> PartialEq<&'_ u64> for Uint[src]

impl<'_> PartialEq<&'_ u8> for Uint[src]

impl<'_> PartialEq<&'_ usize> for Uint[src]

impl PartialEq<Int> for Uint[src]

pub fn eq(&self, other: &Int) -> bool[src]

Cannot use the small-int optimization, and copies the Uint into a BigInt.

impl<'_> PartialEq<Int> for &'_ Uint[src]

impl PartialEq<Uint> for Uint[src]

impl PartialEq<Uint> for Int[src]

pub fn eq(&self, other: &Uint) -> bool[src]

Cannot use the small-int optimization, and copies the Uint into a BigInt.

impl PartialEq<Uint> for u64[src]

impl<'_> PartialEq<Uint> for &'_ u64[src]

impl PartialEq<Uint> for u128[src]

impl<'_> PartialEq<Uint> for &'_ u128[src]

impl PartialEq<Uint> for usize[src]

impl<'_> PartialEq<Uint> for &'_ usize[src]

impl PartialEq<Uint> for i8[src]

impl<'_> PartialEq<Uint> for &'_ i8[src]

impl PartialEq<Uint> for i16[src]

impl<'_> PartialEq<Uint> for &'_ i16[src]

impl<'_> PartialEq<Uint> for &'_ Uint[src]

impl PartialEq<Uint> for i32[src]

impl<'_> PartialEq<Uint> for &'_ i32[src]

impl PartialEq<Uint> for i64[src]

impl<'_> PartialEq<Uint> for &'_ i64[src]

impl PartialEq<Uint> for i128[src]

impl<'_> PartialEq<Uint> for &'_ i128[src]

impl PartialEq<Uint> for isize[src]

impl<'_> PartialEq<Uint> for &'_ isize[src]

impl<'_> PartialEq<Uint> for &'_ Int[src]

impl PartialEq<Uint> for u8[src]

impl<'_> PartialEq<Uint> for &'_ u8[src]

impl PartialEq<Uint> for u16[src]

impl<'_> PartialEq<Uint> for &'_ u16[src]

impl PartialEq<Uint> for u32[src]

impl<'_> PartialEq<Uint> for &'_ u32[src]

impl PartialEq<i128> for Uint[src]

impl<'_> PartialEq<i128> for &'_ Uint[src]

impl PartialEq<i16> for Uint[src]

impl<'_> PartialEq<i16> for &'_ Uint[src]

impl PartialEq<i32> for Uint[src]

impl<'_> PartialEq<i32> for &'_ Uint[src]

impl PartialEq<i64> for Uint[src]

impl<'_> PartialEq<i64> for &'_ Uint[src]

impl PartialEq<i8> for Uint[src]

impl<'_> PartialEq<i8> for &'_ Uint[src]

impl PartialEq<isize> for Uint[src]

impl<'_> PartialEq<isize> for &'_ Uint[src]

impl PartialEq<u128> for Uint[src]

impl<'_> PartialEq<u128> for &'_ Uint[src]

impl PartialEq<u16> for Uint[src]

impl<'_> PartialEq<u16> for &'_ Uint[src]

impl PartialEq<u32> for Uint[src]

impl<'_> PartialEq<u32> for &'_ Uint[src]

impl PartialEq<u64> for Uint[src]

impl<'_> PartialEq<u64> for &'_ Uint[src]

impl PartialEq<u8> for Uint[src]

impl<'_> PartialEq<u8> for &'_ Uint[src]

impl PartialEq<usize> for Uint[src]

impl<'_> PartialEq<usize> for &'_ Uint[src]

impl<'_> PartialOrd<&'_ Int> for Uint[src]

impl<'_> PartialOrd<&'_ Uint> for Uint[src]

impl<'_> PartialOrd<&'_ Uint> for Int[src]

impl<'_> PartialOrd<&'_ Uint> for i32[src]

impl<'_> PartialOrd<&'_ Uint> for i64[src]

impl<'_> PartialOrd<&'_ Uint> for i128[src]

impl<'_> PartialOrd<&'_ Uint> for isize[src]

impl<'_> PartialOrd<&'_ Uint> for u8[src]

impl<'_> PartialOrd<&'_ Uint> for u16[src]

impl<'_> PartialOrd<&'_ Uint> for u32[src]

impl<'_> PartialOrd<&'_ Uint> for u64[src]

impl<'_> PartialOrd<&'_ Uint> for u128[src]

impl<'_> PartialOrd<&'_ Uint> for usize[src]

impl<'_> PartialOrd<&'_ Uint> for i8[src]

impl<'_> PartialOrd<&'_ Uint> for i16[src]

impl<'_> PartialOrd<&'_ i128> for Uint[src]

impl<'_> PartialOrd<&'_ i16> for Uint[src]

impl<'_> PartialOrd<&'_ i32> for Uint[src]

impl<'_> PartialOrd<&'_ i64> for Uint[src]

impl<'_> PartialOrd<&'_ i8> for Uint[src]

impl<'_> PartialOrd<&'_ isize> for Uint[src]

impl<'_> PartialOrd<&'_ u128> for Uint[src]

impl<'_> PartialOrd<&'_ u16> for Uint[src]

impl<'_> PartialOrd<&'_ u32> for Uint[src]

impl<'_> PartialOrd<&'_ u64> for Uint[src]

impl<'_> PartialOrd<&'_ u8> for Uint[src]

impl<'_> PartialOrd<&'_ usize> for Uint[src]

impl PartialOrd<Int> for Uint[src]

impl<'_> PartialOrd<Int> for &'_ Uint[src]

impl PartialOrd<Uint> for Uint[src]

impl PartialOrd<Uint> for Int[src]

impl PartialOrd<Uint> for u64[src]

impl<'_> PartialOrd<Uint> for &'_ u64[src]

impl PartialOrd<Uint> for u128[src]

impl<'_> PartialOrd<Uint> for &'_ u128[src]

impl PartialOrd<Uint> for usize[src]

impl<'_> PartialOrd<Uint> for &'_ usize[src]

impl PartialOrd<Uint> for i8[src]

impl<'_> PartialOrd<Uint> for &'_ i8[src]

impl PartialOrd<Uint> for i16[src]

impl<'_> PartialOrd<Uint> for &'_ i16[src]

impl<'_> PartialOrd<Uint> for &'_ Uint[src]

impl PartialOrd<Uint> for i32[src]

impl<'_> PartialOrd<Uint> for &'_ i32[src]

impl PartialOrd<Uint> for i64[src]

impl<'_> PartialOrd<Uint> for &'_ i64[src]

impl PartialOrd<Uint> for i128[src]

impl<'_> PartialOrd<Uint> for &'_ i128[src]

impl PartialOrd<Uint> for isize[src]

impl<'_> PartialOrd<Uint> for &'_ isize[src]

impl<'_> PartialOrd<Uint> for &'_ Int[src]

impl PartialOrd<Uint> for u8[src]

impl<'_> PartialOrd<Uint> for &'_ u8[src]

impl PartialOrd<Uint> for u16[src]

impl<'_> PartialOrd<Uint> for &'_ u16[src]

impl PartialOrd<Uint> for u32[src]

impl<'_> PartialOrd<Uint> for &'_ u32[src]

impl PartialOrd<i128> for Uint[src]

impl<'_> PartialOrd<i128> for &'_ Uint[src]

impl PartialOrd<i16> for Uint[src]

impl<'_> PartialOrd<i16> for &'_ Uint[src]

impl PartialOrd<i32> for Uint[src]

impl<'_> PartialOrd<i32> for &'_ Uint[src]

impl PartialOrd<i64> for Uint[src]

impl<'_> PartialOrd<i64> for &'_ Uint[src]

impl PartialOrd<i8> for Uint[src]

impl<'_> PartialOrd<i8> for &'_ Uint[src]

impl PartialOrd<isize> for Uint[src]

impl<'_> PartialOrd<isize> for &'_ Uint[src]

impl PartialOrd<u128> for Uint[src]

impl<'_> PartialOrd<u128> for &'_ Uint[src]

impl PartialOrd<u16> for Uint[src]

impl<'_> PartialOrd<u16> for &'_ Uint[src]

impl PartialOrd<u32> for Uint[src]

impl<'_> PartialOrd<u32> for &'_ Uint[src]

impl PartialOrd<u64> for Uint[src]

impl<'_> PartialOrd<u64> for &'_ Uint[src]

impl PartialOrd<u8> for Uint[src]

impl<'_> PartialOrd<u8> for &'_ Uint[src]

impl PartialOrd<usize> for Uint[src]

impl<'_> PartialOrd<usize> for &'_ Uint[src]

impl<'_> Rem<&'_ Uint> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<&'_ u128> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<&'_ u16> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<&'_ u32> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<&'_ u64> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<&'_ u8> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<&'_ usize> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_, '_> Rem<&'_ usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<Uint> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<u128> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<u16> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<u32> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<u64> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<u8> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl Rem<usize> for Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> Rem<usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the % operator.

impl<'_> RemAssign<&'_ Uint> for Uint[src]

impl<'_> RemAssign<&'_ u128> for Uint[src]

impl<'_> RemAssign<&'_ u16> for Uint[src]

impl<'_> RemAssign<&'_ u32> for Uint[src]

impl<'_> RemAssign<&'_ u64> for Uint[src]

impl<'_> RemAssign<&'_ u8> for Uint[src]

impl<'_> RemAssign<&'_ usize> for Uint[src]

impl RemAssign<Uint> for Uint[src]

impl RemAssign<u128> for Uint[src]

impl RemAssign<u16> for Uint[src]

impl RemAssign<u32> for Uint[src]

impl RemAssign<u64> for Uint[src]

impl RemAssign<u8> for Uint[src]

impl RemAssign<usize> for Uint[src]

impl<'_> Sub<&'_ Uint> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ u128> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ u16> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ u32> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ u64> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ u8> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<&'_ usize> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<Uint> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<Uint> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<u128> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<u128> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<u16> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<u16> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<u32> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<u32> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<u64> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<u64> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<u8> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<u8> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl Sub<usize> for Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> Sub<usize> for &'_ Uint[src]

type Output = Uint

The resulting type after applying the - operator.

impl<'_> SubAssign<&'_ Uint> for Uint[src]

impl<'_> SubAssign<&'_ u128> for Uint[src]

impl<'_> SubAssign<&'_ u16> for Uint[src]

impl<'_> SubAssign<&'_ u32> for Uint[src]

impl<'_> SubAssign<&'_ u64> for Uint[src]

impl<'_> SubAssign<&'_ u8> for Uint[src]

impl<'_> SubAssign<&'_ usize> for Uint[src]

impl SubAssign<Uint> for Uint[src]

impl SubAssign<u128> for Uint[src]

impl SubAssign<u16> for Uint[src]

impl SubAssign<u32> for Uint[src]

impl SubAssign<u64> for Uint[src]

impl SubAssign<u8> for Uint[src]

impl SubAssign<usize> for Uint[src]

impl ToPrimitive for Uint[src]

impl TryFrom<Int> for Uint[src]

An alias for .into_int().

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

pub fn try_from(v: Int) -> Result<Self, Self::Error>[src]

Fails on negative numbers.

impl TryFrom<i128> for Uint[src]

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

impl TryFrom<i16> for Uint[src]

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

impl TryFrom<i32> for Uint[src]

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

impl TryFrom<i64> for Uint[src]

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

impl TryFrom<i8> for Uint[src]

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

impl TryFrom<isize> for Uint[src]

type Error = IntIsNegativeError

The type returned in the event of a conversion error.

impl Zero for Uint[src]

Auto Trait Implementations

impl RefUnwindSafe for Uint

impl Send for Uint

impl Sync for Uint

impl Unpin for Uint

impl UnwindSafe for Uint

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

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>, 
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.