Struct num_rug_adapter::Integer [−][src]
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.
fn add(self, other: &Integer) -> Self::Output
[src]
impl Add<&'_ Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, other: &Integer) -> Self::Output
[src]
impl Add<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, other: Integer) -> Self::Output
[src]
impl Add<Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, other: Integer) -> Self::Output
[src]
impl AddAssign<&'_ Integer> for Integer
[src]
fn add_assign(&mut self, other: &Integer)
[src]
impl AddAssign<i64> for Integer
[src]
fn add_assign(&mut self, other: i64)
[src]
impl BitAnd<&'_ Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the &
operator.
fn bitand(self, other: &Integer) -> Self::Output
[src]
impl BitAnd<&'_ Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the &
operator.
fn bitand(self, other: &Integer) -> Self::Output
[src]
impl BitAnd<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the &
operator.
fn bitand(self, other: Integer) -> Self::Output
[src]
impl BitAnd<Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the &
operator.
fn bitand(self, other: Integer) -> Self::Output
[src]
impl BitOr<&'_ Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the |
operator.
fn bitor(self, other: &Integer) -> Self::Output
[src]
impl BitOr<&'_ Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the |
operator.
fn bitor(self, other: &Integer) -> Self::Output
[src]
impl BitOr<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the |
operator.
fn bitor(self, other: Integer) -> Self::Output
[src]
impl BitOr<Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the |
operator.
fn bitor(self, other: Integer) -> Self::Output
[src]
impl BitXor<&'_ Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the ^
operator.
fn bitxor(self, other: &Integer) -> Self::Output
[src]
impl BitXor<&'_ Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the ^
operator.
fn bitxor(self, other: &Integer) -> Self::Output
[src]
impl BitXor<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the ^
operator.
fn bitxor(self, other: Integer) -> Self::Output
[src]
impl BitXor<Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the ^
operator.
fn bitxor(self, other: Integer) -> Self::Output
[src]
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.
fn div(self, other: &Integer) -> Integer
[src]
impl Div<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, other: Integer) -> Integer
[src]
impl Div<Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, other: Integer) -> Integer
[src]
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Integer
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<&'_ Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, other: &Integer) -> Self::Output
[src]
impl Mul<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, other: Integer) -> Self::Output
[src]
impl Mul<u32> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, other: u32) -> Self::Output
[src]
impl MulAssign<&'_ Integer> for Integer
[src]
fn mul_assign(&mut self, other: &Integer)
[src]
impl Neg for Integer
[src]
impl NegAssign for Integer
[src]
fn neg_assign(&mut self)
[src]
impl Not for Integer
[src]
type Output = Integer
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl Not for &Integer
[src]
type Output = Integer
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl Ord for Integer
[src]
fn cmp(&self, other: &Integer) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[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]
fn partial_cmp(&self, other: &Integer) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<i32> for Integer
[src]
fn partial_cmp(&self, other: &i32) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<i64> for Integer
[src]
fn partial_cmp(&self, other: &i64) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<isize> for Integer
[src]
fn partial_cmp(&self, other: &isize) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<usize> for Integer
[src]
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Pow<u32> for Integer
[src]
impl PowAssign<u32> for Integer
[src]
fn pow_assign(&mut self, rhs: u32)
[src]
impl Rem<&'_ Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, other: &Integer) -> Self::Output
[src]
impl Rem<&'_ Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, other: &Integer) -> Self::Output
[src]
impl Rem<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, other: Integer) -> Self::Output
[src]
impl Rem<Integer> for &Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, other: Integer) -> Self::Output
[src]
impl Shl<u32> for Integer
[src]
type Output = Integer
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> Self::Output
[src]
impl Shl<u32> for &Integer
[src]
type Output = Integer
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> Self::Output
[src]
impl Shr<u32> for Integer
[src]
type Output = Integer
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> Self::Output
[src]
impl Shr<u32> for &Integer
[src]
type Output = Integer
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> Self::Output
[src]
impl ShrAssign<u32> for Integer
[src]
fn shr_assign(&mut self, rhs: u32)
[src]
impl StructuralEq for Integer
[src]
impl StructuralPartialEq for Integer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Integer
[src]
impl Send for Integer
[src]
impl Sync for Integer
[src]
impl Unpin for Integer
[src]
impl UnwindSafe for Integer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,