Type Alias relp_num::Rational32

source ·
pub type Rational32 = Ratio<Sign, u32, u32>;
Expand description

A signed ratio between two small integers.

Aliased Type§

struct Rational32 { /* private fields */ }

Implementations§

source§

impl Rational32

source

pub fn new(numerator: i32, denominator: u32) -> Option<Self>

source

pub fn new_signed<T: Into<Sign>>( sign: T, numerator: u32, denominator: u32 ) -> Self

Trait Implementations§

source§

impl Add<&NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

fn add(self, _: &One) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

fn add(self, _: One) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<'a> Add for &'a Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<&NonZero<i16>> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&NonZero<i32>> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&NonZero<i8>> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&NonZero<u16>> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&NonZero<u32>> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&NonZero<u8>> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for Rational32

source§

fn add_assign(&mut self, _: &One)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for Rational32

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&i16> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&i32> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&i8> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&u16> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&u32> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&u8> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<NonZero<i16>> for Rational32

source§

fn add_assign(&mut self, rhs: NonZeroI16)

Performs the += operation. Read more
source§

impl AddAssign<NonZero<i32>> for Rational32

source§

fn add_assign(&mut self, rhs: NonZeroI32)

Performs the += operation. Read more
source§

impl AddAssign<NonZero<i8>> for Rational32

source§

fn add_assign(&mut self, rhs: NonZeroI8)

Performs the += operation. Read more
source§

impl AddAssign<NonZero<u16>> for Rational32

source§

fn add_assign(&mut self, rhs: NonZeroU16)

Performs the += operation. Read more
source§

impl AddAssign<NonZero<u32>> for Rational32

source§

fn add_assign(&mut self, rhs: NonZeroU32)

Performs the += operation. Read more
source§

impl AddAssign<NonZero<u8>> for Rational32

source§

fn add_assign(&mut self, rhs: NonZeroU8)

Performs the += operation. Read more
source§

impl AddAssign<One> for Rational32

source§

fn add_assign(&mut self, _: One)

Performs the += operation. Read more
source§

impl AddAssign<Zero> for Rational32

source§

fn add_assign(&mut self, _: Zero)

Performs the += operation. Read more
source§

impl AddAssign<i16> for Rational32

source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for Rational32

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign<i8> for Rational32

source§

fn add_assign(&mut self, rhs: i8)

Performs the += operation. Read more
source§

impl AddAssign<u16> for Rational32

source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for Rational32

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl AddAssign<u8> for Rational32

source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
source§

impl AddAssign for Rational32

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Debug for Rational32

source§

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

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

impl Default for Rational32

source§

fn default() -> Self

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

impl Display for Rational32

source§

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

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

impl Div<&NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<'a> Div for &'a Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<&NonZero<i16>> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&NonZero<i32>> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&NonZero<i8>> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&NonZero<u16>> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&NonZero<u32>> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&NonZero<u8>> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&One> for Rational32

source§

fn div_assign(&mut self, _: &One)

Performs the /= operation. Read more
source§

impl DivAssign<&i16> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&i32> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&i8> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&u16> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&u32> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<&u8> for Rational32

source§

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

Performs the /= operation. Read more
source§

impl DivAssign<NonZero<i16>> for Rational32

source§

fn div_assign(&mut self, rhs: NonZeroI16)

Performs the /= operation. Read more
source§

impl DivAssign<NonZero<i32>> for Rational32

source§

fn div_assign(&mut self, rhs: NonZeroI32)

Performs the /= operation. Read more
source§

impl DivAssign<NonZero<i8>> for Rational32

source§

fn div_assign(&mut self, rhs: NonZeroI8)

Performs the /= operation. Read more
source§

impl DivAssign<NonZero<u16>> for Rational32

source§

fn div_assign(&mut self, rhs: NonZeroU16)

Performs the /= operation. Read more
source§

impl DivAssign<NonZero<u32>> for Rational32

source§

fn div_assign(&mut self, rhs: NonZeroU32)

Performs the /= operation. Read more
source§

impl DivAssign<NonZero<u8>> for Rational32

