[−][src]Struct num_rug_adapter::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]
impl PowAssign<u32> for Integer
[src]
fn pow_assign(&mut self, rhs: u32)
[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]
fn cmp(&self, other: &Integer) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Integer> for Integer
[src]
impl PartialEq<i64> for Integer
[src]
impl PartialOrd<Integer> for Integer
[src]
fn partial_cmp(&self, other: &Integer) -> Option<Ordering>
[src]
fn lt(&self, other: &Integer) -> bool
[src]
fn le(&self, other: &Integer) -> bool
[src]
fn gt(&self, other: &Integer) -> bool
[src]
fn ge(&self, other: &Integer) -> bool
[src]
impl PartialOrd<i64> for Integer
[src]
fn partial_cmp(&self, other: &i64) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[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.
fn rem(self, other: Integer) -> Self::Output
[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 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 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 Neg for Integer
[src]
impl AddAssign<i64> for Integer
[src]
fn add_assign(&mut self, other: i64)
[src]
impl<'_> AddAssign<&'_ Integer> for Integer
[src]
fn add_assign(&mut self, other: &Integer)
[src]
impl<'_> MulAssign<&'_ Integer> for Integer
[src]
fn mul_assign(&mut self, other: &Integer)
[src]
impl Not for Integer
[src]
type Output = Integer
The resulting type after applying the !
operator.
fn not(self) -> 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 BitXor<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the ^
operator.
fn bitxor(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 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 Hash for Integer
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,