Struct rug::Rational

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

An arbitrary-precision rational number.

A Rational number is made up of a numerator Integer and denominator Integer. After Rational number functions, the number is always in canonical form, that is the denominator is always greater than zero, and there are no common factors. Zero is stored as 0/1.

§Examples

use rug::Rational;
let r = Rational::from((-12, 15));
let recip = Rational::from(r.recip_ref());
assert_eq!(recip, Rational::from((-5, 4)));
assert_eq!(recip, -1.25);
// The numerator and denominator are stored in canonical form.
let (num, den) = r.into_numer_denom();
assert_eq!(num, -4);
assert_eq!(den, 5);

When comparing Rational numbers, it is sometimes convenient to compare to a pair of primitive integers, like in the comparison to Rational::from((-5, 4)) in the example above. Rational::from((-5, 4)) requires memory allocation, which can be an expensive operation. To avoid this allocation, when both the numerator and denominator fit in a primitive integer, we can use MiniRational instead, which does not require heap memory allocation.

use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-12, 15));
let recip = Rational::from(r.recip_ref());
assert_eq!(recip, MiniRational::from((-5, 4)));

The Rational number type supports various functions. Most methods have three versions:

  1. The first method consumes the operand.
  2. The second method has a “_mut” suffix and mutates the operand.
  3. The third method has a “_ref” suffix and borrows the operand. The returned item is an incomplete-computation value that can be assigned to a Rational number.
use rug::rational::MiniRational;
use rug::Rational;

// 1. consume the operand
let a = Rational::from((-15, 2));
let abs_a = a.abs();
assert_eq!(abs_a, MiniRational::from((15, 2)));

// 2. mutate the operand
let mut b = Rational::from((-17, 2));
b.abs_mut();
assert_eq!(b, MiniRational::from((17, 2)));

// 3. borrow the operand
let c = Rational::from((-19, 2));
let r = c.abs_ref();
let abs_c = Rational::from(r);
assert_eq!(abs_c, MiniRational::from((19, 2)));
// c was not consumed
assert_eq!(c, MiniRational::from((-19, 2)));

Implementations§

source§

impl Rational

source

pub const ZERO: &'static Rational = _

Zero.

§Examples
use rug::Rational;
assert_eq!(*Rational::ZERO, 0);
source

pub const ONE: &'static Rational = _

One.

§Examples
use rug::Rational;
assert_eq!(*Rational::ONE, 1);
source

pub const NEG_ONE: &'static Rational = _

Negative one (−1).

§Examples
use rug::Rational;
assert_eq!(*Rational::NEG_ONE, -1);
source

pub fn new() -> Self

Constructs a new arbitrary-precision Rational number with value 0.

§Examples
use rug::Rational;
let r = Rational::new();
assert_eq!(r, 0);
source

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

Creates a Rational number from an initialized GMP rational number.

§Safety
  • The function must not be used to create a constant Rational number, though it can be used to create a static Rational number. This is because constant values are copied on use, leading to undefined behavior when they are dropped.
  • The value must be initialized as a valid mpq_t.
  • The mpq_t type can be considered as a kind of pointer, so there can be multiple copies of it. Since this function takes over ownership, no other copies of the passed value should exist.
  • The numerator and denominator must be in canonical form, as the rest of the library assumes that they are. Most GMP functions leave the rational number in canonical form, but assignment functions do not. Check the GMP documentation for details.
§Examples
use core::mem::MaybeUninit;
use gmp_mpfr_sys::gmp;
use rug::rational::MiniRational;
use rug::Rational;
let r = unsafe {
    let mut q = MaybeUninit::uninit();
    gmp::mpq_init(q.as_mut_ptr());
    let mut q = q.assume_init();
    gmp::mpq_set_si(&mut q, -145, 10);
    gmp::mpq_canonicalize(&mut q);
    // q is initialized and unique
    Rational::from_raw(q)
};
assert_eq!(r, MiniRational::from((-145, 10)));
// since r is a Rational now, deallocation is automatic

This can be used to create a static Rational number using MPZ_ROINIT_N to initialize the raw numerator and denominator values. See the GMP documentation for details.

use gmp_mpfr_sys::gmp;
use gmp_mpfr_sys::gmp::{limb_t, mpq_t};
use rug::{Integer, Rational};
const NUMER_LIMBS: [limb_t; 2] = [0, 5];
const DENOM_LIMBS: [limb_t; 1] = [3];
const MPQ: mpq_t = unsafe {
    mpq_t {
        num: gmp::MPZ_ROINIT_N(NUMER_LIMBS.as_ptr().cast_mut(), -2),
        den: gmp::MPZ_ROINIT_N(DENOM_LIMBS.as_ptr().cast_mut(), 1),
    }
};
// Must *not* be const, otherwise it would lead to undefined
// behavior on use, as it would create a copy that is dropped.
static R: Rational = unsafe { Rational::from_raw(MPQ) };
let numer_check =
    -((Integer::from(NUMER_LIMBS[1]) << gmp::NUMB_BITS) + NUMER_LIMBS[0]);
let denom_check = Integer::from(DENOM_LIMBS[0]);
assert_eq!(*R.numer(), numer_check);
assert_eq!(*R.denom(), denom_check);
let check = Rational::from((&numer_check, &denom_check));
assert_eq!(R, check);
assert_eq!(*R.numer(), *check.numer());
assert_eq!(*R.denom(), *check.denom());
source

pub const fn into_raw(self) -> mpq_t

Converts a Rational number into a GMP rational number.

The returned object should be freed to avoid memory leaks.

§Examples
use gmp_mpfr_sys::gmp;
use rug::Rational;
let r = Rational::from((-145, 10));
let mut q = r.into_raw();
unsafe {
    let d = gmp::mpq_get_d(&q);
    assert_eq!(d, -14.5);
    // free object to prevent memory leak
    gmp::mpq_clear(&mut q);
}
source

pub const fn as_raw(&self) -> *const mpq_t

Returns a pointer to the inner GMP rational number.

The returned pointer will be valid for as long as self is valid.

§Examples
use gmp_mpfr_sys::gmp;
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-145, 10));
let q_ptr = r.as_raw();
unsafe {
    let d = gmp::mpq_get_d(q_ptr);
    assert_eq!(d, -14.5);
}
// r is still valid
assert_eq!(r, MiniRational::from((-145, 10)));
source

pub fn as_raw_mut(&mut self) -> *mut mpq_t

Returns an unsafe mutable pointer to the inner GMP rational number.

The returned pointer will be valid for as long as self is valid.

§Examples
use gmp_mpfr_sys::gmp;
use rug::rational::MiniRational;
use rug::Rational;
let mut r = Rational::from((-145, 10));
let q_ptr = r.as_raw_mut();
unsafe {
    gmp::mpq_inv(q_ptr, q_ptr);
}
assert_eq!(r, MiniRational::from((-10, 145)));
source

pub fn from_f32(value: f32) -> Option<Self>

Creates a Rational number from an f32 if it is finite, losing no precision.

This conversion can also be performed using

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -17.125 can be stored exactly as f32
let r = Rational::from_f32(-17.125).unwrap();
assert_eq!(r, MiniRational::from((-17125, 1000)));
let inf = Rational::from_f32(f32::INFINITY);
assert!(inf.is_none());
source

pub fn from_f64(value: f64) -> Option<Self>

Creates a Rational number from an f64 if it is finite, losing no precision.

This conversion can also be performed using

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -17.125 can be stored exactly as f64
let r = Rational::from_f64(-17.125).unwrap();
assert_eq!(r, MiniRational::from((-17125, 1000)));
let inf = Rational::from_f64(f64::INFINITY);
assert!(inf.is_none());
source

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

Parses a Rational number.

§Panics

Panics if radix is less than 2 or greater than 36.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r1 = Rational::from_str_radix("ff/a", 16).unwrap();
assert_eq!(r1, MiniRational::from((255, 10)));
let r2 = Rational::from_str_radix("+ff0/a0", 16).unwrap();
assert_eq!(r2, MiniRational::from((0xff0, 0xa0)));
assert_eq!(*r2.numer(), 51);
assert_eq!(*r2.denom(), 2);
source

pub fn parse<S: AsRef<[u8]>>( src: S ) -> Result<ParseIncomplete, ParseRationalError>

Parses a decimal string slice (&str) or byte slice (&[u8]) into a Rational number.

The following are implemented with the unwrapped returned incomplete-computation value as Src:

The string must contain a numerator, and may contain a denominator; the numerator and denominator are separated with a “/”. The numerator can start with an optional minus or plus sign.

ASCII whitespace is ignored everywhere in the string. Underscores are ignored anywhere except before the first digit of the numerator and between the “/” and the the first digit of the denominator.

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};

assert_eq!(
    Rational::parse("-12/23").unwrap().complete(),
    MiniRational::from((-12, 23))
);
assert_eq!(
    Rational::parse("+ 12 / 23").unwrap().complete(),
    MiniRational::from((12, 23))
);

let invalid = Rational::parse("12/");
assert!(invalid.is_err());
source

pub fn parse_radix<S: AsRef<[u8]>>( src: S, radix: i32 ) -> Result<ParseIncomplete, ParseRationalError>

Parses a string slice (&str) or byte slice (&[u8]) into a Rational number.

The following are implemented with the unwrapped returned incomplete-computation value as Src:

The string must contain a numerator, and may contain a denominator; the numerator and denominator are separated with a “/”. The numerator can start with an optional minus or plus sign.

ASCII whitespace is ignored everywhere in the string. Underscores are ignored anywhere except before the first digit of the numerator and between the “/” and the the first digit of the denominator.

If parsing is already done by an external function, the unsafe low-level Integer::assign_bytes_radix_unchecked method can be used in conjunction with the mutate_numer_denom method.

§Panics

Panics if radix is less than 2 or greater than 36.

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};

let valid1 = Rational::parse_radix("12/23", 4);
assert_eq!(
    valid1.unwrap().complete(),
    MiniRational::from((2 + 4 * 1, 3 + 4 * 2))
);
let valid2 = Rational::parse_radix("12 / yz", 36);
assert_eq!(
    valid2.unwrap().complete(),
    MiniRational::from((2 + 36 * 1, 35 + 36 * 34))
);

let invalid = Rational::parse_radix("12/23", 3);
assert!(invalid.is_err());

If parsing is done externally, low-level code can be used.

use rug::rational::MiniRational;
use rug::Rational;

let num_bytes = &[1, 2];
let den_bytes = &[2, 3];
let radix = 10;
let neg = true;
let mut r = Rational::new();
// SAFETY: radix and the bytes are in the required ranges
r.mutate_numer_denom(|num, den| unsafe {
    num.assign_bytes_radix_unchecked(num_bytes, radix, neg);
    den.assign_bytes_radix_unchecked(den_bytes, radix, false);
});
// -12/23
assert_eq!(r, MiniRational::from((-12, 23)));
source

pub fn to_f32(&self) -> f32

Converts to an f32, rounding towards zero.

This conversion can also be performed using

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let min = Rational::from_f32(f32::MIN).unwrap();
let minus_small = min - MiniRational::from((7, 2)).borrow_excl();
// minus_small is truncated to f32::MIN
assert_eq!(minus_small.to_f32(), f32::MIN);
let times_three_two = minus_small * MiniRational::from((3, 2)).borrow_excl();
// times_three_two is too small
assert_eq!(times_three_two.to_f32(), f32::NEG_INFINITY);
source

pub fn to_f64(&self) -> f64

Converts to an f64, rounding towards zero.

This conversion can also be performed using

§Examples
use rug::rational::MiniRational;
use rug::Rational;

// An `f64` has 53 bits of precision.
let exact = 0x1f_1234_5678_9aff_u64;
let den = 0x1000_u64;
let r = Rational::from((exact, den));
assert_eq!(r.to_f64(), exact as f64 / den as f64);

// large has 56 ones
let large = 0xff_1234_5678_9aff_u64;
// trunc has 53 ones followed by 3 zeros
let trunc = 0xff_1234_5678_9af8_u64;
let j = Rational::from((large, den));
assert_eq!(j.to_f64(), trunc as f64 / den as f64);

let max = Rational::from_f64(f64::MAX).unwrap();
let plus_small = max + MiniRational::from((7, 2)).borrow_excl();
// plus_small is truncated to f64::MAX
assert_eq!(plus_small.to_f64(), f64::MAX);
let times_three_two = plus_small * MiniRational::from((3, 2)).borrow_excl();
// times_three_two is too large
assert_eq!(times_three_two.to_f64(), f64::INFINITY);
source

pub fn to_string_radix(&self, radix: i32) -> String

Returns a string representation for the specified radix.

§Panics

Panics if radix is less than 2 or greater than 36.

§Examples
use rug::Rational;
let r1 = Rational::from(0);
assert_eq!(r1.to_string_radix(10), "0");
let r2 = Rational::from((15, 5));
assert_eq!(r2.to_string_radix(10), "3");
let r3 = Rational::from((10, -6));
assert_eq!(r3.to_string_radix(10), "-5/3");
assert_eq!(r3.to_string_radix(5), "-10/3");
source

pub fn assign_f32(&mut self, val: f32) -> Result<(), ()>

Assigns from an f32 if it is finite, losing no precision.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let mut r = Rational::new();
let ret = r.assign_f32(12.75);
assert!(ret.is_ok());
assert_eq!(r, MiniRational::from((1275, 100)));
let ret = r.assign_f32(f32::NAN);
assert!(ret.is_err());
assert_eq!(r, MiniRational::from((1275, 100)));
source

pub fn assign_f64(&mut self, val: f64) -> Result<(), ()>

Assigns from an f64 if it is finite, losing no precision.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let mut r = Rational::new();
let ret = r.assign_f64(12.75);
assert!(ret.is_ok());
assert_eq!(r, MiniRational::from((1275, 100)));
let ret = r.assign_f64(1.0 / 0.0);
assert!(ret.is_err());
assert_eq!(r, MiniRational::from((1275, 100)));
source

pub unsafe fn from_canonical<Num, Den>(num: Num, den: Den) -> Self
where Integer: From<Num> + From<Den>,

Creates a new Rational number from a numerator and denominator without canonicalizing aftwerwards.

§Safety

This function is unsafe because it does not canonicalize the Rational number. The caller must ensure that the numerator and denominator are in canonical form, as the rest of the library assumes that they are.

