Struct rug_maths::Rational[][src]

pub struct Rational {
    pub val: Rational,
}

Fields

val: Rational

Trait Implementations

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

type Output = Rational

The resulting type after applying the + operator.

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

type Output = Rational

The resulting type after applying the + operator.

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

type Output = Rational

The resulting type after applying the + operator.

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

type Output = Rational

The resulting type after applying the + operator.

impl Add<Rational> for Rational[src]

type Output = Rational

The resulting type after applying the + operator.

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

type Output = Rational

The resulting type after applying the + operator.

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

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

impl AddAssign<Rational> for Rational[src]

impl AddAssociative for Rational[src]

impl AddCommutative for Rational[src]

impl AddOrdered for Rational[src]

impl ArchimedeanProperty for Rational[src]

impl Clone for Rational[src]

impl ComplexSubset for Rational[src]

type Real = Float

type Natural = Integer

type Integer = Integer

impl Debug for Rational[src]

impl Display for Rational[src]

impl Distributive<Rational> for Rational[src]

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

type Output = Rational

The resulting type after applying the / operator.

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

type Output = Rational

The resulting type after applying the / operator.

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

type Output = Rational

The resulting type after applying the / operator.

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

type Output = Rational

The resulting type after applying the / operator.

impl Div<Rational> for Rational[src]

type Output = Rational

The resulting type after applying the / operator.

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

type Output = Rational

The resulting type after applying the / operator.

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

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

impl DivAssign<Rational> for Rational[src]

impl Divisibility for Rational[src]

impl Eq for Rational[src]

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

impl Inv for Rational[src]

type Output = Rational

The result after applying the operator.

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

type Output = Rational

The resulting type after applying the * operator.

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

type Output = Rational

The resulting type after applying the * operator.

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

type Output = Rational

The resulting type after applying the * operator.

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

type Output = Rational

The resulting type after applying the * operator.

impl Mul<Rational> for Rational[src]

type Output = Rational

The resulting type after applying the * operator.

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

type Output = Rational

The resulting type after applying the * operator.

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

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

impl MulAssign<Rational> for Rational[src]

impl MulAssociative for Rational[src]

impl MulCommutative for Rational[src]

impl MulOrdered for Rational[src]

impl Neg for Rational[src]

type Output = Rational

The resulting type after applying the - operator.

impl NoZeroDivisors for Rational[src]

impl One for Rational[src]

impl Ord for Rational[src]

impl PartialEq<Rational> for Rational[src]

impl PartialOrd<Rational> for Rational[src]

impl Sign for Rational[src]

impl StructuralEq for Rational[src]

impl StructuralPartialEq for Rational[src]

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

type Output = Rational

The resulting type after applying the - operator.

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

type Output = Rational

The resulting type after applying the - operator.

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

type Output = Rational

The resulting type after applying the - operator.

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

type Output = Rational

The resulting type after applying the - operator.

impl Sub<Rational> for Rational[src]

type Output = Rational

The resulting type after applying the - operator.

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

type Output = Rational

The resulting type after applying the - operator.

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

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

impl SubAssign<Rational> for Rational[src]

impl UniquelyFactorizable for Rational[src]

impl Zero for Rational[src]

Auto Trait Implementations

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: Negatable + AddMonoid
[src]

impl<T> OverflowingAs for T[src]

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

impl<G> PowZ for G where
    G: Invertable + MulMonoid
[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]