[−][src]Struct rug_maths::integer::Integer
Fields
val: Integer
Trait Implementations
impl<'a> Add<&'a Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, rhs: &Integer) -> Self::Output
[src]
impl<'a> Add<&'a Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Integer) -> Self::Output
[src]
impl<B> Add<B> for Integer where
Integer: Add<B, Output = Integer>,
[src]
Integer: Add<B, Output = Integer>,
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Add<B> for &'a Integer where
Integer: Add<B, Output = Integer>,
[src]
Integer: Add<B, Output = Integer>,
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl Add<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, rhs: Integer) -> Self::Output
[src]
impl<'a> Add<Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, rhs: Integer) -> Self::Output
[src]
impl<'a> AddAssign<&'a Integer> for Integer
[src]
fn add_assign(&mut self, rhs: &Integer)
[src]
impl<B> AddAssign<B> for Integer where
Integer: AddAssign<B>,
[src]
Integer: AddAssign<B>,
fn add_assign(&mut self, rhs: B)
[src]
impl AddAssign<Integer> for Integer
[src]
fn add_assign(&mut self, rhs: Integer)
[src]
impl AddAssociative for Integer
[src]
impl AddCommutative for Integer
[src]
impl AddOrdered for Integer
[src]
impl ArchimedeanProperty for Integer
[src]
impl Clone for Integer
[src]
impl Debug for Integer
[src]
impl Display for Integer
[src]
impl Distributive<Integer> for Integer
[src]
impl<'a> Div<&'a Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, rhs: &Integer) -> Self::Output
[src]
impl<'a> Div<&'a Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Integer) -> Self::Output
[src]
impl<B> Div<B> for Integer where
Integer: Div<B, Output = Integer>,
[src]
Integer: Div<B, Output = Integer>,
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Div<B> for &'a Integer where
Integer: Div<B, Output = Integer>,
[src]
Integer: Div<B, Output = Integer>,
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl Div<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, rhs: Integer) -> Self::Output
[src]
impl<'a> Div<Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the /
operator.
fn div(self, rhs: Integer) -> Self::Output
[src]
impl<'a> DivAssign<&'a Integer> for Integer
[src]
fn div_assign(&mut self, rhs: &Integer)
[src]
impl<B> DivAssign<B> for Integer where
Integer: DivAssign<B>,
[src]
Integer: DivAssign<B>,
fn div_assign(&mut self, rhs: B)
[src]
impl DivAssign<Integer> for Integer
[src]
fn div_assign(&mut self, rhs: Integer)
[src]
impl Divisibility for Integer
[src]
fn divides(self, rhs: Self) -> bool
[src]
fn divide(self, rhs: Self) -> Option<Self>
[src]
fn unit(&self) -> bool
[src]
fn inverse(self) -> Option<Self>
[src]
impl Eq for Integer
[src]
impl From<Integer> for Integer
[src]
impl From<bool> for Integer
[src]
impl From<i128> for Integer
[src]
impl From<i16> for Integer
[src]
impl From<i32> for Integer
[src]
impl From<i64> for Integer
[src]
impl From<i8> for Integer
[src]
impl From<isize> for Integer
[src]
impl From<u128> for Integer
[src]
impl From<u16> 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 FromPrimitive for Integer
[src]
fn from_i64(n: i64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
[src]
impl GCD for Integer
[src]
fn gcd(self, rhs: Self) -> Self
[src]
Algorithm borrowed from gcd
crate
fn lcm(self, rhs: Self) -> Self
[src]
impl Inv for Integer
[src]
impl<'a> Mul<&'a Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: &Integer) -> Self::Output
[src]
impl<'a> Mul<&'a Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Integer) -> Self::Output
[src]
impl<B> Mul<B> for Integer where
Integer: Mul<B, Output = Integer>,
[src]
Integer: Mul<B, Output = Integer>,
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Mul<B> for &'a Integer where
Integer: Mul<B, Output = Integer>,
[src]
Integer: Mul<B, Output = Integer>,
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl Mul<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: Integer) -> Self::Output
[src]
impl<'a> Mul<Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: Integer) -> Self::Output
[src]
impl<'a> MulAssign<&'a Integer> for Integer
[src]
fn mul_assign(&mut self, rhs: &Integer)
[src]
impl<B> MulAssign<B> for Integer where
Integer: MulAssign<B>,
[src]
Integer: MulAssign<B>,
fn mul_assign(&mut self, rhs: B)
[src]
impl MulAssign<Integer> for Integer
[src]
fn mul_assign(&mut self, rhs: Integer)
[src]
impl MulAssociative for Integer
[src]
impl MulCommutative for Integer
[src]
impl MulOrdered for Integer
[src]
impl Neg for Integer
[src]
type Output = Integer
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl NoZeroDivisors for Integer
[src]
impl One 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 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 Primality for Integer
[src]
impl<'a> Rem<&'a Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, rhs: &Integer) -> Self::Output
[src]
impl<'a> Rem<&'a Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, rhs: &'a Integer) -> Self::Output
[src]
impl<B> Rem<B> for Integer where
Integer: Rem<B, Output = Integer>,
[src]
Integer: Rem<B, Output = Integer>,
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Rem<B> for &'a Integer where
Integer: Rem<B, Output = Integer>,
[src]
Integer: Rem<B, Output = Integer>,
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, rhs: B) -> Self::Output
[src]
impl Rem<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, rhs: Integer) -> Self::Output
[src]
impl<'a> Rem<Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the %
operator.
fn rem(self, rhs: Integer) -> Self::Output
[src]
impl<'a> RemAssign<&'a Integer> for Integer
[src]
fn rem_assign(&mut self, rhs: &Integer)
[src]
impl<B> RemAssign<B> for Integer where
Integer: RemAssign<B>,
[src]
Integer: RemAssign<B>,
fn rem_assign(&mut self, rhs: B)
[src]
impl RemAssign<Integer> for Integer
[src]
fn rem_assign(&mut self, rhs: Integer)
[src]
impl Sign for Integer
[src]
impl StructuralEq for Integer
[src]
impl StructuralPartialEq for Integer
[src]
impl<'a> Sub<&'a Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, rhs: &Integer) -> Self::Output
[src]
impl<'a> Sub<&'a Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Integer) -> Self::Output
[src]
impl<B> Sub<B> for Integer where
Integer: Sub<B, Output = Integer>,
[src]
Integer: Sub<B, Output = Integer>,
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Sub<B> for &'a Integer where
Integer: Sub<B, Output = Integer>,
[src]
Integer: Sub<B, Output = Integer>,
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl Sub<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, rhs: Integer) -> Self::Output
[src]
impl<'a> Sub<Integer> for &'a Integer
[src]
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, rhs: Integer) -> Self::Output
[src]
impl<'a> SubAssign<&'a Integer> for Integer
[src]
fn sub_assign(&mut self, rhs: &Integer)
[src]
impl<B> SubAssign<B> for Integer where
Integer: SubAssign<B>,
[src]
Integer: SubAssign<B>,
fn sub_assign(&mut self, rhs: B)
[src]
impl SubAssign<Integer> for Integer
[src]
fn sub_assign(&mut self, rhs: Integer)
[src]
impl ToPrimitive for Integer
[src]
fn to_i64(&self) -> Option<i64>
[src]
fn to_u64(&self) -> Option<u64>
[src]
fn to_isize(&self) -> Option<isize>
[src]
fn to_i8(&self) -> Option<i8>
[src]
fn to_i16(&self) -> Option<i16>
[src]
fn to_i32(&self) -> Option<i32>
[src]
fn to_i128(&self) -> Option<i128>
[src]
fn to_usize(&self) -> Option<usize>
[src]
fn to_u8(&self) -> Option<u8>
[src]
fn to_u16(&self) -> Option<u16>
[src]
fn to_u32(&self) -> Option<u32>
[src]
fn to_u128(&self) -> Option<u128>
[src]
fn to_f32(&self) -> Option<f32>
[src]
fn to_f64(&self) -> Option<f64>
[src]
impl UniquelyFactorizable for Integer
[src]
impl Zero for Integer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
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,
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<G> MulN for G where
G: AddSemigroup + Zero,
[src]
G: AddSemigroup + Zero,
impl<G> MulZ for G where
G: Negatable + AddMonoid,
[src]
G: Negatable + AddMonoid,
fn mul_z<N>(self, n: N) -> Self where
N: IntegerSubset,
[src]
N: IntegerSubset,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
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>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<G> PowN for G where
G: MulSemigroup + One,
[src]
G: MulSemigroup + One,
impl<G> PowZ for G where
G: Invertable + MulMonoid,
[src]
G: Invertable + MulMonoid,
fn pow_z<Z>(self, n: Z) -> Self where
Z: IntegerSubset,
[src]
Z: IntegerSubset,
impl<T, Base> RefNum<Base> for T where
T: NumOps<Base, Base> + NumOps<&'r Base, Base>,
[src]
T: NumOps<Base, Base> + NumOps<&'r Base, Base>,
impl<G> Signed for G where
G: PartialOrd<G> + Zero,
[src]
G: PartialOrd<G> + Zero,
default fn positive(&self) -> bool
[src]
default fn negative(&self) -> bool
[src]
default fn non_negative(&self) -> bool
[src]
default fn non_positive(&self) -> bool
[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>,