There are a few methods that can be called on Rational numbers that are not in canonical form:

  • numer and denom, which treat the numerator and denominator separately
  • assignment methods, which overwrite the previous value and leave the number in canonical form
  • mutate_numer_denom, which treats the numerator and denominator seprarately, and leaves the number in canoncial form
§Examples
use rug::rational::MiniRational;
use rug::Rational;

// -3/5 is in canonical form
let r = unsafe { Rational::from_canonical(-3, 5) };
assert_eq!(r, MiniRational::from((-3, 5)));
source

pub unsafe fn assign_canonical<Num, Den>(&mut self, num: Num, den: Den)
where Integer: Assign<Num> + Assign<Den>,

Assigns to the numerator and denominator without canonicalizing aftwerwards.

§Safety

This function is unsafe because it does not canonicalize the Rational number after the assignment. The caller must ensure that the numerator and denominator are in canonical form, as the rest of the library assumes that they are.

There are a few methods that can be called on Rational numbers that are not in canonical form:

  • numer and denom, which treat the numerator and denominator separately
  • assignment methods, which overwrite the previous value and leave the number in canonical form
  • mutate_numer_denom, which treats the numerator and denominator seprarately, and leaves the number in canoncial form
§Examples
use rug::rational::MiniRational;
use rug::Rational;

let mut r = Rational::new();
// -3/5 is in canonical form
unsafe {
    r.assign_canonical(-3, 5);
}
assert_eq!(r, MiniRational::from((-3, 5)));
source

pub const fn numer(&self) -> &Integer

Borrows the numerator as an Integer.

§Examples
use rug::Rational;
let r = Rational::from((12, -20));
// r will be canonicalized to -3/5
assert_eq!(*r.numer(), -3)
source

pub const fn denom(&self) -> &Integer

Borrows the denominator as an Integer.

§Examples
use rug::Rational;
let r = Rational::from((12, -20));
// r will be canonicalized to -3/5
assert_eq!(*r.denom(), 5);
source

pub fn mutate_numer_denom<F>(&mut self, func: F)
where F: FnOnce(&mut Integer, &mut Integer),

Calls a function with mutable references to the numerator and denominator, then canonicalizes the number.

The denominator must not be zero when the function returns.

§Panics

Panics if the denominator is zero when the function returns.

§Examples
use rug::Rational;
let mut r = Rational::from((3, 5));
r.mutate_numer_denom(|num, den| {
    // change r from 3/5 to 4/8, which is equal to 1/2
    *num += 1;
    *den += 3;
});
assert_eq!(*r.numer(), 1);
assert_eq!(*r.denom(), 2);

This method does not check that the numerator and denominator are in canonical form before calling func. This means that this method can be used to canonicalize the number after some unsafe methods that do not leave the number in cononical form.

use rug::Rational;
let mut r = Rational::from((3, 5));
unsafe {
    // leave r in non-canonical form
    *r.as_mut_numer_denom_no_canonicalization().0 += 1;
    *r.as_mut_numer_denom_no_canonicalization().1 -= 13;
}
// At this point, r is still not canonical: 4 / -8
assert_eq!(*r.numer(), 4);
assert_eq!(*r.denom(), -8);
r.mutate_numer_denom(|_, _| {});
// Now r is in canonical form: -1 / 2
assert_eq!(*r.numer(), -1);
assert_eq!(*r.denom(), 2);
source

pub unsafe fn as_mut_numer_denom_no_canonicalization( &mut self ) -> (&mut Integer, &mut Integer)

Borrows the numerator and denominator mutably without canonicalizing aftwerwards.

§Safety

This function is unsafe because it does not canonicalize the Rational number when the borrow ends. The caller must ensure that the numerator and denominator are left in canonical form, as the rest of the library assumes that they are.

There are a few methods that can be called on Rational numbers that are not in canonical form:

  • numer and denom, which treat the numerator and denominator separately
  • assignment methods, which overwrite the previous value and leave the number in canonical form
  • mutate_numer_denom, which treats the numerator and denominator seprarately, and leaves the number in canoncial form
§Examples
use rug::rational::MiniRational;
use rug::Rational;

let mut r = Rational::from((3, 5));
{
    let (num, den) = unsafe { r.as_mut_numer_denom_no_canonicalization() };
    // Add one to r by adding den to num. Since num and den
    // are relatively prime, r remains in canonical form.
    *num += &*den;
}
assert_eq!(r, MiniRational::from((8, 5)));

This method can also be used to group some operations before canonicalization. This is usually not beneficial, as early canonicalization usually means subsequent arithmetic operations have less work to do.

use rug::Rational;
let mut r = Rational::from((3, 5));
unsafe {
    // first operation: add 1 to numerator
    *r.as_mut_numer_denom_no_canonicalization().0 += 1;
    // second operation: subtract 13 from denominator
    *r.as_mut_numer_denom_no_canonicalization().1 -= 13;
}
// At this point, r is still not canonical: 4 / -8
assert_eq!(*r.numer(), 4);
assert_eq!(*r.denom(), -8);
r.mutate_numer_denom(|_, _| {});
// Now r is in canonical form: -1 / 2
assert_eq!(*r.numer(), -1);
assert_eq!(*r.denom(), 2);
source

pub const fn into_numer_denom(self) -> (Integer, Integer)

Converts into numerator and denominator Integer values.

This function reuses the allocated memory and does not allocate any new memory.

§Examples
use rug::Rational;
let r = Rational::from((12, -20));
// r will be canonicalized to -3/5
let (num, den) = r.into_numer_denom();
assert_eq!(num, -3);
assert_eq!(den, 5);
source

pub const fn as_neg(&self) -> BorrowRational<'_>

Borrows a negated copy of the Rational number.

The returned object implements Deref<Target = Rational>.

This method performs a shallow copy and negates it, and negation does not change the allocated data.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((7, 11));
let neg_r = r.as_neg();
assert_eq!(*neg_r, MiniRational::from((-7, 11)));
// methods taking &self can be used on the returned object
let reneg_r = neg_r.as_neg();
assert_eq!(*reneg_r, MiniRational::from((7, 11)));
assert_eq!(*reneg_r, r);
source

pub const fn as_abs(&self) -> BorrowRational<'_>

Borrows an absolute copy of the Rational number.

The returned object implements Deref<Target = Rational>.

This method performs a shallow copy and possibly negates it, and negation does not change the allocated data.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-7, 11));
let abs_r = r.as_abs();
assert_eq!(*abs_r, MiniRational::from((7, 11)));
// methods taking &self can be used on the returned object
let reabs_r = abs_r.as_abs();
assert_eq!(*reabs_r, MiniRational::from((7, 11)));
assert_eq!(*reabs_r, *abs_r);
source

pub const fn as_recip(&self) -> BorrowRational<'_>

Borrows a reciprocal copy of the Rational number.

The returned object implements Deref<Target = Rational>.

This method performs some shallow copying, swapping numerator and denominator and making sure the sign is in the numerator.

§Panics

Panics if the value is zero.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-7, 11));
let recip_r = r.as_recip();
assert_eq!(*recip_r, MiniRational::from((-11, 7)));
// methods taking &self can be used on the returned object
let rerecip_r = recip_r.as_recip();
assert_eq!(*rerecip_r, MiniRational::from((-7, 11)));
assert_eq!(*rerecip_r, r);
source

pub const fn is_zero(&self) -> bool

Returns true if the number is zero.

§Examples
use rug::Rational;
assert!(Rational::from(0).is_zero());
assert!(!(Rational::from((1, 2)).is_zero()));
source

pub const fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.

§Examples
use rug::Rational;
assert!(Rational::from((1, 2)).is_positive());
assert!(!(Rational::from((-1, 2)).is_positive()));
source

pub const fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.

§Examples
use rug::Rational;
assert!(Rational::from((-1, 2)).is_negative());
assert!(!(Rational::from((1, 2)).is_negative()));
source

pub const fn cmp0(&self) -> Ordering

Returns the same result as self.cmp(&0.into()), but is faster.

§Examples
use core::cmp::Ordering;
use rug::Rational;
assert_eq!(Rational::from((-5, 7)).cmp0(), Ordering::Less);
assert_eq!(Rational::from(0).cmp0(), Ordering::Equal);
assert_eq!(Rational::from((5, 7)).cmp0(), Ordering::Greater);
source

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

Compares the absolute values.

§Examples
use core::cmp::Ordering;
use rug::Rational;
let a = Rational::from((-23, 10));
let b = Rational::from((-47, 5));
assert_eq!(a.cmp(&b), Ordering::Greater);
assert_eq!(a.cmp_abs(&b), Ordering::Less);
source

pub const fn is_integer(&self) -> bool

Returns true if the number is an integer.

§Examples
use rug::Rational;
assert!(!(Rational::from((5, 2)).is_integer()));
assert!(Rational::from(3).is_integer());
source

pub fn sum<'a, I>(values: I) -> SumIncomplete<'a, I>
where I: Iterator<Item = &'a Self>,

Adds a list of Rational values.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};

let values = [
    Rational::from((5, 2)),
    Rational::from((-100_000, 7)),
    Rational::from(-4),
];

let sum = Rational::sum(values.iter()).complete();
let expected = MiniRational::from((5 * 7 - 100_000 * 2 - 4 * 14, 14));
assert_eq!(sum, expected);
source

pub fn dot<'a, I>(values: I) -> DotIncomplete<'a, I>
where I: Iterator<Item = (&'a Self, &'a Self)>,

Finds the dot product of a list of Rational value pairs.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};

let a = [Rational::from((270, 7)), Rational::from((-11, 10))];
let b = [Rational::from(7), Rational::from((1, 2))];

let dot = Rational::dot(a.iter().zip(b.iter())).complete();
let expected = MiniRational::from((270 * 20 - 11, 20));
assert_eq!(dot, expected);
source

pub fn product<'a, I>(values: I) -> ProductIncomplete<'a, I>
where I: Iterator<Item = &'a Self>,

Multiplies a list of Rational values.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};

let values = [
    Rational::from((5, 2)),
    Rational::from((-100_000, 7)),
    Rational::from(-4),
];

let product = Rational::product(values.iter()).complete();
let expected = MiniRational::from((5 * -100_000 * -4, 2 * 7));
assert_eq!(product, expected);
source

pub fn abs(self) -> Self

Computes the absolute value.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-100, 17));
let abs = r.abs();
assert_eq!(abs, MiniRational::from((100, 17)));
source

pub fn abs_mut(&mut self)

Computes the absolute value.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let mut r = Rational::from((-100, 17));
r.abs_mut();
assert_eq!(r, MiniRational::from((100, 17)));
source

pub fn abs_ref(&self) -> AbsIncomplete<'_>

Computes the absolute value.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};
let r = Rational::from((-100, 17));
let abs = r.abs_ref().complete();
assert_eq!(abs, MiniRational::from((100, 17)));
source

pub fn signum(self) -> Self

Computes the signum.

  • 0 if the value is zero
  • 1 if the value is positive
  • −1 if the value is negative
§Examples
use rug::Rational;
let r = Rational::from((-100, 17));
let signum = r.signum();
assert_eq!(signum, -1);
source

pub fn signum_mut(&mut self)

Computes the signum.

  • 0 if the value is zero
  • 1 if the value is positive
  • −1 if the value is negative
§Examples
use rug::Rational;
let mut r = Rational::from((-100, 17));
r.signum_mut();
assert_eq!(r, -1);
source

pub fn signum_ref(&self) -> SignumIncomplete<'_>

Computes the signum.

  • 0 if the value is zero
  • 1 if the value is positive
  • −1 if the value is negative

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::{Integer, Rational};
let r = Rational::from((-100, 17));
let r_ref = r.signum_ref();
let signum = Integer::from(r_ref);
assert_eq!(signum, -1);
source

pub fn clamp<Min, Max>(self, min: &Min, max: &Max) -> Self
where Self: PartialOrd<Min> + PartialOrd<Max> + for<'a> Assign<&'a Min> + for<'a> Assign<&'a Max>,

Clamps the value within the specified bounds.

§Panics

Panics if the maximum value is less than the minimum value.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let min = MiniRational::from((-3, 2));
let max = MiniRational::from((3, 2));
let min_borrow = &*min.borrow();
let max_borrow = &*max.borrow();
let too_small = Rational::from((-5, 2));
let clamped1 = too_small.clamp(min_borrow, max_borrow);
assert_eq!(clamped1, MiniRational::from((-3, 2)));
let in_range = Rational::from((1, 2));
let clamped2 = in_range.clamp(min_borrow, max_borrow);
assert_eq!(clamped2, MiniRational::from((1, 2)));
source

pub fn clamp_mut<Min, Max>(&mut self, min: &Min, max: &Max)
where Self: PartialOrd<Min> + PartialOrd<Max> + for<'a> Assign<&'a Min> + for<'a> Assign<&'a Max>,

Clamps the value within the specified bounds.

§Panics

Panics if the maximum value is less than the minimum value.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let min = MiniRational::from((-3, 2));
let max = MiniRational::from((3, 2));
let min_borrow = &*min.borrow();
let max_borrow = &*max.borrow();
let mut too_small = Rational::from((-5, 2));
too_small.clamp_mut(min_borrow, max_borrow);
assert_eq!(too_small, MiniRational::from((-3, 2)));
let mut in_range = Rational::from((1, 2));
in_range.clamp_mut(min_borrow, max_borrow);
assert_eq!(in_range, MiniRational::from((1, 2)));
source

pub fn clamp_ref<'min, 'max, Min, Max>( &self, min: &'min Min, max: &'max Max ) -> ClampIncomplete<'_, 'min, 'max, Min, Max>
where Self: PartialOrd<Min> + PartialOrd<Max> + for<'a> Assign<&'a Min> + for<'a> Assign<&'a Max>,

Clamps the value within the specified bounds.

The following are implemented with the returned incomplete-computation value as Src:

§Panics

Panics if the maximum value is less than the minimum value.

§Examples
use rug::rational::MiniRational;
use rug::{Assign, Complete, Rational};
let min = MiniRational::from((-3, 2));
let max = MiniRational::from((3, 2));
let min_borrow = &*min.borrow();
let max_borrow = &*max.borrow();
let too_small = Rational::from((-5, 2));
let mut clamped = too_small.clamp_ref(min_borrow, max_borrow).complete();
assert_eq!(clamped, MiniRational::from((-3, 2)));
let in_range = Rational::from((1, 2));
clamped.assign(in_range.clamp_ref(min_borrow, max_borrow));
assert_eq!(clamped, MiniRational::from((1, 2)));
source

