Struct rational::Rational

source ·
pub struct Rational { /* private fields */ }
Expand description

A rational number (a fraction of two integers).

Implementations§

source§

impl Rational

source

pub fn new<N, D>(numerator: N, denominator: D) -> Selfwhere N: Into<Self>, D: Into<Self>,

Construct a new Rational.

Panics
  • If the resulting denominator is 0.
source

pub fn new_checked<N, D>(numerator: N, denominator: D) -> Option<Self>where N: Into<Self>, D: Into<Self>,

Construct a new Rational, returning None if the denominator is 0.

source

pub fn from_mixed<T>(whole: i128, fract: T) -> Selfwhere T: Into<Self>,

Create a Rational from a mixed fraction.

Example
assert_eq!(Rational::from_mixed(1, (1, 2)), Rational::new(3, 2));
assert_eq!(Rational::from_mixed(-1, (-1, 2)), Rational::new(-3, 2));
source

pub fn integer(n: i128) -> Self

Shorthand for creating an integer Rational, eg. 5/1.

Example
assert_eq!(Rational::integer(5), Rational::new(5, 1));
assert_eq!(Rational::integer(-100), Rational::new(-100, 1));
source

pub fn zero() -> Self

Shorthand for 0/1.

source

pub fn one() -> Self

Shorthand for 1/1.

source

pub fn numerator(&self) -> i128

Get the numerator in this Rational.

Example
let r = Rational::new(4, 6);
assert_eq!(r.numerator(), 2); // `r` has been reduced to 2/3
source

pub fn set_numerator(&mut self, numerator: i128)

Set the numerator of this Rational. It is then automatically reduced.

Example
let mut r = Rational::new(4, 5);
r.set_numerator(10);
assert_eq!(r, Rational::new(2, 1)); // 10/5 reduces to 2/1
source

pub fn denominator(&self) -> i128

Get the denominator in this Rational.

Example
let r = Rational::new(4, 6);
assert_eq!(r.denominator(), 3); // `r` has been reduced to 2/3
source

pub fn set_denominator(&mut self, denominator: i128)

Set the denominator of this Rational. It is then automatically reduced.

Panics
  • If denominator is 0.
Example
let mut r = Rational::new(4, 5);
r.set_denominator(6);
assert_eq!(r, Rational::new(2, 3));
source

pub fn inverse_checked(self) -> Option<Self>

Returns the inverse of this Rational, or None if the denominator of the inverse is 0.

Example
let r = Rational::new(1, 2);
assert_eq!(r.inverse_checked(), Some(Rational::new(2, 1)));
let zero = Rational::new(0, 1);
assert!(zero.inverse_checked().is_none());
source

pub fn inverse(self) -> Self

Returns the inverse of this Rational.

Panics
  • If the numerator is 0, since then the inverse will be divided by 0.
Example
assert_eq!(Rational::new(1, 2).inverse(), Rational::new(2, 1));
source

pub fn decimal_value(self) -> f64

Returns the decimal value of this Rational. Equivalent to f64::from(self).

source

pub fn checked_add<T>(self, rhs: T) -> Option<Self>where T: Into<Self>,

Checked addition. Computes self + rhs, returning None if overflow occurred.

Notes

Keep in mind that there are various operations performed in order to add two rational numbers, which may lead to overflow for rationals with very large numerators or denominators, even though the rational number itself may be small.

Example
assert_eq!(Rational::new(1, 2).checked_add(Rational::new(2, 3)), Some(Rational::new(7, 6)));
assert_eq!(Rational::new(1, 2).checked_add(2_i32), Some(Rational::new(5, 2)));
assert!(Rational::new(1, 1).checked_add(i128::MAX).is_none());
source

pub fn checked_mul<T>(self, rhs: T) -> Option<Self>where T: Into<Self>,

Checked multiplication. Computes self * rhs, returning None if overflow occurred.

Notes

