Struct num_rug_adapter::Integer[][src]

pub struct Integer(_);

Implementations

impl Integer[src]

pub fn new() -> Self[src]

pub fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseBigIntError>[src]

pub fn to_u8(&self) -> Option<u8>[src]

pub fn to_u32(&self) -> Option<u32>[src]

pub fn to_u64(&self) -> Option<u64>[src]

pub fn to_usize(&self) -> Option<usize>[src]

pub fn to_i32(&self) -> Option<i32>[src]

pub fn to_isize(&self) -> Option<isize>[src]

pub fn to_f64(&self) -> f64[src]

pub fn abs(&self) -> Self[src]

pub fn abs_ref(&self) -> Self[src]

pub fn div_rem(&self, other: Self) -> (Self, Self)[src]

pub fn div_rem_ref(&self, other: &Self) -> (Self, Self)[src]

pub fn div_rem_floor(&self, other: Self) -> (Self, Self)[src]

pub fn div_rem_floor_ref(&self, other: &Self) -> (Self, Self)[src]

pub fn mod_u(&self, modulo: u32) -> u32[src]

pub fn is_odd(&self) -> bool[src]

pub fn from_f64(v: f64) -> Option<Self>[src]

pub fn gcd_ref(&self, other: &Self) -> Self[src]

pub fn gcd(&self, other: &Self) -> Self[src]

Trait Implementations

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

type Output = Integer

The resulting type after applying the + operator.

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

type Output = Integer

The resulting type after applying the + operator.

impl Add<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the + operator.

impl Add<Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the + operator.

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

impl AddAssign<i64> for Integer[src]

impl BitAnd<&'_ Integer> for Integer[src]

type Output = Integer

The resulting type after applying the & operator.

impl BitAnd<&'_ Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the & operator.

impl BitAnd<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the & operator.

impl BitAnd<Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the & operator.

impl BitOr<&'_ Integer> for Integer[src]

type Output = Integer

The resulting type after applying the | operator.

impl BitOr<&'_ Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the | operator.

impl BitOr<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the | operator.

impl BitOr<Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the | operator.

impl BitXor<&'_ Integer> for Integer[src]

type Output = Integer

The resulting type after applying the ^ operator.

impl BitXor<&'_ Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the ^ operator.

impl BitXor<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the ^ operator.

impl BitXor<Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the ^ operator.

impl Clone for Integer[src]

impl Debug for Integer[src]

impl Display for Integer[src]

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

type Output = Integer

The resulting type after applying the / operator.

impl Div<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the / operator.

impl Div<Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the / operator.

impl Eq for Integer[src]

impl From<&'_ Integer> for Integer[src]

impl From<&'_ Integer> for Rational[src]

impl From<Integer> for Rational[src]

impl From<i32> for Integer[src]

impl From<isize> for Integer[src]

impl From<u32> for Integer[src]

impl From<u64> for Integer[src]

impl From<u8> for Integer[src]

impl From<usize> for Integer[src]

impl FromStr for Integer[src]

type Err = <BigInt as FromStr>::Err

The associated error which can be returned from parsing.

impl Hash for Integer[src]

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

type Output = Integer

The resulting type after applying the * operator.

impl Mul<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the * operator.

impl Mul<u32> for Integer[src]

type Output = Integer

The resulting type after applying the * operator.

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

impl Neg for Integer[src]

type Output = Integer

The resulting type after applying the - operator.

impl NegAssign for Integer[src]

impl Not for Integer[src]

type Output = Integer

The resulting type after applying the ! operator.

impl Not for &Integer[src]

type Output = Integer

The resulting type after applying the ! operator.

impl Ord for Integer[src]

impl PartialEq<Integer> for Integer[src]

impl PartialEq<i32> for Integer[src]

impl PartialEq<i64> for Integer[src]

impl PartialEq<isize> for Integer[src]

impl PartialEq<usize> for Integer[src]

impl PartialOrd<Integer> for Integer[src]

impl PartialOrd<i32> for Integer[src]

impl PartialOrd<i64> for Integer[src]

impl PartialOrd<isize> for Integer[src]

impl PartialOrd<usize> for Integer[src]

impl Pow<u32> for Integer[src]

type Output = Integer

impl PowAssign<u32> for Integer[src]

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

type Output = Integer

The resulting type after applying the % operator.

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

type Output = Integer

The resulting type after applying the % operator.

impl Rem<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl Rem<Integer> for &Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl Shl<u32> for Integer[src]

type Output = Integer

The resulting type after applying the << operator.

impl Shl<u32> for &Integer[src]

type Output = Integer

The resulting type after applying the << operator.

impl Shr<u32> for Integer[src]

type Output = Integer

The resulting type after applying the >> operator.

impl Shr<u32> for &Integer[src]

type Output = Integer

The resulting type after applying the >> operator.

impl ShrAssign<u32> for Integer[src]

impl StructuralEq for Integer[src]

impl StructuralPartialEq for Integer[src]

Auto Trait Implementations

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> 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.