pub fn recip(self) -> Self

Computes the reciprocal.

§Panics

Panics if the value is zero.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-100, 17));
let recip = r.recip();
assert_eq!(recip, MiniRational::from((-17, 100)));
source

pub fn recip_mut(&mut self)

Computes the reciprocal.

This method never reallocates or copies the heap data. It simply swaps the allocated data of the numerator and denominator and makes sure the denominator is stored as positive.

§Panics

Panics if the value is zero.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let mut r = Rational::from((-100, 17));
r.recip_mut();
assert_eq!(r, MiniRational::from((-17, 100)));
source

pub fn recip_ref(&self) -> RecipIncomplete<'_>

Computes the reciprocal.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};
let r = Rational::from((-100, 17));
assert_eq!(r.recip_ref().complete(), MiniRational::from((-17, 100)));
source

pub fn trunc(self) -> Self

Rounds the number towards zero.

§Examples
use rug::Rational;
// -3.7
let r1 = Rational::from((-37, 10));
let trunc1 = r1.trunc();
assert_eq!(trunc1, -3);
// 3.3
let r2 = Rational::from((33, 10));
let trunc2 = r2.trunc();
assert_eq!(trunc2, 3);
source

pub fn trunc_mut(&mut self)

Rounds the number towards zero.

§Examples
use rug::{Assign, Rational};
// -3.7
let mut r = Rational::from((-37, 10));
r.trunc_mut();
assert_eq!(r, -3);
// 3.3
r.assign((33, 10));
r.trunc_mut();
assert_eq!(r, 3);
source

pub fn trunc_ref(&self) -> TruncIncomplete<'_>

Rounds the number towards zero.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::{Assign, Integer, Rational};
let mut trunc = Integer::new();
// -3.7
let r1 = Rational::from((-37, 10));
trunc.assign(r1.trunc_ref());
assert_eq!(trunc, -3);
// 3.3
let r2 = Rational::from((33, 10));
trunc.assign(r2.trunc_ref());
assert_eq!(trunc, 3);
source

pub fn rem_trunc(self) -> Self

Computes the fractional part of the number.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -100/17 = -5 - 15/17
let r = Rational::from((-100, 17));
let rem = r.rem_trunc();
assert_eq!(rem, MiniRational::from((-15, 17)));
source

pub fn rem_trunc_mut(&mut self)

Computes the fractional part of the number.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -100/17 = -5 - 15/17
let mut r = Rational::from((-100, 17));
r.rem_trunc_mut();
assert_eq!(r, MiniRational::from((-15, 17)));
source

pub fn rem_trunc_ref(&self) -> RemTruncIncomplete<'_>

Computes the fractional part of the number.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};
// -100/17 = -5 - 15/17
let r = Rational::from((-100, 17));
assert_eq!(r.rem_trunc_ref().complete(), MiniRational::from((-15, 17)));
source

pub fn fract_trunc(self, trunc: Integer) -> (Self, Integer)

Computes the fractional and truncated parts of the number.

The initial value of trunc is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// -100/17 = -5 - 15/17
let r = Rational::from((-100, 17));
let (fract, trunc) = r.fract_trunc(Integer::new());
assert_eq!(fract, MiniRational::from((-15, 17)));
assert_eq!(trunc, -5);
source

pub fn fract_trunc_mut(&mut self, trunc: &mut Integer)

Computes the fractional and truncated parts of the number.

The initial value of trunc is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// -100/17 = -5 - 15/17
let mut r = Rational::from((-100, 17));
let mut whole = Integer::new();
r.fract_trunc_mut(&mut whole);
assert_eq!(r, MiniRational::from((-15, 17)));
assert_eq!(whole, -5);
source

pub fn fract_trunc_ref(&self) -> FractTruncIncomplete<'_>

Computes the fractional and truncated parts of the number.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Assign, Integer, Rational};
// -100/17 = -5 - 15/17
let r = Rational::from((-100, 17));
let r_ref = r.fract_trunc_ref();
let (mut fract, mut trunc) = (Rational::new(), Integer::new());
(&mut fract, &mut trunc).assign(r_ref);
assert_eq!(fract, MiniRational::from((-15, 17)));
assert_eq!(trunc, -5);
source

pub fn ceil(self) -> Self

Rounds the number upwards (towards plus infinity).

§Examples
use rug::Rational;
// -3.7
let r1 = Rational::from((-37, 10));
let ceil1 = r1.ceil();
assert_eq!(ceil1, -3);
// 3.3
let r2 = Rational::from((33, 10));
let ceil2 = r2.ceil();
assert_eq!(ceil2, 4);
source

pub fn ceil_mut(&mut self)

Rounds the number upwards (towards plus infinity).

§Examples
use rug::{Assign, Rational};
// -3.7
let mut r = Rational::from((-37, 10));
r.ceil_mut();
assert_eq!(r, -3);
// 3.3
r.assign((33, 10));
r.ceil_mut();
assert_eq!(r, 4);
source

pub fn ceil_ref(&self) -> CeilIncomplete<'_>

Rounds the number upwards (towards plus infinity).

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::{Assign, Integer, Rational};
let mut ceil = Integer::new();
// -3.7
let r1 = Rational::from((-37, 10));
ceil.assign(r1.ceil_ref());
assert_eq!(ceil, -3);
// 3.3
let r2 = Rational::from((33, 10));
ceil.assign(r2.ceil_ref());
assert_eq!(ceil, 4);
source

pub fn rem_ceil(self) -> Self

Computes the non-positive remainder after rounding up.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// 100/17 = 6 - 2/17
let r = Rational::from((100, 17));
let rem = r.rem_ceil();
assert_eq!(rem, MiniRational::from((-2, 17)));
source

pub fn rem_ceil_mut(&mut self)

Computes the non-positive remainder after rounding up.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// 100/17 = 6 - 2/17
let mut r = Rational::from((100, 17));
r.rem_ceil_mut();
assert_eq!(r, MiniRational::from((-2, 17)));
source

pub fn rem_ceil_ref(&self) -> RemCeilIncomplete<'_>

Computes the non-positive remainder after rounding up.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};
// 100/17 = 6 - 2/17
let r = Rational::from((100, 17));
assert_eq!(r.rem_ceil_ref().complete(), MiniRational::from((-2, 17)));
source

pub fn fract_ceil(self, ceil: Integer) -> (Self, Integer)

Computes the fractional and ceil parts of the number.

The fractional part cannot greater than zero.

The initial value of ceil is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// 100/17 = 6 - 2/17
let r = Rational::from((100, 17));
let (fract, ceil) = r.fract_ceil(Integer::new());
assert_eq!(fract, MiniRational::from((-2, 17)));
assert_eq!(ceil, 6);
source

pub fn fract_ceil_mut(&mut self, ceil: &mut Integer)

Computes the fractional and ceil parts of the number.

The fractional part cannot be greater than zero.

The initial value of ceil is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// 100/17 = 6 - 2/17
let mut r = Rational::from((100, 17));
let mut ceil = Integer::new();
r.fract_ceil_mut(&mut ceil);
assert_eq!(r, MiniRational::from((-2, 17)));
assert_eq!(ceil, 6);
source

pub fn fract_ceil_ref(&self) -> FractCeilIncomplete<'_>

Computes the fractional and ceil parts of the number.

The fractional part cannot be greater than zero.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Assign, Integer, Rational};
// 100/17 = 6 - 2/17
let r = Rational::from((100, 17));
let r_ref = r.fract_ceil_ref();
let (mut fract, mut ceil) = (Rational::new(), Integer::new());
(&mut fract, &mut ceil).assign(r_ref);
assert_eq!(fract, MiniRational::from((-2, 17)));
assert_eq!(ceil, 6);
source

pub fn floor(self) -> Self

Rounds the number downwards (towards minus infinity).

§Examples
use rug::Rational;
// -3.7
let r1 = Rational::from((-37, 10));
let floor1 = r1.floor();
assert_eq!(floor1, -4);
// 3.3
let r2 = Rational::from((33, 10));
let floor2 = r2.floor();
assert_eq!(floor2, 3);
source

pub fn floor_mut(&mut self)

Rounds the number downwards (towards minus infinity).

use rug::{Assign, Rational};
// -3.7
let mut r = Rational::from((-37, 10));
r.floor_mut();
assert_eq!(r, -4);
// 3.3
r.assign((33, 10));
r.floor_mut();
assert_eq!(r, 3);
source

pub fn floor_ref(&self) -> FloorIncomplete<'_>

Rounds the number downwards (towards minus infinity).

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::{Assign, Integer, Rational};
let mut floor = Integer::new();
// -3.7
let r1 = Rational::from((-37, 10));
floor.assign(r1.floor_ref());
assert_eq!(floor, -4);
// 3.3
let r2 = Rational::from((33, 10));
floor.assign(r2.floor_ref());
assert_eq!(floor, 3);
source

pub fn rem_floor(self) -> Self

Computes the non-negative remainder after rounding down.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -100/17 = -6 + 2/17
let r = Rational::from((-100, 17));
let rem = r.rem_floor();
assert_eq!(rem, MiniRational::from((2, 17)));
source

pub fn rem_floor_mut(&mut self)

Computes the non-negative remainder after rounding down.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -100/17 = -6 + 2/17
let mut r = Rational::from((-100, 17));
r.rem_floor_mut();
assert_eq!(r, MiniRational::from((2, 17)));
source

pub fn rem_floor_ref(&self) -> RemFloorIncomplete<'_>

Computes the non-negative remainder after rounding down.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};
// -100/17 = -6 + 2/17
let r = Rational::from((-100, 17));
assert_eq!(r.rem_floor_ref().complete(), MiniRational::from((2, 17)));
source

pub fn fract_floor(self, floor: Integer) -> (Self, Integer)

Computes the fractional and floor parts of the number.

The fractional part cannot be negative.

The initial value of floor is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// -100/17 = -6 + 2/17
let r = Rational::from((-100, 17));
let (fract, floor) = r.fract_floor(Integer::new());
assert_eq!(fract, MiniRational::from((2, 17)));
assert_eq!(floor, -6);
source

pub fn fract_floor_mut(&mut self, floor: &mut Integer)

Computes the fractional and floor parts of the number.

The fractional part cannot be negative.

The initial value of floor is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// -100/17 = -6 + 2/17
let mut r = Rational::from((-100, 17));
let mut floor = Integer::new();
r.fract_floor_mut(&mut floor);
assert_eq!(r, MiniRational::from((2, 17)));
assert_eq!(floor, -6);
source

pub fn fract_floor_ref(&self) -> FractFloorIncomplete<'_>

Computes the fractional and floor parts of the number.

The fractional part cannot be negative.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Assign, Integer, Rational};
// -100/17 = -6 + 2/17
let r = Rational::from((-100, 17));
let r_ref = r.fract_floor_ref();
let (mut fract, mut floor) = (Rational::new(), Integer::new());
(&mut fract, &mut floor).assign(r_ref);
assert_eq!(fract, MiniRational::from((2, 17)));
assert_eq!(floor, -6);
source

pub fn round(self) -> Self

Rounds the number to the nearest integer.

When the number lies exactly between two integers, it is rounded away from zero.

§Examples
use rug::Rational;
// -3.5
let r1 = Rational::from((-35, 10));
let round1 = r1.round();
assert_eq!(round1, -4);
// 3.7
let r2 = Rational::from((37, 10));
let round2 = r2.round();
assert_eq!(round2, 4);
source

pub fn round_mut(&mut self)

Rounds the number to the nearest integer.

When the number lies exactly between two integers, it is rounded away from zero.

§Examples
use rug::{Assign, Rational};
// -3.5
let mut r = Rational::from((-35, 10));
r.round_mut();
assert_eq!(r, -4);
// 3.7
r.assign((37, 10));
r.round_mut();
assert_eq!(r, 4);
source

pub fn round_ref(&self) -> RoundIncomplete<'_>

Rounds the number to the nearest integer.

When the number lies exactly between two integers, it is rounded away from zero.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::{Assign, Integer, Rational};
let mut round = Integer::new();
// -3.5
let r1 = Rational::from((-35, 10));
round.assign(r1.round_ref());
assert_eq!(round, -4);
// 3.7
let r2 = Rational::from((37, 10));
round.assign(r2.round_ref());
assert_eq!(round, 4);
source

pub fn rem_round(self) -> Self

Computes the remainder after rounding to the nearest integer.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -3.5 = -4 + 0.5 = -4 + 1/2
let r1 = Rational::from((-35, 10));
let rem1 = r1.rem_round();
assert_eq!(rem1, MiniRational::from((1, 2)));
// 3.7 = 4 - 0.3 = 4 - 3/10
let r2 = Rational::from((37, 10));
let rem2 = r2.rem_round();
assert_eq!(rem2, MiniRational::from((-3, 10)));
source

pub fn rem_round_mut(&mut self)

Computes the remainder after rounding to the nearest integer.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
// -3.5 = -4 + 0.5 = -4 + 1/2
let mut r1 = Rational::from((-35, 10));
r1.rem_round_mut();
assert_eq!(r1, MiniRational::from((1, 2)));
// 3.7 = 4 - 0.3 = 4 - 3/10
let mut r2 = Rational::from((37, 10));
r2.rem_round_mut();
assert_eq!(r2, MiniRational::from((-3, 10)));
source

pub fn rem_round_ref(&self) -> RemRoundIncomplete<'_>

Computes the remainder after rounding to the nearest integer.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Assign, Complete, Rational};
// -3.5 = -4 + 0.5 = -4 + 1/2
let r1 = Rational::from((-35, 10));
let mut rem = r1.rem_round_ref().complete();
assert_eq!(rem, MiniRational::from((1, 2)));
// 3.7 = 4 - 0.3 = 4 - 3/10
let r2 = Rational::from((37, 10));
rem.assign(r2.rem_round_ref());
assert_eq!(rem, MiniRational::from((-3, 10)));
source

pub fn fract_round(self, round: Integer) -> (Self, Integer)

Computes the fractional and rounded parts of the number.

The fractional part is positive when the number is rounded down and negative when the number is rounded up. When the number lies exactly between two integers, it is rounded away from zero.

