Struct reckoner::Rational

source ·
#[repr(transparent)]
pub struct Rational { /* private fields */ }
Expand description

Multiple precision rational value.

Implementations§

source§

impl Rational

source

pub fn add(&self, other: &Self) -> Self

Add two rational values and return the result.

source

pub fn add_integer(&self, other: &Integer) -> Self

Add a rational value and an integer value and return the rational result.

source

pub fn add_assign(&mut self, other: &Self)

Add two rationals and assign the result to self.

source

pub fn add_assign_integer(&mut self, other: &Integer)

Add a rational value and an integer value and assign the result to self.

source

pub fn subtract(&self, other: &Self) -> Self

Subtract two rational values and return the result.

source

pub fn subtract_integer(&self, other: &Integer) -> Self

Subtract a rational value and an integer value and return the rational result.

source

pub fn subtract_assign(&mut self, other: &Self)

Subtract two rationals and assign the result to self.

source

pub fn subtract_assign_integer(&mut self, other: &Integer)

Subtract a rational value and an integer value and assign the result to self.

source

pub fn multiply(&self, other: &Self) -> Self

Multiply two rational values and return the result.

source

pub fn multiply_integer(&self, other: &Integer) -> Self

Multiply a rational value and an integer value and return the rational result.

source

pub fn multiply_assign(&mut self, other: &Self)

Multiply two rationals and assign the result to self.

source

pub fn multiply_assign_integer(&mut self, other: &Integer)

Multiply a rational value and an integer value and assign the result to self.

source

pub fn divide(&self, other: &Self) -> Self

Divide two rational values and return the result.

source

pub fn divide_integer(&self, other: &Integer) -> Self

Divide a rational value and an integer value and return the rational result.

source

pub fn divide_assign(&mut self, other: &Self)

Divide two rationals and assign the result to self.

source

pub fn divide_assign_integer(&mut self, other: &Integer)

Divide a rational value and an integer value and assign the result to self.

source

pub fn absolute_value(&self) -> Self

Return the absolute value

source

pub fn absolute_value_assign(&mut self)

Assign the absolute value to self

source

pub fn negate(&self) -> Self

Return the additive inverse

source

pub fn negate_assign(&mut self)

Assign the additive inverse to self

source

pub fn reciprocal(&self) -> Self

Return the multiplicative inverse

source

pub fn reciprocal_assign(&mut self)

Assign the multiplicative inverse to self

source§

impl Rational

source

pub fn new() -> Self

Create a new rational with a default value of zero (0/1).

Example
use reckoner::Rational;

let r = Rational::new();

assert_eq!(r, (0, 1));
source

pub unsafe fn from_raw(raw: *mut mpq_t) -> Self

Construct a Rational from a raw non-null pointer to creachadair_imath_sys::mpq_t.

Safety

This function must only every be called once for a given pointer, and the pointer must point to an initialized creachadair_imath_sys::mpq_t struct. The recommendation is to only use raw pointers from the Rational::into_raw function.

In ths context, initialized means that the creachadair_imath_sys::mpq_t has been the argument of a call to creachadair_imath_sys::mp_rat_init.

Example
use creachadair_imath_sys::{mp_rat_zero, MP_OK};
use reckoner::Rational;

let a = Rational::from((456, 123));

assert_eq!(a, (456, 123));

let a_raw = Rational::into_raw(a);

unsafe { mp_rat_zero(a_raw) };

let a = unsafe { Rational::from_raw(a_raw) };

assert_eq!(a, (0, 1));
source

pub fn into_raw(rational: Rational) -> *mut mpq_t

Consumes the Rational, returning a wrapped raw pointer.

Example
use creachadair_imath_sys::{mp_rat_add, MP_OK};
use reckoner::Rational;

let a = Rational::from((377, 500));
let b = Rational::from((123, 500));
let c = Rational::new();

let a_raw = Rational::into_raw(a);
let b_raw = Rational::into_raw(b);
let c_raw = Rational::into_raw(c);

let op_res = unsafe { mp_rat_add(a_raw, b_raw, c_raw) };

if op_res != unsafe { MP_OK } {
    panic!("Operation failed.")
}

let a = unsafe { Rational::from_raw(a_raw) };
let b = unsafe { Rational::from_raw(b_raw) };
let c = unsafe { Rational::from_raw(c_raw) };

