Struct Mpz

Source
pub struct Mpz { /* private fields */ }

Implementations§

Source§

impl Mpz

Source

pub unsafe fn inner(&self) -> mpz_srcptr

Source

pub unsafe fn inner_mut(&mut self) -> mpz_ptr

Source

pub fn new() -> Mpz

Source

pub fn new_reserve(n: usize) -> Mpz

Source

pub fn reserve(&mut self, n: usize)

Source

pub fn size_in_base(&self, base: u8) -> usize

Source

pub fn to_str_radix(&self, base: u8) -> String

Source

pub fn from_str_radix(s: &str, base: u8) -> Result<Mpz, ParseMpzError>

Source

pub fn set(&mut self, other: &Mpz)

Source

pub fn set_from_str_radix(&mut self, s: &str, base: u8) -> bool

Source

pub fn bit_length(&self) -> usize

Source

pub fn compl(&self) -> Mpz

Source

pub fn abs(&self) -> Mpz

Source

pub fn div_floor(&self, other: &Mpz) -> Mpz

Source

pub fn mod_floor(&self, other: &Mpz) -> Mpz

Source

pub fn probab_prime(&self, reps: i32) -> ProbabPrimeResult

Determine whether n is prime.

This function performs some trial divisions, then reps Miller-Rabin probabilistic primality tests. A higher reps value will reduce the chances of a non-prime being identified as “probably prime”. A composite number will be identified as a prime with a probability of less than 4^(-reps). Reasonable values of reps are between 15 and 50.

Source

pub fn nextprime(&self) -> Mpz

Source

pub fn gcd(&self, other: &Mpz) -> Mpz

Source

pub fn gcdext(&self, other: &Mpz) -> (Mpz, Mpz, Mpz)

Given (a, b), return (g, s, t) such that g = gcd(a, b) = sa + tb.

Source

pub fn lcm(&self, other: &Mpz) -> Mpz

Source

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

Source

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

Source

pub fn modulus(&self, modulo: &Mpz) -> Mpz

Source

pub fn invert(&self, modulo: &Mpz) -> Option<Mpz>

Source

pub fn popcount(&self) -> usize

Source

pub fn pow(&self, exp: u32) -> Mpz

Source

pub fn powm(&self, exp: &Mpz, modulus: &Mpz) -> Mpz

Source

pub fn powm_sec(&self, exp: &Mpz, modulus: &Mpz) -> Mpz

Source

pub fn ui_pow_ui(x: u32, y: u32) -> Mpz

Source

pub fn hamdist(&self, other: &Mpz) -> usize

Source

pub fn setbit(&mut self, bit_index: usize)

Source

pub fn clrbit(&mut self, bit_index: usize)

Source

pub fn combit(&mut self, bit_index: usize)

Source

pub fn tstbit(&self, bit_index: usize) -> bool

Source

pub fn root(&self, n: u32) -> Mpz

Source

pub fn sqrt(&self) -> Mpz

Source

pub fn millerrabin(&self, reps: i32) -> i32

Source

pub fn sign(&self) -> Sign

Source

pub fn one() -> Mpz

Source

pub fn zero() -> Mpz

Source

pub fn is_zero(&self) -> bool

Trait Implementations§

Source§

impl<'a, 'b> Add<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: &Mpz) -> Mpz

Performs the + operation. Read more
Source§

impl<'a> Add<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: &Mpz) -> Mpz

Performs the + operation. Read more
Source§

impl<'a> Add<&'a Mpz> for u64

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a Mpz) -> Mpz

Performs the + operation. Read more
Source§

impl<'a> Add<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: Mpz) -> Mpz

Performs the + operation. Read more
Source§

impl Add<Mpz> for u64

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: Mpz) -> Mpz

Performs the + operation. Read more
Source§

impl<'a> Add<u64> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: u64) -> Mpz

Performs the + operation. Read more
Source§

impl Add<u64> for Mpz

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: u64) -> Mpz