source§

fn div_assign(&mut self, rhs: NonZeroU8)

Performs the /= operation. Read more
source§

impl DivAssign<One> for Rational32

source§

fn div_assign(&mut self, _: One)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for Rational32

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for Rational32

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for Rational32

source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for Rational32

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for Rational32

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for Rational32

source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
source§

impl DivAssign for Rational32

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl From<&One> for Rational32

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for Rational32

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&i16> for Rational32

source§

fn from(other: &i16) -> Self

Converts to this type from the input type.
source§

impl From<&i32> for Rational32

source§

fn from(other: &i32) -> Self

Converts to this type from the input type.
source§

impl From<&i8> for Rational32

source§

fn from(other: &i8) -> Self

Converts to this type from the input type.
source§

impl From<&u16> for Rational32

source§

fn from(other: &u16) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for Rational32

source§

fn from(other: &u32) -> Self

Converts to this type from the input type.
source§

impl From<&u8> for Rational32

source§

fn from(other: &u8) -> Self

Converts to this type from the input type.
source§

impl From<(i16, i16)> for Rational32

source§

fn from(other: (i16, i16)) -> Self

Converts to this type from the input type.
source§

impl From<(i32, i32)> for Rational32

source§

fn from(other: (i32, i32)) -> Self

Converts to this type from the input type.
source§

impl From<(i8, i8)> for Rational32

source§

fn from(other: (i8, i8)) -> Self

Converts to this type from the input type.
source§

impl From<(u16, u16)> for Rational32

source§

fn from(other: (u16, u16)) -> Self

Converts to this type from the input type.
source§

impl From<(u32, u32)> for Rational32

source§

fn from(other: (u32, u32)) -> Self

Converts to this type from the input type.
source§

impl From<(u8, u8)> for Rational32

source§

fn from(other: (u8, u8)) -> Self

Converts to this type from the input type.
source§

impl From<One> for Rational32

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for Rational32

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Rational32

source§

fn from(other: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Rational32

source§

fn from(other: i32) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Rational32

source§

fn from(other: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Rational32

source§

fn from(other: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Rational32

source§

fn from(other: u32) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Rational32

source§

fn from(other: u8) -> Self

Converts to this type from the input type.
source§

impl FromPrimitive for Rational32

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_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§

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§

impl FromStr for Rational32

§

type Err = &'static str

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

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

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

impl Mul<&NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: &One) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: &One) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: One) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: One) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<'a> Mul for &'a Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<&NonZero<i16>> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&NonZero<i32>> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&NonZero<i8>> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&NonZero<u16>> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&NonZero<u32>> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&NonZero<u8>> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&One> for Rational32

source§

fn mul_assign(&mut self, _: &One)

Performs the *= operation. Read more
source§

impl MulAssign<&Zero> for Rational32

source§

fn mul_assign(&mut self, _: &Zero)

Performs the *= operation. Read more
source§

impl MulAssign<&i16> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&i32> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&i8> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&u16> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&u32> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&u8> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<NonZero<i16>> for Rational32

source§

fn mul_assign(&mut self, rhs: NonZeroI16)

Performs the *= operation. Read more
source§

impl MulAssign<NonZero<i32>> for Rational32

source§

fn mul_assign(&mut self, rhs: NonZeroI32)

Performs the *= operation. Read more
source§

impl MulAssign<NonZero<i8>> for Rational32

source§

fn mul_assign(&mut self, rhs: NonZeroI8)

Performs the *= operation. Read more
source§

impl MulAssign<NonZero<u16>> for Rational32

source§

fn mul_assign(&mut self, rhs: NonZeroU16)

Performs the *= operation. Read more
source§

impl MulAssign<NonZero<u32>> for Rational32

source§

fn mul_assign(&mut self, rhs: NonZeroU32)

Performs the *= operation. Read more
source§

impl MulAssign<NonZero<u8>> for Rational32

source§

fn mul_assign(&mut self, rhs: NonZeroU8)

Performs the *= operation. Read more
source§

impl MulAssign<One> for Rational32