assert_eq!(a, (377, 500));
assert_eq!(b, (123, 500));
assert_eq!(c, (500, 500));
source

pub fn reduce(&mut self)

Reduces r in-place to lowest terms and canonical form.

Zero is represented as 0/1, one as 1/1, and signs are adjusted so that the sign of the value is carried by the numerator.

Example
use reckoner::Rational;

let mut a = Rational::from((24, 2));
let mut b = Rational::from((24, 3));
let mut c = Rational::from((24, 4));

a.reduce();
b.reduce();
c.reduce();

assert_eq!(a, (12, 1));
assert_eq!(b, (8, 1));
assert_eq!(c, (6, 1));
source

pub fn zero(&mut self)

Set value of integer to zero

Example
use reckoner::Rational;

let mut r = Rational::from((1234567u128, 1346172348u64));

r.zero();

assert_eq!(r, (0, 1));
source

pub fn is_integer(&self) -> bool

Returns true if the denominator is 1.

Example
use reckoner::Rational;

assert!(Rational::from((0, 1)).is_integer());
assert!(Rational::from((1, 1)).is_integer());
assert!(!Rational::from((3, 25)).is_integer());
source

pub fn compare(&self, rhs: &Self) -> Ordering

Compare two rationals

Example
use core::cmp::Ordering;
use reckoner::Rational;

let a = Rational::from((123, 500));
let b = Rational::from((377, 500));

assert_eq!(a.compare(&b), Ordering::Less);
assert_eq!(b.compare(&a), Ordering::Greater);
assert_eq!(a.compare(&a), Ordering::Equal);
source

pub fn compare_magnitude(&self, rhs: &Self) -> Ordering

Compare the magnitude of two rationals, not taking sign into account.

Example
use core::cmp::Ordering;
use reckoner::Rational;

let a = Rational::from((123, 500));
let b = Rational::from((-377, 500));

assert_eq!(a.compare(&b), Ordering::Greater);
assert_eq!(a.compare_magnitude(&b), Ordering::Less);
source

pub fn compare_zero(&self) -> Ordering

Compare a rational to zero.

Example
use core::cmp::Ordering;
use reckoner::Rational;

let a = Rational::from((123, 500));
let b = Rational::from((-377, 500));

assert_eq!(a.compare_zero(), Ordering::Greater);
assert_eq!(b.compare_zero(), Ordering::Less);
source

pub fn numerator(&self) -> Integer

Return a copy of the numerator of the rational value

Example
use reckoner::Rational;

let a = Rational::from((34256, 54587));

assert_eq!(a.numerator(), 34256);
source

pub fn denominator(&self) -> Integer

Return a copy of the denominator of the rational value

Example
use reckoner::Rational;

let a = Rational::from((34256, 54587));

assert_eq!(a.denominator(), 54587);
source

pub fn copy_to(&self, other: &mut Self)

Replaces the value of other with a copy of the value of self. No new memory is allocated unless self has more significant digits than other has allocated.

Example
use reckoner::Rational;

let a = Rational::from((34256, 54587));
let mut b = Rational::new();

a.copy_to(&mut b);

assert_eq!(a, b);
assert_eq!(b, (34256, 54587));
source

pub fn to_decimal(&self, rounding_mode: RoundMode, max_precision: u16) -> String

Converts the value of self to a string in base-10 decimal-point notation. It generates max_precision digits of precision and takes a RoundMode argument that determines how the ratio will be converted to decimal.

Example
use reckoner::{Rational, RoundMode};

let r = Rational::from((1146408, 364913));

assert_eq!(r.to_decimal(RoundMode::HalfUp, 6), "3.141593");
assert_eq!(r.to_decimal(RoundMode::HalfUp, 5), "3.14159");
assert_eq!(r.to_decimal(RoundMode::HalfUp, 4), "3.1416");
assert_eq!(r.to_decimal(RoundMode::HalfUp, 3), "3.142");

Trait Implementations§

source§

impl Add<&Integer> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&Integer> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<&u128> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u128> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u128) -> 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<Integer> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<Integer> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<u128> for &Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u128> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: u128) -> 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 AddAssign<&Integer> for Rational

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&Rational> for Rational

source§

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

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<&u128> for Rational

source§

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

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<Integer> for Rational

source§

fn add_assign(&mut self, rhs: Integer)

