[][src]Struct rug_maths::integer::Integer

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 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.

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 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]

impl GCD for Integer[src]

fn gcd(self, rhs: Self) -> Self[src]

Algorithm borrowed from gcd crate

impl Inv for Integer[src]

type Output = Integer

The result after applying the operator.

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 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 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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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: Negatable + AddMonoid
[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<G> PowN for G where
    G: MulSemigroup + One
[src]

impl<G> PowZ for G where
    G: Invertable + MulMonoid
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + NumOps<&'r Base, Base>, 
[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.