[][src]Struct num_rug_adapter::Integer

pub struct Integer(_);

Methods

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_usize(&self) -> Option<usize>[src]

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

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

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

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

pub fn div_rem_floor(&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(&self, other: &Self) -> Self[src]

Trait Implementations

impl Pow<u32> for Integer[src]

type Output = Integer

impl PowAssign<u32> for Integer[src]

impl From<i32> for Integer[src]

impl From<isize> for Integer[src]

impl From<u8> for Integer[src]

impl From<u32> for Integer[src]

impl From<usize> for Integer[src]

impl Clone for Integer[src]

impl Eq for Integer[src]

impl Ord for Integer[src]

impl PartialEq<Integer> for Integer[src]

impl PartialEq<i64> for Integer[src]

impl PartialOrd<Integer> for Integer[src]

impl PartialOrd<i64> for Integer[src]

impl Display for Integer[src]

impl Debug for Integer[src]

impl Rem<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl FromStr for Integer[src]

type Err = <BigInt as FromStr>::Err

The associated error which can be returned from parsing.

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 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 Neg for Integer[src]

type Output = Integer

The resulting type after applying the - operator.

impl AddAssign<i64> for Integer[src]

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

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

impl Not 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 BitXor<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 Shr<u32> for Integer[src]

type Output = Integer

The resulting type after applying the >> operator.

impl ShrAssign<u32> for Integer[src]

impl Hash for Integer[src]

impl StructuralPartialEq for Integer[src]

impl StructuralEq for Integer[src]

Auto Trait Implementations

impl Send for Integer

impl Sync for Integer

impl Unpin for Integer

impl UnwindSafe for Integer

impl RefUnwindSafe for Integer

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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