Performs the += operation. Read more
source§

impl AddAssign<Rational> for Rational

source§

fn add_assign(&mut self, rhs: Rational)

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<u128> for Rational

source§

fn add_assign(&mut self, rhs: u128)

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 Clone for Rational

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
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 Default for Rational

source§

fn default() -> Self

Returns the “default value” for a type. 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<&Integer> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&Integer> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<&u128> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u128> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u128) -> 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<Integer> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<Integer> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<u128> for &Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u128> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: u128) -> 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 DivAssign<&Integer> for Rational

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&Rational> for Rational

source§

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

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<&u128> for Rational

source§

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

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<Integer> for Rational

source§

fn div_assign(&mut self, rhs: Integer)

Performs the /= operation. Read more
source§

impl DivAssign<Rational> for Rational

source§

fn div_assign(&mut self, rhs: Rational)

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<u128> for Rational

source§

fn div_assign(&mut self, rhs: u128)

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 Drop for Rational

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, A, B> From<&'a (A, B)> for Rationalwhere &'a A: Into<Integer>, &'a B: Into<Integer>,

source§

fn from((numer, denom): &'a (A, B)) -> Self

Converts to this type from the input type.
source§

impl From<&(Integer, Integer)> for Rational

source§

fn from((numer, denom): &(Integer, Integer)) -> Self

Converts to this type from the input type.
source§

impl From<&Integer> for Rational

source§

fn from(src: &Integer) -> Self

Converts to this type from the input type.
source§

impl From<&i128> for Rational

source§

fn from(src: &i128) -> Self

Converts to this type from the input type.
source§

impl From<&i16> for Rational

source§

fn from(src: &i16) -> Self

Converts to this type from the input type.
source§

impl From<&i32> for Rational

source§

fn from(src: &i32) -> Self

Converts to this type from the input type.
source§

impl From<&i64> for Rational

source§

fn from(src: &i64) -> Self

Converts to this type from the input type.
source§

impl From<&i8> for Rational

source§

fn from(src: &i8) -> Self

Converts to this type from the input type.
source§

impl From<&u128> for Rational

source§

fn from(src: &u128) -> Self

Converts to this type from the input type.
source§

impl From<&u16> for Rational

source§

fn from(src: &u16) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for Rational

source§

fn from(src: &u32) -> Self

Converts to this type from the input type.
source§

impl From<&u64> for Rational

source§

fn from(src: &u64) -> Self

Converts to this type from the input type.
source§

impl From<&u8> for Rational

source§

fn from(src: &u8) -> Self

Converts to this type from the input type.
source§

impl<A, B> From<(A, B)> for Rationalwhere A: Into<Integer>, B: Into<Integer>,

source§

fn from((numer, denom): (A, B)) -> Self

Converts to this type from the input type.
source§

impl From<Integer> for Rational

source§

fn from(src: Integer) -> Self

Converts to this type from the input type.
source§

impl From<i128> for Rational

source§

fn from(src: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Rational

source§

fn from(src: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Rational

source§

fn from(src: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Rational

source§

fn from(src: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Rational

source§

fn from(src: i8) -> Self

Converts to this type from the input type.
source§

impl From<u128> for Rational

source§

fn from(src: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Rational

source§

fn from(src: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Rational

source§

fn from(src: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Rational

source§

fn from(src: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Rational

source§

fn from(src: u8) -> Self

Converts to this type from the input type.
source§

impl FromStr for Rational

Parse a rational value from a string having one of the following formats, each with an optional leading sign flag:

  • n, integer format, e.g. “123”
  • n/d, ratio format, e.g., “-12/5”
  • z.ffff, decimal format, e.g., “1.627”

After successfully parsing, the rational will be reduced by factoring out common multiples of the numerator and denominators, as if Rational::reduce was called on the value.

§

type Err = Error

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

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

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

impl Mul<&Integer> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&Integer> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<&u128> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u128> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u128) -> 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<Integer> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<Integer> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<u128> for &Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u128> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u128) -> 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 MulAssign<&Integer> for Rational

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&Rational> for Rational

source§

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

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<&u128> for Rational

source§

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

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<Integer> for Rational

source§

fn mul_assign(&mut self, rhs: Integer)

Performs the *= operation. Read more
source§

impl MulAssign<Rational> for Rational

source§

fn mul_assign(&mut self, rhs: Rational)

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<u128> for Rational

source§

fn mul_assign(&mut self, rhs: u128)

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 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<Self>,

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

impl PartialEq<(Integer, Integer)> for Rational

source§

fn eq(&self, other: &(Integer, Integer)) -> 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, i128)> for Rational

source§

fn eq(&self, other: &(i128, 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, i16)> for Rational

source§

fn eq(&self, other: &(i16, 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, i32)> for Rational

source§

fn eq(&self, other: &(i32, 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, i64)> for Rational

source§

fn eq(&self, other: &(i64, 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, i8)> for Rational

source§

fn eq(&self, other: &(i8, 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<(u128, u128)> for Rational

source§

fn eq(&self, other: &(u128, u128)) -> 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, u16)> for Rational

source§

fn eq(&self, other: &(u16, 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, u32)> for Rational

source§

fn eq(&self, other: &(u32, 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, u64)> for Rational

source§

fn eq(&self, other: &(u64, 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, u8)> for Rational

source§

fn eq(&self, other: &(u8, 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<Integer> for Rational

source§

fn eq(&self, other: &Integer) -> 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 (Integer, Integer)

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, 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, 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, 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, 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, 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 (u128, u128)

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, 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, 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, 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, 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<Rational> for Integer

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

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<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<u128> for Rational

source§

fn eq(&self, other: &u128) -> 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 PartialOrd<(Integer, Integer)> for Rational

source§

fn partial_cmp(&self, other: &(Integer, Integer)) -> 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, i128)> for Rational

source§

fn partial_cmp(&self, other: &(i128, 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, i16)> for Rational

source§

fn partial_cmp(&self, other: &(i16, 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, i32)> for Rational

source§

fn partial_cmp(&self, other: &(i32, 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, i64)> for Rational

source§

fn partial_cmp(&self, other: &(i64, 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, i8)> for Rational

source§

fn partial_cmp(&self, other: &(i8, 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<(u128, u128)> for Rational

source§

fn partial_cmp(&self, other: &(u128, u128)) -> 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, u16)> for Rational

source§

fn partial_cmp(&self, other: &(u16, 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, u32)> for Rational

source§

fn partial_cmp(&self, other: &(u32, 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, u64)> for Rational

source§

fn partial_cmp(&self, other: &(u64, 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, u8)> for Rational

source§

fn partial_cmp(&self, other: &(u8, 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<Integer> for Rational

source§

fn partial_cmp(&self, other: &Integer) -> 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 (Integer, Integer)

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, 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, 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, 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, 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, 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 (u128, u128)

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, 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, 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, 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, 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<Rational> for Integer

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 Rational

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 u128

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<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<u128> for Rational

source§

fn partial_cmp(&self, other: &u128) -> 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 Product<Rational> for Rational

source§

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

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

impl Sub<&Integer> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&Integer> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<&u128> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u128> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u128) -> 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<Integer> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<Integer> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<Rational> for &Integer

§

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 &u128

§

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 Integer

§

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 u128

§

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<u128> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u128> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u128) -> 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 SubAssign<&Integer> for Rational

source§

fn sub_assign(&mut self, rhs: &Integer)

Performs the -= operation. Read more
source§

impl SubAssign<&Rational> for Rational

source§

fn sub_assign(&mut self, rhs: &Rational)

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<&u128> for Rational

source§

fn sub_assign(&mut self, rhs: &u128)

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<Integer> for Rational

source§

fn sub_assign(&mut self, rhs: Integer)

Performs the -= operation. Read more
source§

impl SubAssign<Rational> for Rational

source§

fn sub_assign(&mut self, rhs: Rational)

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<u128> for Rational

source§

fn sub_assign(&mut self, rhs: u128)

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 Sum<Rational> for Rational

source§

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

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl TryFrom<&Rational> for (i128, i128)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (i16, i16)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (i32, i32)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (i64, i64)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (i8, i8)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (u128, u128)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (u16, u16)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (u32, u32)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (u64, u64)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for (u8, u8)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Rational> for Integer

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: &Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (i128, i128)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (i16, i16)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (i32, i32)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (i64, i64)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (i8, i8)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (u128, u128)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (u16, u16)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (u32, u32)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (u64, u64)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for (u8, u8)

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Rational> for Integer

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(src: Rational) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for Rational

source§

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