Performs the + operation. Read more
Source§

impl Add for Mpz

Source§

type Output = Mpz

The resulting type after applying the + operator.
Source§

fn add(self, other: Mpz) -> Mpz

Performs the + operation. Read more
Source§

impl<'a> AddAssign<&'a Mpz> for Mpz

Source§

fn add_assign(&mut self, other: &Mpz)

Performs the += operation. Read more
Source§

impl AddAssign<u64> for Mpz

Source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
Source§

impl AddAssign for Mpz

Source§

fn add_assign(&mut self, other: Mpz)

Performs the += operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &Mpz) -> Mpz

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &Mpz) -> Mpz

Performs the & operation. Read more
Source§

impl<'a> BitAnd<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Mpz) -> Mpz

Performs the & operation. Read more
Source§

impl BitAnd for Mpz

Source§

type Output = Mpz

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Mpz) -> Mpz

Performs the & operation. Read more
Source§

impl<'a> BitAndAssign<&'a Mpz> for Mpz

Source§

fn bitand_assign(&mut self, other: &Mpz)

Performs the &= operation. Read more
Source§

impl BitAndAssign for Mpz

Source§

fn bitand_assign(&mut self, other: Mpz)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitOr<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &Mpz) -> Mpz

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &Mpz) -> Mpz

Performs the | operation. Read more
Source§

impl<'a> BitOr<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Mpz) -> Mpz

Performs the | operation. Read more
Source§

impl BitOr for Mpz

Source§

type Output = Mpz

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Mpz) -> Mpz

Performs the | operation. Read more
Source§

impl<'a> BitOrAssign<&'a Mpz> for Mpz

Source§

fn bitor_assign(&mut self, other: &Mpz)

Performs the |= operation. Read more
Source§

impl BitOrAssign for Mpz

Source§

fn bitor_assign(&mut self, other: Mpz)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitXor<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &Mpz) -> Mpz

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &Mpz) -> Mpz

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Mpz) -> Mpz

Performs the ^ operation. Read more
Source§

impl BitXor for Mpz

Source§

type Output = Mpz

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Mpz) -> Mpz

Performs the ^ operation. Read more
Source§

impl<'a> BitXorAssign<&'a Mpz> for Mpz

Source§

fn bitxor_assign(&mut self, other: &Mpz)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for Mpz

Source§

fn bitxor_assign(&mut self, other: Mpz)

Performs the ^= operation. Read more
Source§

impl Clone for Mpz

Source§

fn clone(&self) -> Mpz

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Mpz

Source§

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

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

impl Display for Mpz

Source§

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

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

impl<'a, 'b> Div<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the / operator.
Source§

fn div(self, other: &Mpz) -> Mpz

Performs the / operation. Read more
Source§

impl<'a> Div<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the / operator.
Source§

fn div(self, other: &Mpz) -> Mpz

Performs the / operation. Read more
Source§

impl<'a> Div<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the / operator.
Source§

fn div(self, other: Mpz) -> Mpz

Performs the / operation. Read more
Source§

impl<'a> Div<u64> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the / operator.
Source§

fn div(self, other: u64) -> Mpz

Performs the / operation. Read more
Source§

impl Div<u64> for Mpz

Source§

type Output = Mpz

The resulting type after applying the / operator.
Source§

fn div(self, other: u64) -> Mpz

Performs the / operation. Read more
Source§

impl Div for Mpz

Source§

type Output = Mpz

The resulting type after applying the / operator.
Source§

fn div(self, other: Mpz) -> Mpz

Performs the / operation. Read more
Source§

impl<'a> DivAssign<&'a Mpz> for Mpz

Source§

fn div_assign(&mut self, other: &Mpz)

Performs the /= operation. Read more
Source§

impl DivAssign<u64> for Mpz

Source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
Source§

impl DivAssign for Mpz

Source§

fn div_assign(&mut self, other: Mpz)

Performs the /= operation. Read more
Source§