Keep in mind that there are various operations performed in order to multiply two rational numbers, which may lead to overflow for rationals with very large numerators or denominators, even though the rational number itself may be small.

Example
assert_eq!(Rational::new(1, 2).checked_mul(Rational::new(2, 3)), Some(Rational::new(1, 3)));
assert_eq!(Rational::new(1, 2).checked_mul(2_i32), Some(Rational::new(1, 1)));
assert!(Rational::new(2, 1).checked_mul(i128::MAX).is_none());
source

pub fn checked_sub<T>(self, rhs: T) -> Option<Self>where T: Into<Self>,

Checked subtraction. Computes self - rhs, returning None if overflow occurred.

Notes

Keep in mind that there are various operations performed in order to subtract two rational numbers, which may lead to overflow for rationals with very large numerators or denominators, even though the rational number itself may be small.

Example
assert_eq!(Rational::new(1, 2).checked_sub(Rational::new(2, 3)), Some(Rational::new(-1, 6)));
assert_eq!(Rational::new(1, 2).checked_sub(2_i32), Some(Rational::new(-3, 2)));
assert!(Rational::new(-10, 1).checked_sub(i128::MAX).is_none());
source

pub fn checked_div<T>(self, rhs: T) -> Option<Self>where T: Into<Self>,

Checked division. Computes self / rhs, returning None if overflow occurred.

Panics
  • If rhs == 0
Notes

Keep in mind that there are various operations performed in order to divide two rational numbers, which may lead to overflow for rationals with very large numerators or denominators, even though the rational number itself may be small.

Example
assert_eq!(Rational::new(1, 2).checked_div(Rational::new(2, 3)), Some(Rational::new(3, 4)));
assert_eq!(Rational::new(1, 2).checked_div(2_i32), Some(Rational::new(1, 4)));
assert!(Rational::new(1, i128::MAX).checked_div(i128::MAX).is_none());
source

pub fn pow(self, exp: i32) -> Rational

Computes self^exp.

Notes

Unlike the pow methods in std, this supports negative exponents, returning the inverse of the result. The exponent still needs to be an integer, since a rational number raised to the power of another rational number may be irrational.

Panics
  • If the numerator is 0 and exp is negative (since a negative exponent will result in an inversed fraction).
Example
assert_eq!(Rational::new(2, 3).pow(2), Rational::new(4, 9));
assert_eq!(Rational::new(1, 4).pow(-2), Rational::new(16, 1));
source

pub fn checked_pow(self, exp: i32) -> Option<Self>

Checked exponentiation. Computes self^exp, returning None if overflow occurred.

Notes

Unlike the pow methods in std, this supports negative exponents, returning the inverse of the result. The exponent still needs to be an integer, since a rational number raised to the power of another rational number may be irrational.

Panics
  • If the numerator is 0 and exp is negative (since a negative exponent will result in an inversed fraction).
Example
assert_eq!(Rational::new(2, 3).pow(2), Rational::new(4, 9));
assert_eq!(Rational::new(1, 4).pow(-2), Rational::new(16, 1));
source

pub fn checked_neg(self) -> Option<Self>

Checked negation. Computes -self, returning None if overflow occurred.

Notes

This only returns None if self.numerator() == i128::MIN.

Example
assert_eq!(Rational::new(1, 2).checked_neg(), Some(Rational::new(-1, 2)));
assert_eq!(Rational::new(-1, 2).checked_neg(), Some(Rational::new(1, 2)));
assert_eq!(Rational::new(i128::MIN, 1).checked_neg(), None);
source

pub fn abs(self) -> Self

Computes the absolute value of self.

Example
assert_eq!(Rational::new(-5, 3).abs(), Rational::new(5, 3));
source

pub fn is_integer(&self) -> bool

Returns true if self is an integer. This is a shorthand for self.denominator() == 1.

Example
assert!(Rational::new(2, 1).is_integer());
assert!(!Rational::new(1, 2).is_integer());
source