The initial value of round is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// -3.5 = -4 + 0.5 = -4 + 1/2
let r1 = Rational::from((-35, 10));
let (fract1, round1) = r1.fract_round(Integer::new());
assert_eq!(fract1, MiniRational::from((1, 2)));
assert_eq!(round1, -4);
// 3.7 = 4 - 0.3 = 4 - 3/10
let r2 = Rational::from((37, 10));
let (fract2, round2) = r2.fract_round(Integer::new());
assert_eq!(fract2, MiniRational::from((-3, 10)));
assert_eq!(round2, 4);
source

pub fn fract_round_mut(&mut self, round: &mut Integer)

Computes the fractional and round parts of the number.

The fractional part is positive when the number is rounded down and negative when the number is rounded up. When the number lies exactly between two integers, it is rounded away from zero.

The initial value of round is ignored.

§Examples
use rug::rational::MiniRational;
use rug::{Integer, Rational};
// -3.5 = -4 + 0.5 = -4 + 1/2
let mut r1 = Rational::from((-35, 10));
let mut round1 = Integer::new();
r1.fract_round_mut(&mut round1);
assert_eq!(r1, MiniRational::from((1, 2)));
assert_eq!(round1, -4);
// 3.7 = 4 - 0.3 = 4 - 3/10
let mut r2 = Rational::from((37, 10));
let mut round2 = Integer::new();
r2.fract_round_mut(&mut round2);
assert_eq!(r2, MiniRational::from((-3, 10)));
assert_eq!(round2, 4);
source

pub fn fract_round_ref(&self) -> FractRoundIncomplete<'_>

Computes the fractional and round parts of the number.

The fractional part is positive when the number is rounded down and negative when the number is rounded up. When the number lies exactly between two integers, it is rounded away from zero.

The following are implemented with the returned incomplete-computation value as Src:

§Examples
use rug::rational::MiniRational;
use rug::{Assign, Integer, Rational};
// -3.5 = -4 + 0.5 = -4 + 1/2
let r1 = Rational::from((-35, 10));
let r_ref1 = r1.fract_round_ref();
let (mut fract1, mut round1) = (Rational::new(), Integer::new());
(&mut fract1, &mut round1).assign(r_ref1);
assert_eq!(fract1, MiniRational::from((1, 2)));
assert_eq!(round1, -4);
// 3.7 = 4 - 0.3 = 4 - 3/10
let r2 = Rational::from((37, 10));
let r_ref2 = r2.fract_round_ref();
let (mut fract2, mut round2) = (Rational::new(), Integer::new());
(&mut fract2, &mut round2).assign(r_ref2);
assert_eq!(fract2, MiniRational::from((-3, 10)));
assert_eq!(round2, 4);
source

pub fn square(self) -> Self

Computes the square.

This method cannot be replaced by a multiplication using the * operator: r * r and r * &r are both errors.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let r = Rational::from((-13, 2));
let square = r.square();
assert_eq!(square, MiniRational::from((169, 4)));
source

pub fn square_mut(&mut self)

Computes the square.

This method cannot be replaced by a compound multiplication and assignment using the *= operataor: r *= r; and r *= &r; are both errors.

§Examples
use rug::rational::MiniRational;
use rug::Rational;
let mut r = Rational::from((-13, 2));
r.square_mut();
assert_eq!(r, MiniRational::from((169, 4)));
source

pub fn square_ref(&self) -> MulIncomplete<'_>

Computes the square.

The following are implemented with the returned incomplete-computation value as Src:

r.square_ref() produces the exact same result as &r * &r.

§Examples
use rug::rational::MiniRational;
use rug::{Complete, Rational};
let r = Rational::from((-13, 2));
assert_eq!(r.square_ref().complete(), MiniRational::from((169, 4)));

Trait Implementations§

source§

impl<'a> Add<&'a Complex> for &'a Rational

§

type Output = AddRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Complex) -> AddRationalIncomplete<'_>

Performs the + operation. Read more
source§

impl<'a> Add<&'a Complex> for Rational

§

type Output = AddOwnedRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Complex) -> AddOwnedRationalIncomplete<'_>

Performs the + operation. Read more
source§

impl<'a> Add<&'a Float> for &'a Rational

§

type Output = AddRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Float) -> AddRationalIncomplete<'_>

Performs the + operation. Read more
source§

impl<'a> Add<&'a Float> for Rational

§

type Output = AddOwnedRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Float) -> AddOwnedRationalIncomplete<'_>

Performs the + operation. Read more
source§

impl<'a> Add<&'a Integer> for &'a Rational

§

type Output = AddIntegerIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Integer) -> AddIntegerIncomplete<'_>

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) -> Rational

Performs the + operation. Read more
source§

impl<'a> Add<&'a Rational> for &'a Complex

§

type Output = AddRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Rational) -> AddRationalIncomplete<'_>

Performs the + operation. Read more
source§

impl<'a> Add<&'a Rational> for &'a Float

§

type Output = AddRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Rational) -> AddRationalIncomplete<'_>

Performs the + operation. Read more
source§

impl<'a> Add<&'a Rational> for &'a Integer

§

type Output = AddIntegerIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Rational) -> AddIntegerIncomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &i128

§

type Output = AddI128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI128Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &i16

§

type Output = AddI16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI16Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &i32

§

type Output = AddI32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI32Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &i64

§

type Output = AddI64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI64Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &i8

§

type Output = AddI8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI8Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &isize

§

type Output = AddIsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddIsizeIncomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &u128

§

type Output = AddU128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU128Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &u16

§

type Output = AddU16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU16Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &u32

§

type Output = AddU32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU32Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &u64

§

type Output = AddU64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU64Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &u8

§

type Output = AddU8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU8Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for &usize

§

type Output = AddUsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddUsizeIncomplete<'_>

Performs the + operation. Read more
source§

impl Add<&Rational> for Complex

§

type Output = Complex

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&Rational> for Float

§

type Output = Float

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<'a> Add<&'a Rational> for Integer

§

type Output = AddOwnedIntegerIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Rational) -> AddOwnedIntegerIncomplete<'a>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for i128

§

type Output = AddI128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI128Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for i16

§

type Output = AddI16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI16Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for i32

§

type Output = AddI32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI32Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for i64

§

type Output = AddI64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI64Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for i8

§

type Output = AddI8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddI8Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for isize

§

type Output = AddIsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddIsizeIncomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for u128

§

type Output = AddU128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU128Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for u16

§

type Output = AddU16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU16Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for u32

§

type Output = AddU32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU32Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for u64

§

type Output = AddU64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU64Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for u8

§

type Output = AddU8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddU8Incomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&'b Rational> for usize

§

type Output = AddUsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Rational) -> AddUsizeIncomplete<'_>

Performs the + operation. Read more
source§

impl<'b> Add<&i128> for &'b Rational

§

type Output = AddI128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i128) -> AddI128Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&i16> for &'b Rational

§

type Output = AddI16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> AddI16Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&i32> for &'b Rational

§

type Output = AddI32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> AddI32Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&i64> for &'b Rational

§

type Output = AddI64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> AddI64Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&i8> for &'b Rational

§

type Output = AddI8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i8) -> AddI8Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&isize> for &'b Rational

§

type Output = AddIsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &isize) -> AddIsizeIncomplete<'b>

Performs the + operation. Read more
source§

impl Add<&isize> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<'b> Add<&u128> for &'b Rational

§

type Output = AddU128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u128) -> AddU128Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&u16> for &'b Rational

§

type Output = AddU16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> AddU16Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&u32> for &'b Rational

§

type Output = AddU32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> AddU32Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&u64> for &'b Rational

§

type Output = AddU64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> AddU64Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&u8> for &'b Rational

§

type Output = AddU8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> AddU8Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<&usize> for &'b Rational

§

type Output = AddUsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &usize) -> AddUsizeIncomplete<'b>

Performs the + operation. Read more
source§

impl Add<&usize> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<Complex> for &Rational

§

type Output = Complex

The resulting type after applying the + operator.
source§

fn add(self, rhs: Complex) -> Complex

Performs the + operation. Read more
source§

impl Add<Complex> for Rational

§

type Output = Complex

The resulting type after applying the + operator.
source§

fn add(self, rhs: Complex) -> Complex

Performs the + operation. Read more
source§

impl Add<Float> for &Rational

§

type Output = Float

The resulting type after applying the + operator.
source§

fn add(self, rhs: Float) -> Float

Performs the + operation. Read more
source§

impl Add<Float> for Rational

§

type Output = Float

The resulting type after applying the + operator.
source§

fn add(self, rhs: Float) -> Float

Performs the + operation. Read more
source§

impl<'a> Add<Integer> for &'a Rational

§

type Output = AddOwnedIntegerIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Integer) -> AddOwnedIntegerIncomplete<'a>

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) -> Rational

Performs the + operation. Read more
source§

impl<'a> Add<Rational> for &'a Complex

§

type Output = AddOwnedRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> AddOwnedRationalIncomplete<'a>

Performs the + operation. Read more
source§

impl<'a> Add<Rational> for &'a Float

§

type Output = AddOwnedRationalIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> AddOwnedRationalIncomplete<'a>

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the + operation. Read more
source§

impl Add<Rational> for &isize

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the + operation. Read more
source§

impl Add<Rational> for &usize

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<Rational> for Complex

§

type Output = Complex

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Complex

Performs the + operation. Read more
source§

impl Add<Rational> for Float

§

type Output = Float

The resulting type after applying the + operator.
source§

fn add(self, rhs: Rational) -> Float

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the + operation. Read more
source§

impl Add<Rational> for isize

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the + operation. Read more
source§

impl Add<Rational> for usize

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<'b> Add<i128> for &'b Rational

§

type Output = AddI128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i128) -> AddI128Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<i16> for &'b Rational

§

type Output = AddI16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> AddI16Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<i32> for &'b Rational

§

type Output = AddI32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> AddI32Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<i64> for &'b Rational

§

type Output = AddI64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> AddI64Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<i8> for &'b Rational

§

type Output = AddI8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> AddI8Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<isize> for &'b Rational

§

type Output = AddIsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: isize) -> AddIsizeIncomplete<'b>

Performs the + operation. Read more
source§

impl Add<isize> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: isize) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<u128> for &'b Rational

§

type Output = AddU128Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u128) -> AddU128Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<u16> for &'b Rational

§

type Output = AddU16Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> AddU16Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<u32> for &'b Rational

§

type Output = AddU32Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> AddU32Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<u64> for &'b Rational

§

type Output = AddU64Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> AddU64Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<u8> for &'b Rational

§

type Output = AddU8Incomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> AddU8Incomplete<'b>

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) -> Rational

Performs the + operation. Read more
source§

impl<'b> Add<usize> for &'b Rational

§

type Output = AddUsizeIncomplete<'b>

The resulting type after applying the + operator.
source§

fn add(self, rhs: usize) -> AddUsizeIncomplete<'b>

Performs the + operation. Read more
source§

impl Add<usize> for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

fn add(self, rhs: usize) -> Rational

Performs the + operation. Read more
source§

impl<'a> Add for &'a Rational

§

type Output = AddIncomplete<'a>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a Rational) -> AddIncomplete<'_>

Performs the + operation. Read more
source§

impl Add for Rational

§

type Output = Rational

The resulting type after applying the + operator.
source§

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

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 Complex

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&Rational> for Float

source§

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

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

source§

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

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

source§

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

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 Complex

source§

fn add_assign(&mut self, rhs: Rational)

Performs the += operation. Read more
source§

impl AddAssign<Rational> for Float

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

source§

fn add_assign(&mut self, rhs: isize)

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

source§

fn add_assign(&mut self, rhs: usize)

Performs the += operation. Read more
source§

impl AddAssign for Rational

source§

fn add_assign(&mut self, rhs: Rational)

Performs the += operation. Read more
source§