source§

fn mul_assign(&mut self, _: One)

Performs the *= operation. Read more
source§

impl MulAssign<Zero> for Rational32

source§

fn mul_assign(&mut self, _: Zero)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for Rational32

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for Rational32

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for Rational32

source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for Rational32

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for Rational32

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for Rational32

source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
source§

impl MulAssign for Rational32

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl One for Rational32

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 Rational32

source§

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

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

fn max(self, other: Self) -> 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<NonZero<i16>> for Rational32

source§

fn eq(&self, rhs: &NonZeroI16) -> 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<NonZero<i32>> for Rational32

source§

fn eq(&self, rhs: &NonZeroI32) -> 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<NonZero<i8>> for Rational32

source§

fn eq(&self, rhs: &NonZeroI8) -> 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<NonZero<u16>> for Rational32

source§

fn eq(&self, rhs: &NonZeroU16) -> 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<NonZero<u32>> for Rational32

source§

fn eq(&self, rhs: &NonZeroU32) -> 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<NonZero<u8>> for Rational32

source§

fn eq(&self, rhs: &NonZeroU8) -> 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 Rational32

source§

fn eq(&self, rhs: &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 Rational32

source§

fn eq(&self, rhs: &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<i8> for Rational32

source§

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

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

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

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

impl PartialEq<u16> for Rational32

source§

fn eq(&self, rhs: &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 Rational32

source§

fn eq(&self, rhs: &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<u8> for Rational32

source§

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

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

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

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

impl PartialEq for Rational32

source§

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

source§

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

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

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

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

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

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

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

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

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

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

impl Sub<&NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn sub(self, _: &One) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn sub(self, _: &Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<i16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<i16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<i32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<i32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<i8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<i8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<u16>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<u16>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<u32>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<u32>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<u8>> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<NonZero<u8>> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn sub(self, _: One) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn sub(self, _: Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u16> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u16> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u32> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u32> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u8> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u8> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<'a> Sub for &'a Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<&NonZero<i16>> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&NonZero<i32>> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&NonZero<i8>> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&NonZero<u16>> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&NonZero<u32>> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&NonZero<u8>> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&One> for Rational32

source§

fn sub_assign(&mut self, _: &One)

Performs the -= operation. Read more
source§

impl SubAssign<&i16> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&i32> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&i8> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&u16> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&u32> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<&u8> for Rational32

source§

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

Performs the -= operation. Read more
source§

impl SubAssign<NonZero<i16>> for Rational32

source§

fn sub_assign(&mut self, rhs: NonZeroI16)

Performs the -= operation. Read more
source§

impl SubAssign<NonZero<i32>> for Rational32

source§

fn sub_assign(&mut self, rhs: NonZeroI32)

Performs the -= operation. Read more
source§

impl SubAssign<NonZero<i8>> for Rational32

source§

fn sub_assign(&mut self, rhs: NonZeroI8)

Performs the -= operation. Read more
source§

impl SubAssign<NonZero<u16>> for Rational32

source§

fn sub_assign(&mut self, rhs: NonZeroU16)

Performs the -= operation. Read more
source§

impl SubAssign<NonZero<u32>> for Rational32

source§

fn sub_assign(&mut self, rhs: NonZeroU32)

Performs the -= operation. Read more
source§

impl SubAssign<NonZero<u8>> for Rational32

source§

fn sub_assign(&mut self, rhs: NonZeroU8)

Performs the -= operation. Read more
source§

impl SubAssign<One> for Rational32

source§

fn sub_assign(&mut self, _: One)

Performs the -= operation. Read more
source§

impl SubAssign<Zero> for Rational32

source§

fn sub_assign(&mut self, _: Zero)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for Rational32

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for Rational32

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for Rational32

source§

fn sub_assign(&mut self, rhs: i8)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for Rational32

source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for Rational32

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for Rational32

source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
source§

impl SubAssign for Rational32

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Sum for Rational32

source§

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

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

impl ToPrimitive for Rational32

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_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_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_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_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 Zero for Rational32

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

impl Eq for Rational32