pub fn is_positive(&self) -> bool

Returns true if self is positive and false if it is zero or negative.

Example
assert!(Rational::new(1, 2).is_positive());
assert!(Rational::new(-1, -2).is_positive());
assert!(!Rational::new(-1, 2).is_positive());
assert!(!Rational::zero().is_positive());
source

pub fn is_negative(&self) -> bool

Returns true if self is negative and false if it is zero or positive.

Example
assert!(Rational::new(-1, 2).is_negative());
assert!(Rational::new(1, -2).is_negative());
assert!(!Rational::zero().is_negative());
source

pub fn mixed_fraction(self) -> (i128, Self)

Returns a tuple representing self as a mixed fraction.

Notes

The result is a tuple (whole: i128, fraction: Rational), such that whole + fraction == self. This means that while you might write -7/2 as a mixed fraction: -3½, the result will be a tuple (-3, -1/2).

Example
assert_eq!(Rational::new(7, 3).mixed_fraction(), (2, Rational::new(1, 3)));
let (mixed, fract) = Rational::new(-7, 2).mixed_fraction();
assert_eq!((mixed, fract), (-3, Rational::new(-1, 2)));
assert_eq!(mixed + fract, Rational::new(-7, 2));
source

pub fn round(self) -> Self

Returns the nearest integer to self. If a value is half-way between two integers, round away from 0.0.

Example
assert_eq!(Rational::new(1, 2).round(), Rational::integer(1));
assert_eq!(Rational::new(-1, 2).round(), Rational::integer(-1));
source

pub fn floor(self) -> Self

Returns the largest integer less than or equal to self.

Example
assert_eq!(Rational::new(4, 3).floor(), Rational::integer(1));
assert_eq!(Rational::new(-3, 2).floor(), Rational::integer(-2));
source

pub fn ceil(self) -> Self

Returns the smallest integer greater than or equal to self.

Example
assert_eq!(Rational::new(4, 3).ceil(), Rational::integer(2));
assert_eq!(Rational::new(-3, 2).ceil(), Rational::integer(-1));
source

pub fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseRationalError>

Converts a string slice in a given base to a Rational.

The string is expected be in one of the following two forms:

  • "x/y", where x and y follow the format expected by the from_str_radix methods in the standard library.
  • "x", where x follow the format expected by the from_str_radix methods in the standard library.
Panics
  • If radix is not in the range from 2 to 36.
Examples
assert_eq!(Rational::from_str_radix("1/2", 10), Ok(Rational::new(1, 2)));
assert_eq!(Rational::from_str_radix("110", 2), Ok(Rational::integer(6)));
assert_eq!(Rational::from_str_radix("-1/2", 10), Ok(Rational::new(-1, 2)));
assert_eq!(Rational::from_str_radix("1/-2", 10), Ok(Rational::new(-1, 2)));

Trait Implementations§

source§

impl Add<&Rational> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &i128

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &i16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &i32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &i64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &i8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &u16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &u32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &u64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for &u8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for i128

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for i16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for i32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for i64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for i8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for u16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for u32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for u64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Rational> for u8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i128> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i128> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i16> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i16> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i32> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i32> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i64> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i64> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i8> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i8> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u16> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u16> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u32> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u32> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u64> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u64> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u8> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u8> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &i128

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &i16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &i32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &i64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &i8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &u16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &u32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &u64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for &u8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for i128

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for i16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for i32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for i64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for i8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for u16

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for u32

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for u64

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Rational> for u8

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i128> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i128> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i64> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i64> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u16> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u16> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u8> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u8> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<&i128> for Rational

source§

fn add_assign(&mut self, rhs: &i128)

Performs the += operation. Read more
source§

impl AddAssign<&i16> for Rational

source§

fn add_assign(&mut self, rhs: &i16)

Performs the += operation. Read more
source§

impl AddAssign<&i32> for Rational

source§