impl Drop for Mpz

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'a> From<&'a [u8]> for Mpz

Source§

fn from(other: &'a [u8]) -> Mpz

Converts to this type from the input type.
Source§

impl<'a> From<&'a Mpz> for Mpq

Source§

fn from(other: &Mpz) -> Mpq

Converts to this type from the input type.
Source§

impl<'b> From<&'b Mpz> for Option<i64>

Source§

fn from(other: &Mpz) -> Option<i64>

Converts to this type from the input type.
Source§

impl<'b> From<&'b Mpz> for Option<u64>

Source§

fn from(other: &Mpz) -> Option<u64>

Converts to this type from the input type.
Source§

impl<'b> From<&'b Mpz> for Vec<u8>

Source§

fn from(other: &Mpz) -> Vec<u8>

Converts to this type from the input type.
Source§

impl<'a> From<&'a Mpz> for f64

Source§

fn from(other: &Mpz) -> f64

Converts to this type from the input type.
Source§

impl From<Mpz> for Mpq

Source§

fn from(other: Mpz) -> Mpq

Converts to this type from the input type.
Source§

impl From<i32> for Mpz

Source§

fn from(other: i32) -> Mpz

Converts to this type from the input type.
Source§

impl From<i64> for Mpz

Source§

fn from(other: i64) -> Mpz

Converts to this type from the input type.
Source§

impl From<u32> for Mpz

Source§

fn from(other: u32) -> Mpz

Converts to this type from the input type.
Source§

impl From<u64> for Mpz

Source§

fn from(other: u64) -> Mpz

Converts to this type from the input type.
Source§

impl FromStr for Mpz

Source§

type Err = ParseMpzError

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

fn from_str(s: &str) -> Result<Self, Self::Err>

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

impl Hash for Mpz

Source§

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

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<'a, 'b> Mul<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a Mpz> for i64

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a Mpz> for u64

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> Mul<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl Mul<Mpz> for i64

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl Mul<Mpz> for u64

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> Mul<i64> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: i64) -> Mpz

Performs the * operation. Read more
Source§

impl Mul<i64> for Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: i64) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> Mul<u64> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> Mpz

Performs the * operation. Read more
Source§

impl Mul<u64> for Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> Mpz

Performs the * operation. Read more
Source§

impl Mul for Mpz

Source§

type Output = Mpz

The resulting type after applying the * operator.
Source§

fn mul(self, other: Mpz) -> Mpz

Performs the * operation. Read more
Source§

impl<'a> MulAssign<&'a Mpz> for Mpz

Source§

fn mul_assign(&mut self, other: &Mpz)

Performs the *= operation. Read more
Source§

impl MulAssign<i64> for Mpz

Source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
Source§

impl MulAssign<u64> for Mpz

Source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
Source§

impl MulAssign for Mpz

Source§

fn mul_assign(&mut self, other: Mpz)

Performs the *= operation. Read more
Source§

impl<'b> Neg for &'b Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn neg(self) -> Mpz

Performs the unary - operation. Read more
Source§

impl Neg for Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn neg(self) -> Mpz

Performs the unary - operation. Read more
Source§

impl<'b> Not for &'b Mpz

Source§

type Output = Mpz

The resulting type after applying the ! operator.
Source§

fn not(self) -> Mpz

Performs the unary ! operation. Read more
Source§

impl Not for Mpz

Source§

type Output = Mpz

The resulting type after applying the ! operator.
Source§

fn not(self) -> Mpz

Performs the unary ! operation. Read more
Source§

impl One for Mpz

Source§

fn one() -> Mpz

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl Ord for Mpz

Source§

fn cmp(&self, other: &Mpz) -> 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 Mpz

Source§

fn eq(&self, other: &Mpz) -> 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 Mpz

Source§

fn partial_cmp(&self, other: &Mpz) -> 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<'a, 'b> Rem<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the % operator.
Source§

fn rem(self, other: &Mpz) -> Mpz

Performs the % operation. Read more
Source§

