Struct rug_maths::Integer [−][src]
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: &Self) -> 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: &Self)
[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: Self)
[src]
impl AddAssociative for Integer
[src]
impl AddCommutative for Integer
[src]
impl AddOrdered for Integer
[src]
impl ArchimedeanDiv for Integer
[src]
fn embed_nat<N: Natural>(n: N) -> Self
[src]
fn div_arch(self, rhs: Self) -> Self
[src]
fn rem_arch(self, rhs: Self) -> Self
[src]
fn div_alg_arch(self, rhs: Self) -> (Self, Self)
[src]
impl ArchimedeanProperty for Integer
[src]
impl Bezout for Integer
[src]
fn bezout_with_gcd(self, rhs: Self) -> (Self, Self, Self)
[src]
fn bezout_coefficients(self, rhs: Self) -> (Self, Self)
[src]
impl CheckedAdd for Integer
[src]
fn checked_add(&self, v: &Self) -> Option<Self>
[src]
impl CheckedDiv for Integer
[src]
fn checked_div(&self, v: &Self) -> Option<Self>
[src]
impl CheckedMul for Integer
[src]
fn checked_mul(&self, v: &Self) -> Option<Self>
[src]
impl CheckedNeg for Integer
[src]
fn checked_neg(&self) -> Option<Self>
[src]
impl CheckedRem for Integer
[src]
fn checked_rem(&self, v: &Self) -> Option<Self>
[src]
impl CheckedShl for Integer
[src]
fn checked_shl(&self, v: u32) -> Option<Self>
[src]
impl CheckedShr for Integer
[src]
fn checked_shr(&self, v: u32) -> Option<Self>
[src]
impl CheckedSub for Integer
[src]
fn checked_sub(&self, v: &Self) -> Option<Self>
[src]
impl Clone for Integer
[src]
impl ComplexSubset for Integer
[src]
type Real = Float
type Natural = Integer
type Integer = Integer
fn as_real(self) -> Self::Real
[src]
fn as_natural(self) -> Self::Natural
[src]
fn as_integer(self) -> Self::Integer
[src]
fn floor(self) -> Self
[src]
fn ceil(self) -> Self
[src]
fn round(self) -> Self
[src]
fn trunc(self) -> Self
[src]
fn fract(self) -> Self
[src]
fn im(self) -> Self
[src]
fn re(self) -> Self
[src]
fn conj(self) -> Self
[src]
pub fn modulus_sqrd(self) -> Self
[src]
pub fn modulus(self) -> Self::Real
[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: &Self) -> 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: &Self)
[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: Self)
[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 EuclideanDiv for Integer
[src]
type Naturals = Integer
The specific type used for the Euclidean Norm
fn euclid_norm(&self) -> Self::Naturals
[src]
fn div_euc(self, rhs: Self) -> Self
[src]
fn rem_euc(self, rhs: Self) -> Self
[src]
fn div_alg(self, rhs: Self) -> (Self, Self)
[src]
impl<T> From<T> for Integer where
Integer: From<T>,
[src]
Integer: From<T>,
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]
impl Integer for Integer
[src]
impl IntegerSubset for Integer
[src]
type Signed = Integer
This type’s corresponding signed Integer representation Read more
type Unsigned = Integer
This type’s corresponding unsigned Integer representation Read more
fn as_signed(self) -> Self::Signed
[src]
fn as_unsigned(self) -> Self::Unsigned
[src]
pub fn abs_unsigned(self) -> Self::Unsigned
[src]
pub fn two() -> Self
[src]
pub fn mul_two(self) -> Self
[src]
pub fn div_two(self) -> Self
[src]
pub fn even(&self) -> bool
[src]
pub fn odd(&self) -> bool
[src]
impl<'a> Mul<&'a Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, rhs: &Self) -> 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: &Self)
[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: Self)
[src]
impl MulAssociative for Integer
[src]
impl MulCommutative for Integer
[src]
impl MulOrdered for Integer
[src]
impl Natural 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]
#[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 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 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: &Self) -> 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: &Self)
[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: Self)
[src]
impl<B> Shl<B> for Integer where
Integer: Shl<B, Output = Integer>,
[src]
Integer: Shl<B, Output = Integer>,
type Output = Integer
The resulting type after applying the <<
operator.
fn shl(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Shl<B> for &'a Integer where
Integer: Shl<B, Output = Integer>,
[src]
Integer: Shl<B, Output = Integer>,
type Output = Integer
The resulting type after applying the <<
operator.
fn shl(self, rhs: B) -> Self::Output
[src]
impl<B> ShlAssign<B> for Integer where
Integer: ShlAssign<B>,
[src]
Integer: ShlAssign<B>,
fn shl_assign(&mut self, rhs: B)
[src]
impl<B> Shr<B> for Integer where
Integer: Shr<B, Output = Integer>,
[src]
Integer: Shr<B, Output = Integer>,
type Output = Integer
The resulting type after applying the >>
operator.
fn shr(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Shr<B> for &'a Integer where
Integer: Shr<B, Output = Integer>,
[src]
Integer: Shr<B, Output = Integer>,
type Output = Integer
The resulting type after applying the >>
operator.
fn shr(self, rhs: B) -> Self::Output
[src]
impl<B> ShrAssign<B> for Integer where
Integer: ShrAssign<B>,
[src]
Integer: ShrAssign<B>,
fn shr_assign(&mut self, rhs: B)
[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: &Self) -> 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: &Self)
[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: Self)
[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> Az for T
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
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: AddMonoid + Negatable,
[src]
G: AddMonoid + Negatable,
pub 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<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<G> PowN for G where
G: MulSemigroup + One,
[src]
G: MulSemigroup + One,
impl<T, Base> RefNum<Base> for T where
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
[src]
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<G> Signed for G where
G: PartialOrd<G> + Zero,
[src]
G: PartialOrd<G> + Zero,
pub default fn positive(&self) -> bool
[src]
pub default fn negative(&self) -> bool
[src]
pub default fn non_negative(&self) -> bool
[src]
pub 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,