impl AddAssignRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn add_assign_round( &mut self, rhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the addition. Read more
source§

impl AddAssignRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn add_assign_round(&mut self, rhs: &Rational, round: Round) -> Ordering

Performs the addition. Read more
source§

impl AddAssignRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn add_assign_round( &mut self, rhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the addition. Read more
source§

impl AddAssignRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn add_assign_round(&mut self, rhs: Rational, round: Round) -> Ordering

Performs the addition. Read more
source§

impl AddFrom<&Integer> for Rational

source§

fn add_from(&mut self, lhs: &Integer)

Peforms the addition. Read more
source§

impl AddFrom<&Rational> for Complex

source§

fn add_from(&mut self, lhs: &Rational)

Peforms the addition. Read more
source§

impl AddFrom<&Rational> for Float

source§

fn add_from(&mut self, lhs: &Rational)

Peforms the addition. Read more
source§

impl AddFrom<&Rational> for Rational

source§

fn add_from(&mut self, lhs: &Rational)

Peforms the addition. Read more
source§

impl AddFrom<&i128> for Rational

source§

fn add_from(&mut self, lhs: &i128)

Peforms the addition. Read more
source§

impl AddFrom<&i16> for Rational

source§

fn add_from(&mut self, lhs: &i16)

Peforms the addition. Read more
source§

impl AddFrom<&i32> for Rational

source§

fn add_from(&mut self, lhs: &i32)

Peforms the addition. Read more
source§

impl AddFrom<&i64> for Rational

source§

fn add_from(&mut self, lhs: &i64)

Peforms the addition. Read more
source§

impl AddFrom<&i8> for Rational

source§

fn add_from(&mut self, lhs: &i8)

Peforms the addition. Read more
source§

impl AddFrom<&isize> for Rational

source§

fn add_from(&mut self, lhs: &isize)

Peforms the addition. Read more
source§

impl AddFrom<&u128> for Rational

source§

fn add_from(&mut self, lhs: &u128)

Peforms the addition. Read more
source§

impl AddFrom<&u16> for Rational

source§

fn add_from(&mut self, lhs: &u16)

Peforms the addition. Read more
source§

impl AddFrom<&u32> for Rational

source§

fn add_from(&mut self, lhs: &u32)

Peforms the addition. Read more
source§

impl AddFrom<&u64> for Rational

source§

fn add_from(&mut self, lhs: &u64)

Peforms the addition. Read more
source§

impl AddFrom<&u8> for Rational

source§

fn add_from(&mut self, lhs: &u8)

Peforms the addition. Read more
source§

impl AddFrom<&usize> for Rational

source§

fn add_from(&mut self, lhs: &usize)

Peforms the addition. Read more
source§

impl AddFrom<Integer> for Rational

source§

fn add_from(&mut self, lhs: Integer)

Peforms the addition. Read more
source§

impl AddFrom<Rational> for Complex

source§

fn add_from(&mut self, lhs: Rational)

Peforms the addition. Read more
source§

impl AddFrom<Rational> for Float

source§

fn add_from(&mut self, lhs: Rational)

Peforms the addition. Read more
source§

impl AddFrom<i128> for Rational

source§

fn add_from(&mut self, lhs: i128)

Peforms the addition. Read more
source§

impl AddFrom<i16> for Rational

source§

fn add_from(&mut self, lhs: i16)

Peforms the addition. Read more
source§

impl AddFrom<i32> for Rational

source§

fn add_from(&mut self, lhs: i32)

Peforms the addition. Read more
source§

impl AddFrom<i64> for Rational

source§

fn add_from(&mut self, lhs: i64)

Peforms the addition. Read more
source§

impl AddFrom<i8> for Rational

source§

fn add_from(&mut self, lhs: i8)

Peforms the addition. Read more
source§

impl AddFrom<isize> for Rational

source§

fn add_from(&mut self, lhs: isize)

Peforms the addition. Read more
source§

impl AddFrom<u128> for Rational

source§

fn add_from(&mut self, lhs: u128)

Peforms the addition. Read more
source§

impl AddFrom<u16> for Rational

source§

fn add_from(&mut self, lhs: u16)

Peforms the addition. Read more
source§

impl AddFrom<u32> for Rational

source§

fn add_from(&mut self, lhs: u32)

Peforms the addition. Read more
source§

impl AddFrom<u64> for Rational

source§

fn add_from(&mut self, lhs: u64)

Peforms the addition. Read more
source§

impl AddFrom<u8> for Rational

source§

fn add_from(&mut self, lhs: u8)

Peforms the addition. Read more
source§

impl AddFrom<usize> for Rational

source§

fn add_from(&mut self, lhs: usize)

Peforms the addition. Read more
source§

impl AddFrom for Rational

source§

fn add_from(&mut self, lhs: Rational)

Peforms the addition. Read more
source§

impl AddFromRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn add_from_round( &mut self, lhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the addition. Read more
source§

impl AddFromRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn add_from_round(&mut self, lhs: &Rational, round: Round) -> Ordering

Performs the addition. Read more
source§

impl AddFromRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn add_from_round( &mut self, lhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the addition. Read more
source§

impl AddFromRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn add_from_round(&mut self, lhs: Rational, round: Round) -> Ordering

Performs the addition. Read more
source§

impl<'a, Num, Den> Assign<&'a (Num, Den)> for Rational

source§

fn assign(&mut self, src: &'a (Num, Den))

Peforms the assignement.
source§

impl Assign<&MiniRational> for Rational

source§

fn assign(&mut self, src: &MiniRational)

Peforms the assignement.
source§

impl Assign<&Rational> for Rational

source§

fn assign(&mut self, src: &Rational)

Peforms the assignement.
source§

impl Assign<&SmallRational> for Rational

source§

fn assign(&mut self, src: &SmallRational)

Peforms the assignement.
source§

impl<Num, Den> Assign<(Num, Den)> for Rational
where Integer: Assign<Num> + Assign<Den>,

source§

fn assign(&mut self, src: (Num, Den))

Peforms the assignement.
source§

impl Assign<MiniRational> for Rational

source§

fn assign(&mut self, src: MiniRational)

Peforms the assignement.
source§

impl<Num> Assign<Num> for Rational
where Integer: Assign<Num>,

source§

fn assign(&mut self, src: Num)

Peforms the assignement.
source§

impl Assign<SmallRational> for Rational

source§

fn assign(&mut self, src: SmallRational)

Peforms the assignement.
source§

impl Assign for Rational

source§

fn assign(&mut self, src: Rational)

Peforms the assignement.
source§

impl AssignRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn assign_round(&mut self, src: &Rational, round: Round) -> Ordering

Peforms the assignment. Read more
source§

impl AssignRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn assign_round(&mut self, src: Rational, round: Round) -> Ordering

Peforms the assignment. Read more
source§

impl Binary for Rational

source§

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

Formats the value using the given formatter.
source§

impl Cast<Rational> for &Float

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for &Integer

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for Float

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for Integer

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for bool

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for f32

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for f64

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for i128

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for i16

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for i32

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for i64

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for i8

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for isize

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for u128

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for u16

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for u32

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for u64

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for u8

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<Rational> for usize

source§

fn cast(self) -> Rational

Casts the value.
source§

impl Cast<f32> for &Rational

source§

fn cast(self) -> f32

Casts the value.
source§

impl Cast<f32> for Rational

source§

fn cast(self) -> f32

Casts the value.
source§

impl Cast<f64> for &Rational

source§

fn cast(self) -> f64

Casts the value.
source§

impl Cast<f64> for Rational

source§

fn cast(self) -> f64

Casts the value.
source§

impl CheckedCast<Rational> for &Float

source§

fn checked_cast(self) -> Option<Rational>

Casts the value.
source§

impl CheckedCast<Rational> for Float

source§

fn checked_cast(self) -> Option<Rational>

Casts the value.
source§

impl CheckedCast<Rational> for f32

source§

fn checked_cast(self) -> Option<Rational>

Casts the value.
source§

impl CheckedCast<Rational> for f64

source§

fn checked_cast(self) -> Option<Rational>

Casts the value.
source§

impl Clone for Rational

source§

fn clone(&self) -> Rational

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, src: &Rational)

Performs copy-assignment from source. Read more
source§

impl Debug for Rational

source§

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

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

impl Default for Rational

source§

fn default() -> Rational

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Rational

source§

fn deserialize<D: Deserializer<'de>>( deserializer: D ) -> Result<Rational, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Rational

source§

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

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

impl<'a> Div<&'a Float> for &'a Rational

§

type Output = DivFromRationalIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a Float) -> DivFromRationalIncomplete<'_>

Performs the / operation. Read more
source§

impl<'a> Div<&'a Float> for Rational

§

type Output = DivFromOwnedRationalIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Float) -> DivFromOwnedRationalIncomplete<'_>

Performs the / operation. Read more
source§

impl<'a> Div<&'a Integer> for &'a Rational

§

type Output = DivIntegerIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a Integer) -> DivIntegerIncomplete<'_>

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) -> Rational

Performs the / operation. Read more
source§

impl<'a> Div<&'a Rational> for &'a Complex

§

type Output = DivRationalIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a Rational) -> DivRationalIncomplete<'_>

Performs the / operation. Read more
source§

impl<'a> Div<&'a Rational> for &'a Float

§

type Output = DivRationalIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a Rational) -> DivRationalIncomplete<'_>

Performs the / operation. Read more
source§

impl<'a> Div<&'a Rational> for &'a Integer

§

type Output = DivFromIntegerIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a Rational) -> DivFromIntegerIncomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &i128

§

type Output = DivFromI128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromI128Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &i16

§

type Output = DivFromI16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromI16Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &i32

§

type Output = DivFromI32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromI32Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &i64

§

type Output = DivFromI64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromI64Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &i8

§

type Output = DivFromI8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromI8Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &isize

§

type Output = DivFromIsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromIsizeIncomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &u128

§

type Output = DivFromU128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromU128Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &u16

§

type Output = DivFromU16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromU16Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &u32

§

type Output = DivFromU32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromU32Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &u64

§

type Output = DivFromU64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromU64Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &u8

§

type Output = DivFromU8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromU8Incomplete<'b>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for &usize

§

type Output = DivFromUsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b Rational) -> DivFromUsizeIncomplete<'b>

Performs the / operation. Read more
source§

impl Div<&Rational> for Complex

§

type Output = Complex

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&Rational> for Float

§

type Output = Float

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<'a> Div<&'a Rational> for Integer

§

type Output = DivFromOwnedIntegerIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromOwnedIntegerIncomplete<'_>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for i128

§

type Output = DivFromI128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromI128Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for i16

§

type Output = DivFromI16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromI16Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for i32

§

type Output = DivFromI32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromI32Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for i64

§

type Output = DivFromI64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromI64Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for i8

§

type Output = DivFromI8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromI8Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for isize

§

type Output = DivFromIsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromIsizeIncomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for u128

§

type Output = DivFromU128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromU128Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for u16

§

type Output = DivFromU16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromU16Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for u32

§

type Output = DivFromU32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromU32Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for u64

§

type Output = DivFromU64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromU64Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for u8

§

type Output = DivFromU8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromU8Incomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&'b Rational> for usize

§

type Output = DivFromUsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Rational) -> DivFromUsizeIncomplete<'_>

Performs the / operation. Read more
source§

impl<'b> Div<&i128> for &'b Rational

§

type Output = DivI128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i128) -> DivI128Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&i16> for &'b Rational

§

type Output = DivI16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> DivI16Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&i32> for &'b Rational

§

type Output = DivI32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> DivI32Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&i64> for &'b Rational

§

type Output = DivI64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> DivI64Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&i8> for &'b Rational

§

type Output = DivI8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i8) -> DivI8Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&isize> for &'b Rational

§

type Output = DivIsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &isize) -> DivIsizeIncomplete<'b>

Performs the / operation. Read more
source§

impl Div<&isize> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<'b> Div<&u128> for &'b Rational

§

type Output = DivU128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u128) -> DivU128Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&u16> for &'b Rational

§

type Output = DivU16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> DivU16Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&u32> for &'b Rational

§

type Output = DivU32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> DivU32Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&u64> for &'b Rational

§

type Output = DivU64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> DivU64Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&u8> for &'b Rational

§

type Output = DivU8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u8) -> DivU8Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<&usize> for &'b Rational

§

type Output = DivUsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &usize) -> DivUsizeIncomplete<'b>

Performs the / operation. Read more
source§

impl Div<&usize> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<Float> for &Rational

§

type Output = Float

The resulting type after applying the / operator.
source§

fn div(self, rhs: Float) -> Float

Performs the / operation. Read more
source§

impl Div<Float> for Rational

§

type Output = Float

The resulting type after applying the / operator.
source§

fn div(self, rhs: Float) -> Float

Performs the / operation. Read more
source§

impl<'a> Div<Integer> for &'a Rational

§

type Output = DivOwnedIntegerIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Integer) -> DivOwnedIntegerIncomplete<'a>

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) -> Rational

Performs the / operation. Read more
source§

impl<'a> Div<Rational> for &'a Complex

§

type Output = DivOwnedRationalIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> DivOwnedRationalIncomplete<'a>

Performs the / operation. Read more
source§

impl<'a> Div<Rational> for &'a Float

§

type Output = DivOwnedRationalIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> DivOwnedRationalIncomplete<'a>

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the / operation. Read more
source§

impl Div<Rational> for &isize

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the / operation. Read more
source§

impl Div<Rational> for &usize

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<Rational> for Complex

§

type Output = Complex

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Complex

Performs the / operation. Read more
source§

impl Div<Rational> for Float

§

type Output = Float

The resulting type after applying the / operator.
source§

fn div(self, rhs: Rational) -> Float

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the / operation. Read more
source§

impl Div<Rational> for isize

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the / operation. Read more
source§

impl Div<Rational> for usize

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<'b> Div<i128> for &'b Rational

§

type Output = DivI128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i128) -> DivI128Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<i16> for &'b Rational

§

type Output = DivI16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> DivI16Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<i32> for &'b Rational

§

type Output = DivI32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> DivI32Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<i64> for &'b Rational

§

type Output = DivI64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> DivI64Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<i8> for &'b Rational

§

type Output = DivI8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i8) -> DivI8Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<isize> for &'b Rational

§

type Output = DivIsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: isize) -> DivIsizeIncomplete<'b>

Performs the / operation. Read more
source§

impl Div<isize> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: isize) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<u128> for &'b Rational

§

type Output = DivU128Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u128) -> DivU128Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<u16> for &'b Rational

§

type Output = DivU16Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> DivU16Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<u32> for &'b Rational

§

type Output = DivU32Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> DivU32Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<u64> for &'b Rational

§

type Output = DivU64Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> DivU64Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<u8> for &'b Rational

§

type Output = DivU8Incomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> DivU8Incomplete<'b>

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) -> Rational

Performs the / operation. Read more
source§

impl<'b> Div<usize> for &'b Rational

§

type Output = DivUsizeIncomplete<'b>

The resulting type after applying the / operator.
source§

fn div(self, rhs: usize) -> DivUsizeIncomplete<'b>

Performs the / operation. Read more
source§

impl Div<usize> for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

fn div(self, rhs: usize) -> Rational

Performs the / operation. Read more
source§

impl<'a> Div for &'a Rational

§

type Output = DivIncomplete<'a>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a Rational) -> DivIncomplete<'_>

Performs the / operation. Read more
source§

impl Div for Rational

§

type Output = Rational

The resulting type after applying the / operator.
source§

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

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 Complex

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&Rational> for Float

source§

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

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

source§

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

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

source§

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

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 Complex

source§

fn div_assign(&mut self, rhs: Rational)

Performs the /= operation. Read more
source§

impl DivAssign<Rational> for Float

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

source§

fn div_assign(&mut self, rhs: isize)

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

source§

fn div_assign(&mut self, rhs: usize)

Performs the /= operation. Read more
source§

impl DivAssign for Rational

source§

fn div_assign(&mut self, rhs: Rational)

Performs the /= operation. Read more
source§

