Struct rug_maths::Integer[][src]

pub struct Integer {
    pub val: Integer,
}

Fields

val: Integer

Trait Implementations

impl<'a> Add<&'a Integer> for Integer[src]

type Output = Integer

The resulting type after applying the + operator.

impl<'a> Add<&'a Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the + operator.

impl<B> Add<B> for Integer where
    Integer: Add<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the + operator.

impl<'a, B> Add<B> for &'a Integer where
    Integer: Add<B, Output = 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<'a> Add<Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the + operator.

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

impl<B> AddAssign<B> for Integer where
    Integer: AddAssign<B>, 
[src]

impl AddAssign<Integer> for Integer[src]

impl AddAssociative for Integer[src]

impl AddCommutative for Integer[src]

impl AddOrdered for Integer[src]

impl ArchimedeanDiv for Integer[src]

impl ArchimedeanProperty for Integer[src]

impl Bezout for Integer[src]

impl CheckedAdd for Integer[src]

impl CheckedDiv for Integer[src]

impl CheckedMul for Integer[src]

impl CheckedNeg for Integer[src]

impl CheckedRem for Integer[src]

impl CheckedShl for Integer[src]

impl CheckedShr for Integer[src]

impl CheckedSub for Integer[src]

impl Clone for Integer[src]

impl ComplexSubset for Integer[src]

type Real = Float

type Natural = Integer

type Integer = Integer

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.

impl<'a> Div<&'a Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the / operator.

impl<B> Div<B> for Integer where
    Integer: Div<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the / operator.

impl<'a, B> Div<B> for &'a Integer where
    Integer: Div<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the / operator.

impl Div<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the / operator.

impl<'a> Div<Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the / operator.

impl<'a> DivAssign<&'a Integer> for Integer[src]

impl<B> DivAssign<B> for Integer where
    Integer: DivAssign<B>, 
[src]

impl DivAssign<Integer> for Integer[src]

impl Divisibility for Integer[src]

impl Eq for Integer[src]

impl EuclideanDiv for Integer[src]

type Naturals = Integer

The specific type used for the Euclidean Norm

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

impl FromPrimitive for Integer[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

impl<'a> Mul<&'a Integer> for Integer[src]

type Output = Integer

The resulting type after applying the * operator.

impl<'a> Mul<&'a Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the * operator.

impl<B> Mul<B> for Integer where
    Integer: Mul<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the * operator.

impl<'a, B> Mul<B> for &'a Integer where
    Integer: Mul<B, Output = 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<'a> Mul<Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the * operator.

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

impl<B> MulAssign<B> for Integer where
    Integer: MulAssign<B>, 
[src]

impl MulAssign<Integer> for Integer[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.

impl NoZeroDivisors for Integer[src]

impl One for Integer[src]

impl Ord for Integer[src]

impl PartialEq<Integer> for Integer[src]

impl PartialOrd<Integer> for Integer[src]

impl Primality for Integer[src]

fn prime(&self) -> bool[src]

Trial division algorithm

impl<'a> Rem<&'a Integer> for Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl<'a> Rem<&'a Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl<B> Rem<B> for Integer where
    Integer: Rem<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the % operator.

impl<'a, B> Rem<B> for &'a Integer where
    Integer: Rem<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the % operator.

impl Rem<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl<'a> Rem<Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the % operator.

impl<'a> RemAssign<&'a Integer> for Integer[src]

impl<B> RemAssign<B> for Integer where
    Integer: RemAssign<B>, 
[src]

impl RemAssign<Integer> for Integer[src]

impl<B> Shl<B> for Integer where
    Integer: Shl<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the << operator.

impl<'a, B> Shl<B> for &'a Integer where
    Integer: Shl<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the << operator.

impl<B> ShlAssign<B> for Integer where
    Integer: ShlAssign<B>, 
[src]

impl<B> Shr<B> for Integer where
    Integer: Shr<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the >> operator.

impl<'a, B> Shr<B> for &'a Integer where
    Integer: Shr<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the >> operator.

impl<B> ShrAssign<B> for Integer where
    Integer: ShrAssign<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.

impl<'a> Sub<&'a Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the - operator.

impl<B> Sub<B> for Integer where
    Integer: Sub<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the - operator.

impl<'a, B> Sub<B> for &'a Integer where
    Integer: Sub<B, Output = Integer>, 
[src]

type Output = Integer

The resulting type after applying the - operator.

impl Sub<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the - operator.

impl<'a> Sub<Integer> for &'a Integer[src]

type Output = Integer

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a Integer> for Integer[src]

impl<B> SubAssign<B> for Integer where
    Integer: SubAssign<B>, 
[src]

impl SubAssign<Integer> for Integer[src]

impl ToPrimitive for Integer[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]

impl<T> Az for T[src]

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

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

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

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

impl<G> MulN for G where
    G: AddSemigroup + Zero
[src]

impl<G> MulZ for G where
    G: AddMonoid + Negatable
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

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]

impl<T> OverflowingAs for T[src]

impl<G> PowN for G where
    G: MulSemigroup + One
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>, 
[src]

impl<T> SaturatingAs for T[src]

impl<G> Signed for G where
    G: PartialOrd<G> + Zero
[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> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]