impl<'a> Rem<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the % operator.
Source§

fn rem(self, other: &Mpz) -> Mpz

Performs the % operation. Read more
Source§

impl<'a> Rem<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the % operator.
Source§

fn rem(self, other: Mpz) -> Mpz

Performs the % operation. Read more
Source§

impl<'a> Rem<u64> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the % operator.
Source§

fn rem(self, other: u64) -> Mpz

Performs the % operation. Read more
Source§

impl Rem<u64> for Mpz

Source§

type Output = Mpz

The resulting type after applying the % operator.
Source§

fn rem(self, other: u64) -> Mpz

Performs the % operation. Read more
Source§

impl Rem for Mpz

Source§

type Output = Mpz

The resulting type after applying the % operator.
Source§

fn rem(self, other: Mpz) -> Mpz

Performs the % operation. Read more
Source§

impl<'a> RemAssign<&'a Mpz> for Mpz

Source§

fn rem_assign(&mut self, other: &Mpz)

Performs the %= operation. Read more
Source§

impl RemAssign<u64> for Mpz

Source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
Source§

impl RemAssign for Mpz

Source§

fn rem_assign(&mut self, other: Mpz)

Performs the %= operation. Read more
Source§

impl<'b> Shl<usize> for &'b Mpz

Source§

type Output = Mpz

The resulting type after applying the << operator.
Source§

fn shl(self, other: usize) -> Mpz

Performs the << operation. Read more
Source§

impl Shl<usize> for Mpz

Source§

type Output = Mpz

The resulting type after applying the << operator.
Source§

fn shl(self, other: usize) -> Mpz

Performs the << operation. Read more
Source§

impl ShlAssign<usize> for Mpz

Source§

fn shl_assign(&mut self, other: usize)

Performs the <<= operation. Read more
Source§

impl<'b> Shr<usize> for &'b Mpz

Source§

type Output = Mpz

The resulting type after applying the >> operator.
Source§

fn shr(self, other: usize) -> Mpz

Performs the >> operation. Read more
Source§

impl Shr<usize> for Mpz

Source§

type Output = Mpz

The resulting type after applying the >> operator.
Source§

fn shr(self, other: usize) -> Mpz

Performs the >> operation. Read more
Source§

impl ShrAssign<usize> for Mpz

Source§

fn shr_assign(&mut self, other: usize)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> Sub<&'b Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Mpz) -> Mpz

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a Mpz> for Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Mpz) -> Mpz

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a Mpz> for u64

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a Mpz) -> Mpz

Performs the - operation. Read more
Source§

impl<'a> Sub<Mpz> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: Mpz) -> Mpz

Performs the - operation. Read more
Source§

impl Sub<Mpz> for u64

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: Mpz) -> Mpz

Performs the - operation. Read more
Source§

impl<'a> Sub<u64> for &'a Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: u64) -> Mpz

Performs the - operation. Read more
Source§

impl Sub<u64> for Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: u64) -> Mpz

Performs the - operation. Read more
Source§

impl Sub for Mpz

Source§

type Output = Mpz

The resulting type after applying the - operator.
Source§

fn sub(self, other: Mpz) -> Mpz

Performs the - operation. Read more
Source§

impl<'a> SubAssign<&'a Mpz> for Mpz

Source§

fn sub_assign(&mut self, other: &Mpz)

Performs the -= operation. Read more
Source§

impl SubAssign<u64> for Mpz

Source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
Source§

impl SubAssign for Mpz

Source§

fn sub_assign(&mut self, other: Mpz)

Performs the -= operation. Read more
Source§

impl Zero for Mpz

Source§

fn zero() -> Mpz

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 Eq for Mpz

Source§

impl Send for Mpz

Source§

impl Sync for Mpz

Auto Trait Implementations§

§

impl Freeze for Mpz

§

impl RefUnwindSafe for Mpz

§

impl Unpin for Mpz

§

impl UnwindSafe for Mpz

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<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<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, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

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, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,