impl DivAssignRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn div_assign_round( &mut self, rhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the division. Read more
source§

impl DivAssignRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn div_assign_round(&mut self, rhs: &Rational, round: Round) -> Ordering

Performs the division. Read more
source§

impl DivAssignRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn div_assign_round( &mut self, rhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the division. Read more
source§

impl DivAssignRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn div_assign_round(&mut self, rhs: Rational, round: Round) -> Ordering

Performs the division. Read more
source§

impl DivFrom<&Integer> for Rational

source§

fn div_from(&mut self, lhs: &Integer)

Peforms the division. Read more
source§

impl DivFrom<&Rational> for Float

source§

fn div_from(&mut self, lhs: &Rational)

Peforms the division. Read more
source§

impl DivFrom<&Rational> for Rational

source§

fn div_from(&mut self, lhs: &Rational)

Peforms the division. Read more
source§

impl DivFrom<&i128> for Rational

source§

fn div_from(&mut self, lhs: &i128)

Peforms the division. Read more
source§

impl DivFrom<&i16> for Rational

source§

fn div_from(&mut self, lhs: &i16)

Peforms the division. Read more
source§

impl DivFrom<&i32> for Rational

source§

fn div_from(&mut self, lhs: &i32)

Peforms the division. Read more
source§

impl DivFrom<&i64> for Rational

source§

fn div_from(&mut self, lhs: &i64)

Peforms the division. Read more
source§

impl DivFrom<&i8> for Rational

source§

fn div_from(&mut self, lhs: &i8)

Peforms the division. Read more
source§

impl DivFrom<&isize> for Rational

source§

fn div_from(&mut self, lhs: &isize)

Peforms the division. Read more
source§

impl DivFrom<&u128> for Rational

source§

fn div_from(&mut self, lhs: &u128)

Peforms the division. Read more
source§

impl DivFrom<&u16> for Rational

source§

fn div_from(&mut self, lhs: &u16)

Peforms the division. Read more
source§

impl DivFrom<&u32> for Rational

source§

fn div_from(&mut self, lhs: &u32)

Peforms the division. Read more
source§

impl DivFrom<&u64> for Rational

source§

fn div_from(&mut self, lhs: &u64)

Peforms the division. Read more
source§

impl DivFrom<&u8> for Rational

source§

fn div_from(&mut self, lhs: &u8)

Peforms the division. Read more
source§

impl DivFrom<&usize> for Rational

source§

fn div_from(&mut self, lhs: &usize)

Peforms the division. Read more
source§

impl DivFrom<Integer> for Rational

source§

fn div_from(&mut self, lhs: Integer)

Peforms the division. Read more
source§

impl DivFrom<Rational> for Float

source§

fn div_from(&mut self, lhs: Rational)

Peforms the division. Read more
source§

impl DivFrom<i128> for Rational

source§

fn div_from(&mut self, lhs: i128)

Peforms the division. Read more
source§

impl DivFrom<i16> for Rational

source§

fn div_from(&mut self, lhs: i16)

Peforms the division. Read more
source§

impl DivFrom<i32> for Rational

source§

fn div_from(&mut self, lhs: i32)

Peforms the division. Read more
source§

impl DivFrom<i64> for Rational

source§

fn div_from(&mut self, lhs: i64)

Peforms the division. Read more
source§

impl DivFrom<i8> for Rational

source§

fn div_from(&mut self, lhs: i8)

Peforms the division. Read more
source§

impl DivFrom<isize> for Rational

source§

fn div_from(&mut self, lhs: isize)

Peforms the division. Read more
source§

impl DivFrom<u128> for Rational

source§

fn div_from(&mut self, lhs: u128)

Peforms the division. Read more
source§

impl DivFrom<u16> for Rational

source§

fn div_from(&mut self, lhs: u16)

Peforms the division. Read more
source§

impl DivFrom<u32> for Rational

source§

fn div_from(&mut self, lhs: u32)

Peforms the division. Read more
source§

impl DivFrom<u64> for Rational

source§

fn div_from(&mut self, lhs: u64)

Peforms the division. Read more
source§

impl DivFrom<u8> for Rational

source§

fn div_from(&mut self, lhs: u8)

Peforms the division. Read more
source§

impl DivFrom<usize> for Rational

source§

fn div_from(&mut self, lhs: usize)

Peforms the division. Read more
source§

impl DivFrom for Rational

source§

fn div_from(&mut self, lhs: Rational)

Peforms the division. Read more
source§

impl DivFromRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn div_from_round(&mut self, lhs: &Rational, round: Round) -> Ordering

Performs the division. Read more
source§

impl DivFromRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn div_from_round(&mut self, lhs: Rational, round: Round) -> Ordering

Performs the division. Read more
source§

impl Drop for Rational

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, Num, Den> From<&'a (Num, Den)> for Rational

source§

fn from(src: &'a (Num, Den)) -> Self

Converts to this type from the input type.
source§

impl From<&MiniRational> for Rational

source§

fn from(src: &MiniRational) -> Self

Converts to this type from the input type.
source§

impl From<&Rational> for Rational

source§

fn from(src: &Rational) -> Self

Converts to this type from the input type.
source§

impl From<&SmallRational> for Rational

source§

fn from(src: &SmallRational) -> Self

Converts to this type from the input type.
source§

impl<Num, Den> From<(Num, Den)> for Rational
where Integer: From<Num> + From<Den>,

source§

fn from((num, den): (Num, Den)) -> Self

Converts to this type from the input type.
source§

impl From<MiniRational> for Rational

source§

fn from(src: MiniRational) -> Self

Converts to this type from the input type.
source§

impl<Num> From<Num> for Rational
where Integer: From<Num>,

source§

fn from(src: Num) -> Self

Converts to this type from the input type.
source§

impl From<SmallRational> for Rational

source§

fn from(src: SmallRational) -> Self

Converts to this type from the input type.
source§

impl FromPrimitive for Rational

source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl FromStr for Rational

§

type Err = ParseRationalError

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

fn from_str(src: &str) -> Result<Rational, ParseRationalError>

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

impl Hash for Rational

source§

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

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

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

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

impl Inv for Rational

§

type Output = Rational

The result after applying the operator.
source§

fn inv(self) -> Self::Output

Returns the multiplicative inverse of self. Read more
source§

impl LowerHex for Rational

source§

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

Formats the value using the given formatter.
source§

impl<'a> Mul<&'a Complex> for &'a Rational

§

type Output = MulRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Complex) -> MulRationalIncomplete<'_>

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Complex> for Rational

§

type Output = MulOwnedRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Complex) -> MulOwnedRationalIncomplete<'_>

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Float> for &'a Rational

§

type Output = MulRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Float) -> MulRationalIncomplete<'_>

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Float> for Rational

§

type Output = MulOwnedRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Float) -> MulOwnedRationalIncomplete<'_>

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Integer> for &'a Rational

§

type Output = MulIntegerIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Integer) -> MulIntegerIncomplete<'_>

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) -> Rational

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Rational> for &'a Complex

§

type Output = MulRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Rational) -> MulRationalIncomplete<'_>

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Rational> for &'a Float

§

type Output = MulRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Rational) -> MulRationalIncomplete<'_>

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Rational> for &'a Integer

§

type Output = MulIntegerIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Rational) -> MulIntegerIncomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &i128

§

type Output = MulI128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI128Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &i16

§

type Output = MulI16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI16Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &i32

§

type Output = MulI32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI32Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &i64

§

type Output = MulI64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI64Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &i8

§

type Output = MulI8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI8Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &isize

§

type Output = MulIsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulIsizeIncomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &u128

§

type Output = MulU128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU128Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &u16

§

type Output = MulU16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU16Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &u32

§

type Output = MulU32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU32Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &u64

§

type Output = MulU64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU64Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &u8

§

type Output = MulU8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU8Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for &usize

§

type Output = MulUsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulUsizeIncomplete<'_>

Performs the * operation. Read more
source§

impl Mul<&Rational> for Complex

§

type Output = Complex

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&Rational> for Float

§

type Output = Float

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Rational> for Integer

§

type Output = MulOwnedIntegerIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Rational) -> MulOwnedIntegerIncomplete<'a>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for i128

§

type Output = MulI128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI128Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for i16

§

type Output = MulI16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI16Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for i32

§

type Output = MulI32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI32Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for i64

§

type Output = MulI64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI64Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for i8

§

type Output = MulI8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulI8Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for isize

§

type Output = MulIsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulIsizeIncomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for u128

§

type Output = MulU128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU128Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for u16

§

type Output = MulU16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU16Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for u32

§

type Output = MulU32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU32Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for u64

§

type Output = MulU64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU64Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for u8

§

type Output = MulU8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulU8Incomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Rational> for usize

§

type Output = MulUsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Rational) -> MulUsizeIncomplete<'_>

Performs the * operation. Read more
source§

impl<'b> Mul<&i128> for &'b Rational

§

type Output = MulI128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i128) -> MulI128Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&i16> for &'b Rational

§

type Output = MulI16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> MulI16Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&i32> for &'b Rational

§

type Output = MulI32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> MulI32Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&i64> for &'b Rational

§

type Output = MulI64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> MulI64Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&i8> for &'b Rational

§

type Output = MulI8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i8) -> MulI8Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&isize> for &'b Rational

§

type Output = MulIsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &isize) -> MulIsizeIncomplete<'b>

Performs the * operation. Read more
source§

impl Mul<&isize> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<'b> Mul<&u128> for &'b Rational

§

type Output = MulU128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u128) -> MulU128Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&u16> for &'b Rational

§

type Output = MulU16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> MulU16Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&u32> for &'b Rational

§

type Output = MulU32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> MulU32Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&u64> for &'b Rational

§

type Output = MulU64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> MulU64Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&u8> for &'b Rational

§

type Output = MulU8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> MulU8Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<&usize> for &'b Rational

§

type Output = MulUsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &usize) -> MulUsizeIncomplete<'b>

Performs the * operation. Read more
source§

impl Mul<&usize> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<Complex> for &Rational

§

type Output = Complex

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Complex) -> Complex

Performs the * operation. Read more
source§

impl Mul<Complex> for Rational

§

type Output = Complex

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Complex) -> Complex

Performs the * operation. Read more
source§

impl Mul<Float> for &Rational

§

type Output = Float

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Float) -> Float

Performs the * operation. Read more
source§

impl Mul<Float> for Rational

§

type Output = Float

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Float) -> Float

Performs the * operation. Read more
source§

impl<'a> Mul<Integer> for &'a Rational

§

type Output = MulOwnedIntegerIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Integer) -> MulOwnedIntegerIncomplete<'a>

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) -> Rational

Performs the * operation. Read more
source§

impl<'a> Mul<Rational> for &'a Complex

§

type Output = MulOwnedRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> MulOwnedRationalIncomplete<'a>

Performs the * operation. Read more
source§

impl<'a> Mul<Rational> for &'a Float

§

type Output = MulOwnedRationalIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> MulOwnedRationalIncomplete<'a>

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the * operation. Read more
source§

impl Mul<Rational> for &isize

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the * operation. Read more
source§

impl Mul<Rational> for &usize

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<Rational> for Complex

§

type Output = Complex

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Complex

Performs the * operation. Read more
source§

impl Mul<Rational> for Float

§

type Output = Float

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Rational) -> Float

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the * operation. Read more
source§

impl Mul<Rational> for isize

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the * operation. Read more
source§

impl Mul<Rational> for usize

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<'b> Mul<i128> for &'b Rational

§

type Output = MulI128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i128) -> MulI128Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<i16> for &'b Rational

§

type Output = MulI16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> MulI16Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<i32> for &'b Rational

§

type Output = MulI32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> MulI32Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<i64> for &'b Rational

§

type Output = MulI64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> MulI64Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<i8> for &'b Rational

§

type Output = MulI8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> MulI8Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<isize> for &'b Rational

§

type Output = MulIsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: isize) -> MulIsizeIncomplete<'b>

Performs the * operation. Read more
source§

impl Mul<isize> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: isize) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<u128> for &'b Rational

§

type Output = MulU128Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u128) -> MulU128Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<u16> for &'b Rational

§

type Output = MulU16Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> MulU16Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<u32> for &'b Rational

§

type Output = MulU32Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> MulU32Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<u64> for &'b Rational

§

type Output = MulU64Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> MulU64Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<u8> for &'b Rational

§

type Output = MulU8Incomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> MulU8Incomplete<'b>

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) -> Rational

Performs the * operation. Read more
source§

impl<'b> Mul<usize> for &'b Rational

§

type Output = MulUsizeIncomplete<'b>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: usize) -> MulUsizeIncomplete<'b>

Performs the * operation. Read more
source§

impl Mul<usize> for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

fn mul(self, rhs: usize) -> Rational

Performs the * operation. Read more
source§

impl<'a> Mul for &'a Rational

§

type Output = MulIncomplete<'a>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Rational) -> MulIncomplete<'_>

Performs the * operation. Read more
source§

impl Mul for Rational

§

type Output = Rational

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAdd<&Rational, &Rational> for Rational

§

type Output = Rational

The resulting type after applying the fused multiply-add.
source§

fn mul_add(self, a: &Rational, b: &Rational) -> Rational

Performs the fused multiply-add operation (self * a) + b
source§

impl MulAdd for Rational

§

type Output = Rational

The resulting type after applying the fused multiply-add.
source§

fn mul_add(self, a: Rational, b: Rational) -> Rational

Performs the fused multiply-add operation (self * a) + b
source§

impl MulAddAssign<&Rational, &Rational> for Rational

source§

fn mul_add_assign(&mut self, a: &Rational, b: &Rational)

Performs the fused multiply-add assignment operation *self = (*self * a) + b
source§

impl MulAddAssign for Rational

source§

fn mul_add_assign(&mut self, a: Rational, b: Rational)

Performs the fused multiply-add assignment operation *self = (*self * a) + b
source§

impl MulAssign<&Integer> for Rational

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&Rational> for Complex

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&Rational> for Float

source§

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

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

source§

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

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

source§

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

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 Complex

source§

fn mul_assign(&mut self, rhs: Rational)

Performs the *= operation. Read more
source§

impl MulAssign<Rational> for Float

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

source§

fn mul_assign(&mut self, rhs: isize)

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

source§

fn mul_assign(&mut self, rhs: usize)

Performs the *= operation. Read more
source§

impl MulAssign for Rational

source§

fn mul_assign(&mut self, rhs: Rational)

Performs the *= operation. Read more
source§