fn add_assign(&mut self, rhs: &i32)

Performs the += operation. Read more
source§

impl AddAssign<&i64> for Rational

source§

fn add_assign(&mut self, rhs: &i64)

Performs the += operation. Read more
source§

impl AddAssign<&i8> for Rational

source§

fn add_assign(&mut self, rhs: &i8)

Performs the += operation. Read more
source§

impl AddAssign<&u16> for Rational

source§

fn add_assign(&mut self, rhs: &u16)

Performs the += operation. Read more
source§

impl AddAssign<&u32> for Rational

source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
source§

impl AddAssign<&u64> for Rational

source§

fn add_assign(&mut self, rhs: &u64)

Performs the += operation. Read more
source§

impl AddAssign<&u8> for Rational

source§

fn add_assign(&mut self, rhs: &u8)

Performs the += operation. Read more
source§

impl AddAssign<i128> for Rational

source§

fn add_assign(&mut self, rhs: i128)

Performs the += operation. Read more
source§

impl AddAssign<i16> for Rational

source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for Rational

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign<i64> for Rational

source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
source§

impl AddAssign<i8> for Rational

source§

fn add_assign(&mut self, rhs: i8)

Performs the += operation. Read more
source§

impl AddAssign<u16> for Rational

source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for Rational

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for Rational

source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for Rational

source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
source§

impl AddAssign for Rational

source§

fn add_assign(&mut self, rhs: Rational)

Performs the += operation. Read more
source§

impl Clone for Rational

source§

fn clone(&self) -> Rational

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Rational

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Rational

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<&Rational> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &i128

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &i16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &i32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &i64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &i8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &u16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &u32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &u64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for &u8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for i128

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for i16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for i32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for i64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for i8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for u16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for u32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for u64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Rational> for u8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i128> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i128> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i16> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i16> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i32> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i32> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i64> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i64> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i8> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i8> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u16> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u16> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u32> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u32> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u64> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u64> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u8> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&u8> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &i128

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &i16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &i32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &i64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &i8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &u16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &u32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &u64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for &u8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for i128

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for i16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for i32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for i64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for i8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for u16

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for u32

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for u64

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Rational> for u8

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i128> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i128> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i64> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i64> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i8> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i8> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u16> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u16> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u64> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u64> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u8> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u8> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<&i128> for Rational

source§

fn div_assign(&mut self, rhs: &i128)

Performs the /= operation. Read more
source§

impl DivAssign<&i16> for Rational

source§

fn div_assign(&mut self, rhs: &i16)

Performs the /= operation. Read more
source§

impl DivAssign<&i32> for Rational

source§

fn div_assign(&mut self, rhs: &i32)

Performs the /= operation. Read more
source§

impl DivAssign<&i64> for Rational

source§

fn div_assign(&mut self, rhs: &i64)

Performs the /= operation. Read more
source§

impl DivAssign<&i8> for Rational

source§

fn div_assign(&mut self, rhs: &i8)

Performs the /= operation. Read more
source§

impl DivAssign<&u16> for Rational

source§

fn div_assign(&mut self, rhs: &u16)

Performs the /= operation. Read more
source§

impl DivAssign<&u32> for Rational

source§

fn div_assign(&mut self, rhs: &u32)

Performs the /= operation. Read more
source§

impl DivAssign<&u64> for Rational

source§

fn div_assign(&mut self, rhs: &u64)

Performs the /= operation. Read more
source§

impl DivAssign<&u8> for Rational

source§

fn div_assign(&mut self, rhs: &u8)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for Rational

source§