impl MulAssignRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn mul_assign_round( &mut self, rhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the multiplication. Read more
source§

impl MulAssignRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn mul_assign_round(&mut self, rhs: &Rational, round: Round) -> Ordering

Performs the multiplication. Read more
source§

impl MulAssignRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn mul_assign_round( &mut self, rhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the multiplication. Read more
source§

impl MulAssignRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn mul_assign_round(&mut self, rhs: Rational, round: Round) -> Ordering

Performs the multiplication. Read more
source§

impl MulFrom<&Integer> for Rational

source§

fn mul_from(&mut self, lhs: &Integer)

Peforms the multiplication. Read more
source§

impl MulFrom<&Rational> for Complex

source§

fn mul_from(&mut self, lhs: &Rational)

Peforms the multiplication. Read more
source§

impl MulFrom<&Rational> for Float

source§

fn mul_from(&mut self, lhs: &Rational)

Peforms the multiplication. Read more
source§

impl MulFrom<&Rational> for Rational

source§

fn mul_from(&mut self, lhs: &Rational)

Peforms the multiplication. Read more
source§

impl MulFrom<&i128> for Rational

source§

fn mul_from(&mut self, lhs: &i128)

Peforms the multiplication. Read more
source§

impl MulFrom<&i16> for Rational

source§

fn mul_from(&mut self, lhs: &i16)

Peforms the multiplication. Read more
source§

impl MulFrom<&i32> for Rational

source§

fn mul_from(&mut self, lhs: &i32)

Peforms the multiplication. Read more
source§

impl MulFrom<&i64> for Rational

source§

fn mul_from(&mut self, lhs: &i64)

Peforms the multiplication. Read more
source§

impl MulFrom<&i8> for Rational

source§

fn mul_from(&mut self, lhs: &i8)

Peforms the multiplication. Read more
source§

impl MulFrom<&isize> for Rational

source§

fn mul_from(&mut self, lhs: &isize)

Peforms the multiplication. Read more
source§

impl MulFrom<&u128> for Rational

source§

fn mul_from(&mut self, lhs: &u128)

Peforms the multiplication. Read more
source§

impl MulFrom<&u16> for Rational

source§

fn mul_from(&mut self, lhs: &u16)

Peforms the multiplication. Read more
source§

impl MulFrom<&u32> for Rational

source§

fn mul_from(&mut self, lhs: &u32)

Peforms the multiplication. Read more
source§

impl MulFrom<&u64> for Rational

source§

fn mul_from(&mut self, lhs: &u64)

Peforms the multiplication. Read more
source§

impl MulFrom<&u8> for Rational

source§

fn mul_from(&mut self, lhs: &u8)

Peforms the multiplication. Read more
source§

impl MulFrom<&usize> for Rational

source§

fn mul_from(&mut self, lhs: &usize)

Peforms the multiplication. Read more
source§

impl MulFrom<Integer> for Rational

source§

fn mul_from(&mut self, lhs: Integer)

Peforms the multiplication. Read more
source§

impl MulFrom<Rational> for Complex

source§

fn mul_from(&mut self, lhs: Rational)

Peforms the multiplication. Read more
source§

impl MulFrom<Rational> for Float

source§

fn mul_from(&mut self, lhs: Rational)

Peforms the multiplication. Read more
source§

impl MulFrom<i128> for Rational

source§

fn mul_from(&mut self, lhs: i128)

Peforms the multiplication. Read more
source§

impl MulFrom<i16> for Rational

source§

fn mul_from(&mut self, lhs: i16)

Peforms the multiplication. Read more
source§

impl MulFrom<i32> for Rational

source§

fn mul_from(&mut self, lhs: i32)

Peforms the multiplication. Read more
source§

impl MulFrom<i64> for Rational

source§

fn mul_from(&mut self, lhs: i64)

Peforms the multiplication. Read more
source§

impl MulFrom<i8> for Rational

source§

fn mul_from(&mut self, lhs: i8)

Peforms the multiplication. Read more
source§

impl MulFrom<isize> for Rational

source§

fn mul_from(&mut self, lhs: isize)

Peforms the multiplication. Read more
source§

impl MulFrom<u128> for Rational

source§

fn mul_from(&mut self, lhs: u128)

Peforms the multiplication. Read more
source§

impl MulFrom<u16> for Rational

source§

fn mul_from(&mut self, lhs: u16)

Peforms the multiplication. Read more
source§

impl MulFrom<u32> for Rational

source§

fn mul_from(&mut self, lhs: u32)

Peforms the multiplication. Read more
source§

impl MulFrom<u64> for Rational

source§

fn mul_from(&mut self, lhs: u64)

Peforms the multiplication. Read more
source§

impl MulFrom<u8> for Rational

source§

fn mul_from(&mut self, lhs: u8)

Peforms the multiplication. Read more
source§

impl MulFrom<usize> for Rational

source§

fn mul_from(&mut self, lhs: usize)

Peforms the multiplication. Read more
source§

impl MulFrom for Rational

source§

fn mul_from(&mut self, lhs: Rational)

Peforms the multiplication. Read more
source§

impl MulFromRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn mul_from_round( &mut self, lhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the multiplication. Read more
source§

impl MulFromRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn mul_from_round(&mut self, lhs: &Rational, round: Round) -> Ordering

Performs the multiplication. Read more
source§

impl MulFromRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn mul_from_round( &mut self, lhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the multiplication. Read more
source§

impl MulFromRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn mul_from_round(&mut self, lhs: Rational, round: Round) -> Ordering

Performs the multiplication. Read more
source§

impl<'a> Neg for &'a Rational

§

type Output = NegIncomplete<'a>

The resulting type after applying the - operator.
source§

fn neg(self) -> NegIncomplete<'a>

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) -> Rational

Performs the unary - operation. Read more
source§

impl NegAssign for Rational

source§

fn neg_assign(&mut self)

Peforms the negation. Read more
source§

impl Octal for Rational

source§

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

Formats the value using the given formatter.
source§

impl One for Rational

source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
source§

impl Ord for Rational

source§

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

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

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

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

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

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

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

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

impl PartialEq<Complex> for Rational

source§

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

source§

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

source§

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

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 Float

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 MiniRational

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 SmallRational

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 f32

source§

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

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

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

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

impl PartialEq<Rational> for f64

source§

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

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

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

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

impl PartialEq<Rational> for i128

source§

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

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

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

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

impl PartialEq<Rational> for i16

source§

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

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

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

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

impl PartialEq<Rational> for i32

source§

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

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

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

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

impl PartialEq<Rational> for i64

source§

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

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

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

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

impl PartialEq<Rational> for i8

source§

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

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

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

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

impl PartialEq<Rational> for isize

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

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

source§

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

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

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

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

impl PartialEq<f32> for Rational

source§

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

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

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

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

impl PartialEq<f64> for Rational

source§

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

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

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

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

impl PartialEq<i128> for Rational

source§

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

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

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

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

impl PartialEq<i16> for Rational

source§

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

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

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

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

impl PartialEq<i32> for Rational

source§

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

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

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

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

impl PartialEq<i64> for Rational

source§

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

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

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

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

impl PartialEq<i8> for Rational

source§

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

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

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

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

impl PartialEq<isize> for Rational

source§

fn eq(&self, other: &isize) -> 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 PartialEq<usize> for Rational

source§

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

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

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

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

impl PartialEq for Rational

source§

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

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

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

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

impl PartialOrd<Float> for Rational

source§

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

source§

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

source§

fn partial_cmp(&self, q: &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 MiniRational

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 SmallRational

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 f32

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for f64

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for i128

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for i16

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for i32

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for i64

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for i8

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Rational> for isize

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

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

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<f32> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<f64> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<i128> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<i16> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<i32> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<i64> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<i8> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<isize> for Rational

source§

fn partial_cmp(&self, other: &isize) -> 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 PartialOrd<usize> for Rational

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd for Rational

source§

fn partial_cmp(&self, other: &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<'b> Pow<&i32> for &'b Rational

§

type Output = PowI32Incomplete<'b>

The result after applying the operator.
source§

fn pow(self, rhs: &i32) -> PowI32Incomplete<'b>

Returns self to the power rhs. Read more
source§

impl Pow<&i32> for Rational

§

type Output = Rational

The result after applying the operator.
source§

fn pow(self, rhs: &i32) -> Rational

Returns self to the power rhs. Read more
source§

impl<'b> Pow<&u32> for &'b Rational

§

type Output = PowU32Incomplete<'b>

The result after applying the operator.
source§

fn pow(self, rhs: &u32) -> PowU32Incomplete<'b>

Returns self to the power rhs. Read more
source§

impl Pow<&u32> for Rational

§

type Output = Rational

The result after applying the operator.
source§

fn pow(self, rhs: &u32) -> Rational

Returns self to the power rhs. Read more
source§

impl<'b> Pow<i32> for &'b Rational

§

type Output = PowI32Incomplete<'b>

The result after applying the operator.
source§

fn pow(self, rhs: i32) -> PowI32Incomplete<'b>

Returns self to the power rhs. Read more
source§

impl Pow<i32> for Rational

§

type Output = Rational

The result after applying the operator.
source§

fn pow(self, rhs: i32) -> Rational

Returns self to the power rhs. Read more
source§

impl<'b> Pow<u32> for &'b Rational

§

type Output = PowU32Incomplete<'b>

The result after applying the operator.
source§

fn pow(self, rhs: u32) -> PowU32Incomplete<'b>

Returns self to the power rhs. Read more
source§

impl Pow<u32> for Rational

§

type Output = Rational

The result after applying the operator.
source§

fn pow(self, rhs: u32) -> Rational

Returns self to the power rhs. Read more
source§

impl PowAssign<&i32> for Rational

source§

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

Peforms the power operation. Read more
source§

impl PowAssign<&u32> for Rational

source§

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

Peforms the power operation. Read more
source§

impl PowAssign<i32> for Rational

source§

fn pow_assign(&mut self, rhs: i32)

Peforms the power operation. Read more
source§

impl PowAssign<u32> for Rational

source§

fn pow_assign(&mut self, rhs: u32)

Peforms the power operation. Read more
source§

impl<T> Product<T> for Rational
where Rational: MulAssign<T>,

source§

fn product<I>(iter: I) -> Rational
where I: Iterator<Item = T>,

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

impl Serialize for Rational

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl<'b> Shl<&i32> for &'b Rational

§

type Output = ShlI32Incomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i32) -> ShlI32Incomplete<'b>

Performs the << operation. Read more
source§

impl Shl<&i32> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i32) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<&isize> for &'b Rational

§

type Output = ShlIsizeIncomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &isize) -> ShlIsizeIncomplete<'b>

Performs the << operation. Read more
source§

impl Shl<&isize> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &isize) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<&u32> for &'b Rational

§

type Output = ShlU32Incomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u32) -> ShlU32Incomplete<'b>

Performs the << operation. Read more
source§

impl Shl<&u32> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u32) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<&usize> for &'b Rational

§

type Output = ShlUsizeIncomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &usize) -> ShlUsizeIncomplete<'b>

Performs the << operation. Read more
source§

impl Shl<&usize> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &usize) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<i32> for &'b Rational

§

type Output = ShlI32Incomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i32) -> ShlI32Incomplete<'b>

Performs the << operation. Read more
source§

impl Shl<i32> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i32) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<isize> for &'b Rational

§

type Output = ShlIsizeIncomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: isize) -> ShlIsizeIncomplete<'b>

Performs the << operation. Read more
source§

impl Shl<isize> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: isize) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<u32> for &'b Rational

§

type Output = ShlU32Incomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> ShlU32Incomplete<'b>

Performs the << operation. Read more
source§

impl Shl<u32> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> Rational

Performs the << operation. Read more
source§

impl<'b> Shl<usize> for &'b Rational

§

type Output = ShlUsizeIncomplete<'b>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> ShlUsizeIncomplete<'b>

Performs the << operation. Read more
source§

impl Shl<usize> for Rational

§

type Output = Rational

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> Rational

Performs the << operation. Read more
source§

impl ShlAssign<&i32> for Rational

source§

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

Performs the <<= operation. Read more
source§

impl ShlAssign<&isize> for Rational

source§

fn shl_assign(&mut self, rhs: &isize)

Performs the <<= operation. Read more
source§

impl ShlAssign<&u32> for Rational

source§

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

Performs the <<= operation. Read more
source§

impl ShlAssign<&usize> for Rational

source§

fn shl_assign(&mut self, rhs: &usize)

Performs the <<= operation. Read more
source§

impl ShlAssign<i32> for Rational

source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
source§

impl ShlAssign<isize> for Rational

source§

fn shl_assign(&mut self, rhs: isize)

Performs the <<= operation. Read more
source§

impl ShlAssign<u32> for Rational

source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
source§

impl ShlAssign<usize> for Rational

source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
source§

impl<'b> Shr<&i32> for &'b Rational

§

type Output = ShrI32Incomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i32) -> ShrI32Incomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<&i32> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i32) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<&isize> for &'b Rational

§

type Output = ShrIsizeIncomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &isize) -> ShrIsizeIncomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<&isize> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &isize) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<&u32> for &'b Rational

§

type Output = ShrU32Incomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u32) -> ShrU32Incomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<&u32> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u32) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<&usize> for &'b Rational

§

type Output = ShrUsizeIncomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &usize) -> ShrUsizeIncomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<&usize> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &usize) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<i32> for &'b Rational

§

type Output = ShrI32Incomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i32) -> ShrI32Incomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<i32> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i32) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<isize> for &'b Rational

§

type Output = ShrIsizeIncomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: isize) -> ShrIsizeIncomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<isize> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: isize) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<u32> for &'b Rational

§

type Output = ShrU32Incomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> ShrU32Incomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<u32> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> Rational

Performs the >> operation. Read more
source§

impl<'b> Shr<usize> for &'b Rational

§

type Output = ShrUsizeIncomplete<'b>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> ShrUsizeIncomplete<'b>

Performs the >> operation. Read more
source§

impl Shr<usize> for Rational

§

type Output = Rational

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> Rational

Performs the >> operation. Read more
source§

impl ShrAssign<&i32> for Rational

source§

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

Performs the >>= operation. Read more
source§

impl ShrAssign<&isize> for Rational

source§

fn shr_assign(&mut self, rhs: &isize)

Performs the >>= operation. Read more
source§

impl ShrAssign<&u32> for Rational

source§

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

Performs the >>= operation. Read more
source§

impl ShrAssign<&usize> for Rational

source§

fn shr_assign(&mut self, rhs: &usize)

Performs the >>= operation. Read more
source§

impl ShrAssign<i32> for Rational

source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
source§

impl ShrAssign<isize> for Rational

source§

fn shr_assign(&mut self, rhs: isize)

Performs the >>= operation. Read more
source§

impl ShrAssign<u32> for Rational

source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
source§

impl ShrAssign<usize> for Rational

source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
source§

impl<'a> Sub<&'a Complex> for &'a Rational

§

type Output = SubFromRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Complex) -> SubFromRationalIncomplete<'_>

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Complex> for Rational

§

type Output = SubFromOwnedRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Complex) -> SubFromOwnedRationalIncomplete<'_>

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Float> for &'a Rational

§

type Output = SubFromRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Float) -> SubFromRationalIncomplete<'_>

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Float> for Rational

§

type Output = SubFromOwnedRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Float) -> SubFromOwnedRationalIncomplete<'_>

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Integer> for &'a Rational

§

type Output = SubIntegerIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Integer) -> SubIntegerIncomplete<'_>

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) -> Rational

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Rational> for &'a Complex

§

type Output = SubRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Rational) -> SubRationalIncomplete<'_>

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Rational> for &'a Float

§

type Output = SubRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Rational) -> SubRationalIncomplete<'_>

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Rational> for &'a Integer

§

type Output = SubFromIntegerIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Rational) -> SubFromIntegerIncomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &i128

§

type Output = SubFromI128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromI128Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &i16

§

type Output = SubFromI16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromI16Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &i32

§

type Output = SubFromI32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromI32Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &i64

§

type Output = SubFromI64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromI64Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &i8

§

type Output = SubFromI8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromI8Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &isize

§

type Output = SubFromIsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromIsizeIncomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &u128

§

type Output = SubFromU128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromU128Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &u16

§

type Output = SubFromU16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromU16Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &u32

§

type Output = SubFromU32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromU32Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &u64

§

type Output = SubFromU64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromU64Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &u8

§

type Output = SubFromU8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromU8Incomplete<'b>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for &usize

§

type Output = SubFromUsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b Rational) -> SubFromUsizeIncomplete<'b>

Performs the - operation. Read more
source§

impl Sub<&Rational> for Complex

§

type Output = Complex

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&Rational> for Float

§

type Output = Float

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Rational> for Integer

§

type Output = SubFromOwnedIntegerIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromOwnedIntegerIncomplete<'_>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for i128

§

type Output = SubFromI128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromI128Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for i16

§

type Output = SubFromI16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromI16Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for i32

§

type Output = SubFromI32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromI32Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for i64

§

type Output = SubFromI64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromI64Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for i8

§

type Output = SubFromI8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromI8Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for isize

§

type Output = SubFromIsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromIsizeIncomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for u128

§

type Output = SubFromU128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromU128Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for u16

§

type Output = SubFromU16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromU16Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for u32

§

type Output = SubFromU32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromU32Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for u64

§

type Output = SubFromU64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromU64Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for u8

§

type Output = SubFromU8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromU8Incomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&'b Rational> for usize

§

type Output = SubFromUsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Rational) -> SubFromUsizeIncomplete<'_>

Performs the - operation. Read more
source§

impl<'b> Sub<&i128> for &'b Rational

§

type Output = SubI128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i128) -> SubI128Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&i16> for &'b Rational

§

type Output = SubI16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> SubI16Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&i32> for &'b Rational

§

type Output = SubI32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> SubI32Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&i64> for &'b Rational

§

type Output = SubI64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> SubI64Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&i8> for &'b Rational

§

type Output = SubI8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i8) -> SubI8Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&isize> for &'b Rational

§

type Output = SubIsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &isize) -> SubIsizeIncomplete<'b>

Performs the - operation. Read more
source§

impl Sub<&isize> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<'b> Sub<&u128> for &'b Rational

§

type Output = SubU128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u128) -> SubU128Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&u16> for &'b Rational

§

type Output = SubU16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> SubU16Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&u32> for &'b Rational

§

type Output = SubU32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> SubU32Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&u64> for &'b Rational

§

type Output = SubU64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> SubU64Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&u8> for &'b Rational

§

type Output = SubU8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> SubU8Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<&usize> for &'b Rational

§

type Output = SubUsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &usize) -> SubUsizeIncomplete<'b>

Performs the - operation. Read more
source§

impl Sub<&usize> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<Complex> for &Rational

§

type Output = Complex

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Complex) -> Complex

Performs the - operation. Read more
source§

impl Sub<Complex> for Rational

§

type Output = Complex

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Complex) -> Complex

Performs the - operation. Read more
source§

impl Sub<Float> for &Rational

§

type Output = Float

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Float) -> Float

Performs the - operation. Read more
source§

impl Sub<Float> for Rational

§

type Output = Float

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Float) -> Float

Performs the - operation. Read more
source§

impl<'a> Sub<Integer> for &'a Rational

§

type Output = SubOwnedIntegerIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Integer) -> SubOwnedIntegerIncomplete<'a>

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) -> Rational

Performs the - operation. Read more
source§

impl<'a> Sub<Rational> for &'a Complex

§

type Output = SubOwnedRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> SubOwnedRationalIncomplete<'a>

Performs the - operation. Read more
source§

impl<'a> Sub<Rational> for &'a Float

§

type Output = SubOwnedRationalIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> SubOwnedRationalIncomplete<'a>

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) -> Rational

Performs the - operation. Read more
source§

impl Sub<Rational> for &Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the - operation. Read more
source§

impl Sub<Rational> for &isize

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the - operation. Read more
source§

impl Sub<Rational> for &usize

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<Rational> for Complex

§

type Output = Complex

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Complex

Performs the - operation. Read more
source§

impl Sub<Rational> for Float

§

type Output = Float

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Rational) -> Float

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the - operation. Read more
source§

impl Sub<Rational> for isize

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

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) -> Rational

Performs the - operation. Read more
source§

impl Sub<Rational> for usize

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<'b> Sub<i128> for &'b Rational

§

type Output = SubI128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i128) -> SubI128Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<i16> for &'b Rational

§

type Output = SubI16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> SubI16Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<i32> for &'b Rational

§

type Output = SubI32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> SubI32Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<i64> for &'b Rational

§

type Output = SubI64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> SubI64Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<i8> for &'b Rational

§

type Output = SubI8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> SubI8Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<isize> for &'b Rational

§

type Output = SubIsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: isize) -> SubIsizeIncomplete<'b>

Performs the - operation. Read more
source§

impl Sub<isize> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: isize) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<u128> for &'b Rational

§

type Output = SubU128Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u128) -> SubU128Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<u16> for &'b Rational

§

type Output = SubU16Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> SubU16Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<u32> for &'b Rational

§

type Output = SubU32Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> SubU32Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<u64> for &'b Rational

§

type Output = SubU64Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> SubU64Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<u8> for &'b Rational

§

type Output = SubU8Incomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> SubU8Incomplete<'b>

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) -> Rational

Performs the - operation. Read more
source§

impl<'b> Sub<usize> for &'b Rational

§

type Output = SubUsizeIncomplete<'b>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: usize) -> SubUsizeIncomplete<'b>

Performs the - operation. Read more
source§

impl Sub<usize> for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

fn sub(self, rhs: usize) -> Rational

Performs the - operation. Read more
source§

impl<'a> Sub for &'a Rational

§

type Output = SubIncomplete<'a>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a Rational) -> SubIncomplete<'_>

Performs the - operation. Read more
source§

impl Sub for Rational

§

type Output = Rational

The resulting type after applying the - operator.
source§

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

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 Complex

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&Rational> for Float

source§

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

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

source§

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

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

source§

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

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 Complex

source§

fn sub_assign(&mut self, rhs: Rational)

Performs the -= operation. Read more
source§

impl SubAssign<Rational> for Float

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

source§

fn sub_assign(&mut self, rhs: isize)

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

source§

fn sub_assign(&mut self, rhs: usize)

Performs the -= operation. Read more
source§

impl SubAssign for Rational

source§

fn sub_assign(&mut self, rhs: Rational)

Performs the -= operation. Read more
source§

impl SubAssignRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn sub_assign_round( &mut self, rhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the subtraction. Read more
source§

impl SubAssignRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn sub_assign_round(&mut self, rhs: &Rational, round: Round) -> Ordering

Performs the subtraction. Read more
source§

impl SubAssignRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn sub_assign_round( &mut self, rhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the subtraction. Read more
source§

impl SubAssignRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn sub_assign_round(&mut self, rhs: Rational, round: Round) -> Ordering

Performs the subtraction. Read more
source§

impl SubFrom<&Integer> for Rational

source§

fn sub_from(&mut self, lhs: &Integer)

Peforms the subtraction. Read more
source§

impl SubFrom<&Rational> for Complex

source§

fn sub_from(&mut self, lhs: &Rational)

Peforms the subtraction. Read more
source§

impl SubFrom<&Rational> for Float

source§

fn sub_from(&mut self, lhs: &Rational)

Peforms the subtraction. Read more
source§

impl SubFrom<&Rational> for Rational

source§

fn sub_from(&mut self, lhs: &Rational)

Peforms the subtraction. Read more
source§

impl SubFrom<&i128> for Rational

source§

fn sub_from(&mut self, lhs: &i128)

Peforms the subtraction. Read more
source§

impl SubFrom<&i16> for Rational

source§

fn sub_from(&mut self, lhs: &i16)

Peforms the subtraction. Read more
source§

impl SubFrom<&i32> for Rational

source§

fn sub_from(&mut self, lhs: &i32)

Peforms the subtraction. Read more
source§

impl SubFrom<&i64> for Rational

source§

fn sub_from(&mut self, lhs: &i64)

Peforms the subtraction. Read more
source§

impl SubFrom<&i8> for Rational

source§

fn sub_from(&mut self, lhs: &i8)

Peforms the subtraction. Read more
source§

impl SubFrom<&isize> for Rational

source§

fn sub_from(&mut self, lhs: &isize)

Peforms the subtraction. Read more
source§

impl SubFrom<&u128> for Rational

source§

fn sub_from(&mut self, lhs: &u128)

Peforms the subtraction. Read more
source§

impl SubFrom<&u16> for Rational

source§

fn sub_from(&mut self, lhs: &u16)

Peforms the subtraction. Read more
source§

impl SubFrom<&u32> for Rational

source§

fn sub_from(&mut self, lhs: &u32)

Peforms the subtraction. Read more
source§

impl SubFrom<&u64> for Rational

source§

fn sub_from(&mut self, lhs: &u64)

Peforms the subtraction. Read more
source§

impl SubFrom<&u8> for Rational

source§

fn sub_from(&mut self, lhs: &u8)

Peforms the subtraction. Read more
source§

impl SubFrom<&usize> for Rational

source§

fn sub_from(&mut self, lhs: &usize)

Peforms the subtraction. Read more
source§

impl SubFrom<Integer> for Rational

source§

fn sub_from(&mut self, lhs: Integer)

Peforms the subtraction. Read more
source§

impl SubFrom<Rational> for Complex

source§

fn sub_from(&mut self, lhs: Rational)

Peforms the subtraction. Read more
source§

impl SubFrom<Rational> for Float

source§

fn sub_from(&mut self, lhs: Rational)

Peforms the subtraction. Read more
source§

impl SubFrom<i128> for Rational

source§

fn sub_from(&mut self, lhs: i128)

Peforms the subtraction. Read more
source§

impl SubFrom<i16> for Rational

source§

fn sub_from(&mut self, lhs: i16)

Peforms the subtraction. Read more
source§

impl SubFrom<i32> for Rational

source§

fn sub_from(&mut self, lhs: i32)

Peforms the subtraction. Read more
source§

impl SubFrom<i64> for Rational

source§

fn sub_from(&mut self, lhs: i64)

Peforms the subtraction. Read more
source§

impl SubFrom<i8> for Rational

source§

fn sub_from(&mut self, lhs: i8)

Peforms the subtraction. Read more
source§

impl SubFrom<isize> for Rational

source§

fn sub_from(&mut self, lhs: isize)

Peforms the subtraction. Read more
source§

impl SubFrom<u128> for Rational

source§

fn sub_from(&mut self, lhs: u128)

Peforms the subtraction. Read more
source§

impl SubFrom<u16> for Rational

source§

fn sub_from(&mut self, lhs: u16)

Peforms the subtraction. Read more
source§

impl SubFrom<u32> for Rational

source§

fn sub_from(&mut self, lhs: u32)

Peforms the subtraction. Read more
source§

impl SubFrom<u64> for Rational

source§

fn sub_from(&mut self, lhs: u64)

Peforms the subtraction. Read more
source§

impl SubFrom<u8> for Rational

source§

fn sub_from(&mut self, lhs: u8)

Peforms the subtraction. Read more
source§

impl SubFrom<usize> for Rational

source§

fn sub_from(&mut self, lhs: usize)

Peforms the subtraction. Read more
source§

impl SubFrom for Rational

source§

fn sub_from(&mut self, lhs: Rational)

Peforms the subtraction. Read more
source§

impl SubFromRound<&Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn sub_from_round( &mut self, lhs: &Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the subtraction. Read more
source§

impl SubFromRound<&Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn sub_from_round(&mut self, lhs: &Rational, round: Round) -> Ordering

Performs the subtraction. Read more
source§

impl SubFromRound<Rational> for Complex

§

type Round = (Round, Round)

The rounding method.
§

type Ordering = (Ordering, Ordering)

The direction from rounding.
source§

fn sub_from_round( &mut self, lhs: Rational, round: (Round, Round) ) -> (Ordering, Ordering)

Performs the subtraction. Read more
source§

impl SubFromRound<Rational> for Float

§

type Round = Round

The rounding method.
§

type Ordering = Ordering

The direction from rounding.
source§

fn sub_from_round(&mut self, lhs: Rational, round: Round) -> Ordering

Performs the subtraction. Read more
source§

impl<T> Sum<T> for Rational
where Rational: AddAssign<T>,

source§

fn sum<I>(iter: I) -> Rational
where I: Iterator<Item = T>,

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

impl ToPrimitive for Rational

source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

impl TryFrom<&Float> for Rational

§

type Error = TryFromFloatError

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

fn try_from(value: &Float) -> Result<Self, TryFromFloatError>

Performs the conversion.
source§

impl TryFrom<Float> for Rational

§

type Error = TryFromFloatError

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

fn try_from(value: Float) -> Result<Self, TryFromFloatError>

Performs the conversion.
source§

impl TryFrom<f32> for Rational

§

type Error = TryFromFloatError

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

fn try_from(value: f32) -> Result<Self, TryFromFloatError>

Performs the conversion.
source§

impl TryFrom<f64> for Rational

§

type Error = TryFromFloatError

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

fn try_from(value: f64) -> Result<Self, TryFromFloatError>

Performs the conversion.
source§

impl UnwrappedCast<Rational> for &Float

source§

fn unwrapped_cast(self) -> Rational

Casts the value.
source§

impl UnwrappedCast<Rational> for Float

source§

fn unwrapped_cast(self) -> Rational

Casts the value.
source§

impl UnwrappedCast<Rational> for f32

source§

fn unwrapped_cast(self) -> Rational

Casts the value.
source§

impl UnwrappedCast<Rational> for f64

source§

fn unwrapped_cast(self) -> Rational

Casts the value.
source§

impl UpperHex for Rational

source§

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

Formats the value using the given formatter.
source§

impl Zero for Rational

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Eq for Rational

source§

impl Send for Rational

source§

impl Sync for Rational

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where 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> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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 T
where 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.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,