fn div_assign(&mut self, rhs: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for Rational

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for Rational

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for Rational

source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for Rational

source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for Rational

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for Rational

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for Rational

source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for Rational

source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
source§

impl DivAssign for Rational

source§

fn div_assign(&mut self, rhs: Rational)

Performs the /= operation. Read more
source§

impl From<&i128> for Rational

source§

fn from(v: &i128) -> Self

Converts to this type from the input type.
source§

impl From<&i16> for Rational

source§

fn from(v: &i16) -> Self

Converts to this type from the input type.
source§

impl From<&i32> for Rational

source§

fn from(v: &i32) -> Self

Converts to this type from the input type.
source§

impl From<&i64> for Rational

source§

fn from(v: &i64) -> Self

Converts to this type from the input type.
source§

impl From<&i8> for Rational

source§

fn from(v: &i8) -> Self

Converts to this type from the input type.
source§

impl From<&u16> for Rational

source§

fn from(v: &u16) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for Rational

source§

fn from(v: &u32) -> Self

Converts to this type from the input type.
source§

impl From<&u64> for Rational

source§

fn from(v: &u64) -> Self

Converts to this type from the input type.
source§

impl From<&u8> for Rational

source§

fn from(v: &u8) -> Self

Converts to this type from the input type.
source§

impl<T, U> From<(T, U)> for Rationalwhere T: Into<Rational>, U: Into<Rational>,

source§

fn from((n, d): (T, U)) -> Self

Converts to this type from the input type.
source§

impl From<Rational> for (i128, i128)

source§

fn from(r: Rational) -> Self

Converts to this type from the input type.
source§

impl From<Rational> for f64

source§

fn from(rat: Rational) -> f64

Converts to this type from the input type.
source§

impl From<i128> for Rational

source§

fn from(v: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Rational

source§

fn from(v: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Rational

source§

fn from(v: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Rational

source§

fn from(v: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Rational

source§

fn from(v: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Rational

source§

fn from(v: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Rational

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Rational

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Rational

source§

fn from(v: u8) -> Self

Converts to this type from the input type.
source§

impl FromStr for Rational

§

type Err = ParseRationalError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Rational

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Mul<&Rational> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &i128

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &i16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &i32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &i64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &i8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &u16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &u32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &u64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for &u8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for i128

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for i16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for i32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for i64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for i8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for u16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for u32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for u64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Rational> for u8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i128> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i128> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i16> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i16> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i32> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i32> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i64> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i64> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i8> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i8> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u16> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u16> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u32> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u32> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u64> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u64> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u8> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&u8> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &i128

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &i16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &i32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &i64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &i8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &u16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &u32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &u64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for &u8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for i128

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for i16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for i32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for i64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for i8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for u16

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for u32

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for u64

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Rational> for u8

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i128> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i128> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i64> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i64> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i8> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i8> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u16> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u16> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u64> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u64> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u8> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u8> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<&i128> for Rational

source§

fn mul_assign(&mut self, rhs: &i128)

Performs the *= operation. Read more
source§

impl MulAssign<&i16> for Rational

source§

fn mul_assign(&mut self, rhs: &i16)

Performs the *= operation. Read more
source§

impl MulAssign<&i32> for Rational

source§

fn mul_assign(&mut self, rhs: &i32)

Performs the *= operation. Read more
source§

impl MulAssign<&i64> for Rational

source§

fn mul_assign(&mut self, rhs: &i64)

Performs the *= operation. Read more
source§

impl MulAssign<&i8> for Rational

source§

fn mul_assign(&mut self, rhs: &i8)

Performs the *= operation. Read more
source§

impl MulAssign<&u16> for Rational

source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
source§

impl MulAssign<&u32> for Rational

source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
source§

impl MulAssign<&u64> for Rational

source§

fn mul_assign(&mut self, rhs: &u64)

Performs the *= operation. Read more
source§

impl MulAssign<&u8> for Rational

source§

fn mul_assign(&mut self, rhs: &u8)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for Rational

source§

fn mul_assign(&mut self, rhs: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for Rational

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for Rational

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for Rational

source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for Rational

source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for Rational

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for Rational

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for Rational

source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for Rational

source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
source§

impl MulAssign for Rational

source§

fn mul_assign(&mut self, rhs: Rational)

Performs the *= operation. Read more
source§

impl Neg for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for Rational

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Rational> for f32

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for f64

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for i128

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for i16

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for i32

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for i64

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for i8

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for u16

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for u32

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for u64

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rational> for u8

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f32> for Rational

source§

fn eq(&self, other: &f32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f64> for Rational

source§

fn eq(&self, other: &f64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i128> for Rational

source§

fn eq(&self, other: &i128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i16> for Rational

source§

fn eq(&self, other: &i16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i32> for Rational

source§

fn eq(&self, other: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i64> for Rational

source§

fn eq(&self, other: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i8> for Rational

source§

fn eq(&self, other: &i8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u16> for Rational

source§

fn eq(&self, other: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u32> for Rational

source§

fn eq(&self, other: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u64> for Rational

source§

fn eq(&self, other: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u8> for Rational

source§

fn eq(&self, other: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Rational

source§

fn eq(&self, other: &Rational) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Rational> for f32

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for f64

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for i128

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for i16

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for i32

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for i64

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for i8

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for u16

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for u32

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for u64

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rational> for u8

source§

fn partial_cmp(&self, other: &Rational) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<f32> for Rational

source§

fn partial_cmp(&self, other: &f32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<f64> for Rational

source§

fn partial_cmp(&self, other: &f64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<i128> for Rational

source§

fn partial_cmp(&self, other: &i128) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<i16> for Rational

source§

fn partial_cmp(&self, other: &i16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<i32> for Rational

source§

fn partial_cmp(&self, other: &i32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<i64> for Rational

source§

fn partial_cmp(&self, other: &i64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<i8> for Rational

source§

fn partial_cmp(&self, other: &i8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u16> for Rational

source§

fn partial_cmp(&self, other: &u16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u32> for Rational

source§

fn partial_cmp(&self, other: &u32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u64> for Rational

source§

fn partial_cmp(&self, other: &u64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u8> for Rational

source§

fn partial_cmp(&self, other: &u8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd for Rational

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Product for Rational

source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Rem<&Rational> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &i128

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &i16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &i32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &i64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &i8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &u16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &u32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &u64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for &u8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for i128

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for i16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for i32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for i64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for i8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for u16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for u32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for u64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Rational> for u8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i128> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i128> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i16> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i16> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i32> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i32> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i64> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i64> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i8> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&i8> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u16> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u16> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u32> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u32> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u64> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u64> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u8> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&u8> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &i128

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &i16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &i32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &i64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &i8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &u16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &u32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &u64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for &u8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for i128

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for i16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for i32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for i64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for i8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for u16

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for u32

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for u64

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Rational> for u8

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i128> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i128> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i16> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i16> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i64> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i64> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i8> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i8> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u16> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u16> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u32> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u32> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u64> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u64> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u8> for &Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u8> for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem for Rational

§

type Output = Rational

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Rational) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<&i128> for Rational

source§

fn rem_assign(&mut self, rhs: &i128)

Performs the %= operation. Read more
source§

impl RemAssign<&i16> for Rational

source§

fn rem_assign(&mut self, rhs: &i16)

Performs the %= operation. Read more
source§

impl RemAssign<&i32> for Rational

source§

fn rem_assign(&mut self, rhs: &i32)

Performs the %= operation. Read more
source§

impl RemAssign<&i64> for Rational

source§

fn rem_assign(&mut self, rhs: &i64)

Performs the %= operation. Read more
source§

impl RemAssign<&i8> for Rational

source§

fn rem_assign(&mut self, rhs: &i8)

Performs the %= operation. Read more
source§

impl RemAssign<&u16> for Rational

source§

fn rem_assign(&mut self, rhs: &u16)

Performs the %= operation. Read more
source§

impl RemAssign<&u32> for Rational

source§

fn rem_assign(&mut self, rhs: &u32)

Performs the %= operation. Read more
source§

impl RemAssign<&u64> for Rational

source§

fn rem_assign(&mut self, rhs: &u64)

Performs the %= operation. Read more
source§

impl RemAssign<&u8> for Rational

source§

fn rem_assign(&mut self, rhs: &u8)

Performs the %= operation. Read more
source§

impl RemAssign<i128> for Rational

source§

fn rem_assign(&mut self, rhs: i128)

Performs the %= operation. Read more
source§

impl RemAssign<i16> for Rational

source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
source§

impl RemAssign<i32> for Rational

source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
source§

impl RemAssign<i64> for Rational

source§

fn rem_assign(&mut self, rhs: i64)

Performs the %= operation. Read more
source§

impl RemAssign<i8> for Rational

source§

fn rem_assign(&mut self, rhs: i8)

Performs the %= operation. Read more
source§

impl RemAssign<u16> for Rational

source§

fn rem_assign(&mut self, rhs: u16)

Performs the %= operation. Read more
source§

impl RemAssign<u32> for Rational

source§

fn rem_assign(&mut self, rhs: u32)

Performs the %= operation. Read more
source§

impl RemAssign<u64> for Rational

source§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
source§

impl RemAssign<u8> for Rational

source§

fn rem_assign(&mut self, rhs: u8)

Performs the %= operation. Read more
source§

impl RemAssign for Rational

source§

fn rem_assign(&mut self, rhs: Rational)

Performs the %= operation. Read more
source§

impl Sub<&Rational> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &i128

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &i16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &i32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &i64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &i8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &u16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &u32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &u64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for &u8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for i128

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for i16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for i32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for i64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for i8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for u16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for u32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for u64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Rational> for u8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i128> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i128> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i16> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i16> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i32> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i32> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i64> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i64> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i8> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i8> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u16> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u16> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u32> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u32> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u64> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u64> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u8> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&u8> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &i128

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &i16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &i32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &i64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &i8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &u16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &u32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &u64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for &u8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for i128

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for i16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for i32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for i64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for i8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for u16

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for u32

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for u64

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Rational> for u8

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i128> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i128> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i64> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i64> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u16> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u16> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u64> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u64> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u8> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u8> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<&i128> for Rational

source§

fn sub_assign(&mut self, rhs: &i128)

Performs the -= operation. Read more
source§

impl SubAssign<&i16> for Rational

source§

fn sub_assign(&mut self, rhs: &i16)

Performs the -= operation. Read more
source§

impl SubAssign<&i32> for Rational

source§

fn sub_assign(&mut self, rhs: &i32)

Performs the -= operation. Read more
source§

impl SubAssign<&i64> for Rational

source§

fn sub_assign(&mut self, rhs: &i64)

Performs the -= operation. Read more
source§

impl SubAssign<&i8> for Rational

source§

fn sub_assign(&mut self, rhs: &i8)

Performs the -= operation. Read more
source§

impl SubAssign<&u16> for Rational

source§

fn sub_assign(&mut self, rhs: &u16)

Performs the -= operation. Read more
source§

impl SubAssign<&u32> for Rational

source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
source§

impl SubAssign<&u64> for Rational

source§

fn sub_assign(&mut self, rhs: &u64)

Performs the -= operation. Read more
source§

impl SubAssign<&u8> for Rational

source§

fn sub_assign(&mut self, rhs: &u8)

Performs the -= operation. Read more
source§

impl SubAssign<i128> for Rational

source§

fn sub_assign(&mut self, rhs: i128)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for Rational

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for Rational

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for Rational

source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for Rational

source§

fn sub_assign(&mut self, rhs: i8)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for Rational

source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for Rational

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for Rational

source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for Rational

source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
source§

impl SubAssign for Rational

source§

fn sub_assign(&mut self, rhs: Rational)

Performs the -= operation. Read more
source§

impl Sum for Rational

source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl Copy for Rational

source§

impl Eq for Rational

source§

impl StructuralPartialEq for Rational

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.