| <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Represents the ratio between two numbers."><meta name="keywords" content="rust, rustlang, rust-lang, Ratio"><title>Ratio in num_rational - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../num_rational/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../num_rational/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Ratio</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.approximate_float">approximate_float</a></li><li><a href="#method.ceil">ceil</a></li><li><a href="#method.denom">denom</a></li><li><a href="#method.floor">floor</a></li><li><a href="#method.fract">fract</a></li><li><a href="#method.from_float">from_float</a></li><li><a href="#method.from_integer">from_integer</a></li><li><a href="#method.is_integer">is_integer</a></li><li><a href="#method.new">new</a></li><li><a href="#method.new_raw">new_raw</a></li><li><a href="#method.numer">numer</a></li><li><a href="#method.pow">pow</a></li><li><a href="#method.recip">recip</a></li><li><a href="#method.reduced">reduced</a></li><li><a href="#method.round">round</a></li><li><a href="#method.to_integer">to_integer</a></li><li><a href="#method.trunc">trunc</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Add%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Add<&'a Ratio<T>></a></li><li><a href="#impl-Add%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Add<&'a T></a></li><li><a href="#impl-Add%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Add<&'b Ratio<T>></a></li><li><a href="#impl-Add%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Add<&'b T></a></li><li><a href="#impl-Add%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Add<Ratio<T>></a></li><li><a href="#impl-Add%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Add<Ratio<T>></a></li><li><a href="#impl-Add%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Add<T></a></li><li><a href="#impl-Add%3CT%3E-for-Ratio%3CT%3E">Add<T></a></li><li><a href="#impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">AddAssign<&'a Ratio<T>></a></li><li><a href="#impl-AddAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">AddAssign<&'a T></a></li><li><a href="#impl-AddAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">AddAssign<Ratio<T>></a></li><li><a href="#impl-AddAssign%3CT%3E-for-Ratio%3CT%3E">AddAssign<T></a></li><li><a href="#impl-Binary-for-Ratio%3CT%3E">Binary</a></li><li><a href="#impl-CheckedAdd-for-Ratio%3CT%3E">CheckedAdd</a></li><li><a href="#impl-CheckedDiv-for-Ratio%3CT%3E">CheckedDiv</a></li><li><a href="#impl-CheckedMul-for-Ratio%3CT%3E">CheckedMul</a></li><li><a href="#impl-CheckedSub-for-Ratio%3CT%3E">CheckedSub</a></li><li><a href="#impl-Clone-for-Ratio%3CT%3E">Clone</a></li><li><a href="#impl-Copy-for-Ratio%3CT%3E">Copy</a></li><li><a href="#impl-Debug-for-Ratio%3CT%3E">Debug</a></li><li><a href="#impl-Display-for-Ratio%3CT%3E">Display</a></li><li><a href="#impl-Div%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Div<&'a Ratio<T>></a></li><li><a href="#impl-Div%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Div<&'a T></a></li><li><a href="#impl-Div%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Div<&'b Ratio<T>></a></li><li><a href="#impl-Div%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Div<&'b T></a></li><li><a href="#impl-Div%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Div<Ratio<T>></a></li><li><a href="#impl-Div%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Div<Ratio<T>></a></li><li><a href="#impl-Div%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Div<T></a></li><li><a href="#impl-Div%3CT%3E-for-Ratio%3CT%3E">Div<T></a></li><li><a href="#impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">DivAssign<&'a Ratio<T>></a></li><li><a href="#impl-DivAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">DivAssign<&'a T></a></li><li><a href="#impl-DivAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">DivAssign<Ratio<T>></a></li><li><a href="#impl-DivAssign%3CT%3E-for-Ratio%3CT%3E">DivAssign<T></a></li><li><a href="#impl-Eq-for-Ratio%3CT%3E">Eq</a></li><li><a href="#impl-From%3C(T%2C%20T)%3E-for-Ratio%3CT%3E">From<(T, T)></a></li><li><a href="#impl-From%3CT%3E-for-Ratio%3CT%3E">From<T></a></li><li><a href="#impl-FromPrimitive-for-Ratio%3CBigInt%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Ci128%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Ci16%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Ci32%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Ci64%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Ci8%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cisize%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cu128%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cu16%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cu32%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cu64%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cu8%3E">FromPrimitive</a></li><li><a href="#impl-FromPrimitive-for-Ratio%3Cusize%3E">FromPrimitive</a></li><li><a href="#impl-FromStr-for-Ratio%3CT%3E">FromStr</a></li><li><a href="#impl-Hash-for-Ratio%3CT%3E">Hash</a></li><li><a href="#impl-Into%3C(T%2C%20T)%3E-for-Ratio%3CT%3E">Into<(T, T)></a></li><li><a href="#impl-Inv-for-%26%27a%20Ratio%3CT%3E">Inv</a></li><li><a href="#impl-Inv-for-Ratio%3CT%3E">Inv</a></li><li><a href="#impl-LowerExp-for-Ratio%3CT%3E">LowerExp</a></li><li><a href="#impl-LowerHex-for-Ratio%3CT%3E">LowerHex</a></li><li><a href="#impl-Mul%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Mul<&'a Ratio<T>></a></li><li><a href="#impl-Mul%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Mul<&'a T></a></li><li><a href="#impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Mul<&'b Ratio<T>></a></li><li><a href="#impl-Mul%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Mul<&'b T></a></li><li><a href="#impl-Mul%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Mul<Ratio<T>></a></li><li><a href="#impl-Mul%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Mul<Ratio<T>></a></li><li><a href="#impl-Mul%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Mul<T></a></li><li><a href="#impl-Mul%3CT%3E-for-Ratio%3CT%3E">Mul<T></a></li><li><a href="#impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">MulAssign<&'a Ratio<T>></a></li><li><a href="#impl-MulAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">MulAssign<&'a T></a></li><li><a href="#impl-MulAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">MulAssign<Ratio<T>></a></li><li><a href="#impl-MulAssign%3CT%3E-for-Ratio%3CT%3E">MulAssign<T></a></li><li><a href="#impl-Neg-for-%26%27a%20Ratio%3CT%3E">Neg</a></li><li><a href="#impl-Neg-for-Ratio%3CT%3E">Neg</a></li><li><a href="#impl-Num-for-Ratio%3CT%3E">Num</a></li><li><a href="#impl-Octal-for-Ratio%3CT%3E">Octal</a></li><li><a href="#impl-One-for-Ratio%3CT%3E">One</a></li><li><a href="#impl-Ord-for-Ratio%3CT%3E">Ord</a></li><li><a href="#impl-PartialEq%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">PartialEq<Ratio<T>></a></li><li><a href="#impl-PartialOrd%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">PartialOrd<Ratio<T>></a></li><li><a href="#impl-Pow%3C%26%27b%20BigInt%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b BigInt></a></li><li><a href="#impl-Pow%3C%26%27b%20BigInt%3E-for-Ratio%3CT%3E">Pow<&'b BigInt></a></li><li><a href="#impl-Pow%3C%26%27b%20BigUint%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b BigUint></a></li><li><a href="#impl-Pow%3C%26%27b%20BigUint%3E-for-Ratio%3CT%3E">Pow<&'b BigUint></a></li><li><a href="#impl-Pow%3C%26%27b%20i128%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b i128></a></li><li><a href="#impl-Pow%3C%26%27b%20i128%3E-for-Ratio%3CT%3E">Pow<&'b i128></a></li><li><a href="#impl-Pow%3C%26%27b%20i16%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b i16></a></li><li><a href="#impl-Pow%3C%26%27b%20i16%3E-for-Ratio%3CT%3E">Pow<&'b i16></a></li><li><a href="#impl-Pow%3C%26%27b%20i32%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b i32></a></li><li><a href="#impl-Pow%3C%26%27b%20i32%3E-for-Ratio%3CT%3E">Pow<&'b i32></a></li><li><a href="#impl-Pow%3C%26%27b%20i64%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b i64></a></li><li><a href="#impl-Pow%3C%26%27b%20i64%3E-for-Ratio%3CT%3E">Pow<&'b i64></a></li><li><a href="#impl-Pow%3C%26%27b%20i8%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b i8></a></li><li><a href="#impl-Pow%3C%26%27b%20i8%3E-for-Ratio%3CT%3E">Pow<&'b i8></a></li><li><a href="#impl-Pow%3C%26%27b%20isize%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b isize></a></li><li><a href="#impl-Pow%3C%26%27b%20isize%3E-for-Ratio%3CT%3E">Pow<&'b isize></a></li><li><a href="#impl-Pow%3C%26%27b%20u128%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b u128></a></li><li><a href="#impl-Pow%3C%26%27b%20u128%3E-for-Ratio%3CT%3E">Pow<&'b u128></a></li><li><a href="#impl-Pow%3C%26%27b%20u16%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b u16></a></li><li><a href="#impl-Pow%3C%26%27b%20u16%3E-for-Ratio%3CT%3E">Pow<&'b u16></a></li><li><a href="#impl-Pow%3C%26%27b%20u32%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b u32></a></li><li><a href="#impl-Pow%3C%26%27b%20u32%3E-for-Ratio%3CT%3E">Pow<&'b u32></a></li><li><a href="#impl-Pow%3C%26%27b%20u64%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b u64></a></li><li><a href="#impl-Pow%3C%26%27b%20u64%3E-for-Ratio%3CT%3E">Pow<&'b u64></a></li><li><a href="#impl-Pow%3C%26%27b%20u8%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b u8></a></li><li><a href="#impl-Pow%3C%26%27b%20u8%3E-for-Ratio%3CT%3E">Pow<&'b u8></a></li><li><a href="#impl-Pow%3C%26%27b%20usize%3E-for-%26%27a%20Ratio%3CT%3E">Pow<&'b usize></a></li><li><a href="#impl-Pow%3C%26%27b%20usize%3E-for-Ratio%3CT%3E">Pow<&'b usize></a></li><li><a href="#impl-Pow%3CBigInt%3E-for-%26%27a%20Ratio%3CT%3E">Pow<BigInt></a></li><li><a href="#impl-Pow%3CBigInt%3E-for-Ratio%3CT%3E">Pow<BigInt></a></li><li><a href="#impl-Pow%3CBigUint%3E-for-%26%27a%20Ratio%3CT%3E">Pow<BigUint></a></li><li><a href="#impl-Pow%3CBigUint%3E-for-Ratio%3CT%3E">Pow<BigUint></a></li><li><a href="#impl-Pow%3Ci128%3E-for-%26%27a%20Ratio%3CT%3E">Pow<i128></a></li><li><a href="#impl-Pow%3Ci128%3E-for-Ratio%3CT%3E">Pow<i128></a></li><li><a href="#impl-Pow%3Ci16%3E-for-%26%27a%20Ratio%3CT%3E">Pow<i16></a></li><li><a href="#impl-Pow%3Ci16%3E-for-Ratio%3CT%3E">Pow<i16></a></li><li><a href="#impl-Pow%3Ci32%3E-for-%26%27a%20Ratio%3CT%3E">Pow<i32></a></li><li><a href="#impl-Pow%3Ci32%3E-for-Ratio%3CT%3E">Pow<i32></a></li><li><a href="#impl-Pow%3Ci64%3E-for-%26%27a%20Ratio%3CT%3E">Pow<i64></a></li><li><a href="#impl-Pow%3Ci64%3E-for-Ratio%3CT%3E">Pow<i64></a></li><li><a href="#impl-Pow%3Ci8%3E-for-%26%27a%20Ratio%3CT%3E">Pow<i8></a></li><li><a href="#impl-Pow%3Ci8%3E-for-Ratio%3CT%3E">Pow<i8></a></li><li><a href="#impl-Pow%3Cisize%3E-for-%26%27a%20Ratio%3CT%3E">Pow<isize></a></li><li><a href="#impl-Pow%3Cisize%3E-for-Ratio%3CT%3E">Pow<isize></a></li><li><a href="#impl-Pow%3Cu128%3E-for-%26%27a%20Ratio%3CT%3E">Pow<u128></a></li><li><a href="#impl-Pow%3Cu128%3E-for-Ratio%3CT%3E">Pow<u128></a></li><li><a href="#impl-Pow%3Cu16%3E-for-%26%27a%20Ratio%3CT%3E">Pow<u16></a></li><li><a href="#impl-Pow%3Cu16%3E-for-Ratio%3CT%3E">Pow<u16></a></li><li><a href="#impl-Pow%3Cu32%3E-for-%26%27a%20Ratio%3CT%3E">Pow<u32></a></li><li><a href="#impl-Pow%3Cu32%3E-for-Ratio%3CT%3E">Pow<u32></a></li><li><a href="#impl-Pow%3Cu64%3E-for-%26%27a%20Ratio%3CT%3E">Pow<u64></a></li><li><a href="#impl-Pow%3Cu64%3E-for-Ratio%3CT%3E">Pow<u64></a></li><li><a href="#impl-Pow%3Cu8%3E-for-%26%27a%20Ratio%3CT%3E">Pow<u8></a></li><li><a href="#impl-Pow%3Cu8%3E-for-Ratio%3CT%3E">Pow<u8></a></li><li><a href="#impl-Pow%3Cusize%3E-for-%26%27a%20Ratio%3CT%3E">Pow<usize></a></li><li><a href="#impl-Pow%3Cusize%3E-for-Ratio%3CT%3E">Pow<usize></a></li><li><a href="#impl-Product%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Product<&'a Ratio<T>></a></li><li><a href="#impl-Product%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Product<Ratio<T>></a></li><li><a href="#impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Rem<&'a Ratio<T>></a></li><li><a href="#impl-Rem%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Rem<&'a T></a></li><li><a href="#impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Rem<&'b Ratio<T>></a></li><li><a href="#impl-Rem%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Rem<&'b T></a></li><li><a href="#impl-Rem%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Rem<Ratio<T>></a></li><li><a href="#impl-Rem%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Rem<Ratio<T>></a></li><li><a href="#impl-Rem%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Rem<T></a></li><li><a href="#impl-Rem%3CT%3E-for-Ratio%3CT%3E">Rem<T></a></li><li><a href="#impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">RemAssign<&'a Ratio<T>></a></li><li><a href="#impl-RemAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">RemAssign<&'a T></a></li><li><a href="#impl-RemAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">RemAssign<Ratio<T>></a></li><li><a href="#impl-RemAssign%3CT%3E-for-Ratio%3CT%3E">RemAssign<T></a></li><li><a href="#impl-Signed-for-Ratio%3CT%3E">Signed</a></li><li><a href="#impl-Sub%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Sub<&'a Ratio<T>></a></li><li><a href="#impl-Sub%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Sub<&'a T></a></li><li><a href="#impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Sub<&'b Ratio<T>></a></li><li><a href="#impl-Sub%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Sub<&'b T></a></li><li><a href="#impl-Sub%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Sub<Ratio<T>></a></li><li><a href="#impl-Sub%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Sub<Ratio<T>></a></li><li><a href="#impl-Sub%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Sub<T></a></li><li><a href="#impl-Sub%3CT%3E-for-Ratio%3CT%3E">Sub<T></a></li><li><a href="#impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">SubAssign<&'a Ratio<T>></a></li><li><a href="#impl-SubAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">SubAssign<&'a T></a></li><li><a href="#impl-SubAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">SubAssign<Ratio<T>></a></li><li><a href="#impl-SubAssign%3CT%3E-for-Ratio%3CT%3E">SubAssign<T></a></li><li><a href="#impl-Sum%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Sum<&'a Ratio<T>></a></li><li><a href="#impl-Sum%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Sum<Ratio<T>></a></li><li><a href="#impl-ToPrimitive-for-Ratio%3CT%3E">ToPrimitive</a></li><li><a href="#impl-UpperExp-for-Ratio%3CT%3E">UpperExp</a></li><li><a href="#impl-UpperHex-for-Ratio%3CT%3E">UpperHex</a></li><li><a href="#impl-Zero-for-Ratio%3CT%3E">Zero</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Ratio%3CT%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Ratio%3CT%3E">Send</a></li><li><a href="#impl-Sync-for-Ratio%3CT%3E">Sync</a></li><li><a href="#impl-Unpin-for-Ratio%3CT%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Ratio%3CT%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Ratio%3CT%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Ratio%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Ratio%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-Ratio%3CT%3E-1">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-Ratio%3CT%3E">Into<U></a></li><li><a href="#impl-NumAssign-for-Ratio%3CT%3E">NumAssign</a></li><li><a href="#impl-NumAssignOps%3CRhs%3E-for-Ratio%3CT%3E">NumAssignOps<Rhs></a></li><li><a href="#impl-NumAssignRef-for-Ratio%3CT%3E">NumAssignRef</a></li><li><a href="#impl-NumOps%3CRhs%2C%20Output%3E-for-Ratio%3CT%3E">NumOps<Rhs, Output></a></li><li><a href="#impl-NumRef-for-Ratio%3CT%3E">NumRef</a></li><li><a href="#impl-RefNum%3CBase%3E-for-Ratio%3CT%3E">RefNum<Base></a></li><li><a href="#impl-ToOwned-for-Ratio%3CT%3E">ToOwned</a></li><li><a href="#impl-ToString-for-Ratio%3CT%3E">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Ratio%3CT%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-Ratio%3CT%3E">TryInto<U></a></li></ul></section><h2><a href="index.html">In num_rational</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="index.html">num_rational</a>::<wbr><a class="struct" href="#">Ratio</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/num_rational/lib.rs.html#52-57">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Ratio<T> { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents the ratio between two numbers.</p> |
| </div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#71-92">source</a><a href="#impl-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="docblock"><p>These method are <code>const</code> for Rust 1.31 and later.</p> |
| </div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_raw" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#77-79">source</a><h4 class="code-header">pub const fn <a href="#method.new_raw" class="fnname">new_raw</a>(numer: T, denom: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Creates a <code>Ratio</code> without checking for <code>denom == 0</code> or reducing.</p> |
| <p><strong>There are several methods that will panic if used on a <code>Ratio</code> with |
| <code>denom == 0</code>.</strong></p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.numer" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#83-85">source</a><h4 class="code-header">pub const fn <a href="#method.numer" class="fnname">numer</a>(&self) -> &T</h4></section></summary><div class="docblock"><p>Gets an immutable reference to the numerator.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.denom" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#89-91">source</a><h4 class="code-header">pub const fn <a href="#method.denom" class="fnname">denom</a>(&self) -> &T</h4></section></summary><div class="docblock"><p>Gets an immutable reference to the denominator.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ratio%3CT%3E-1" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#94-267">source</a><a href="#impl-Ratio%3CT%3E-1" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#99-103">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(numer: T, denom: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Creates a new <code>Ratio</code>.</p> |
| <p><strong>Panics if <code>denom</code> is zero.</strong></p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_integer" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#107-109">source</a><h4 class="code-header">pub fn <a href="#method.from_integer" class="fnname">from_integer</a>(t: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Creates a <code>Ratio</code> representing the integer <code>t</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_integer" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#113-115">source</a><h4 class="code-header">pub fn <a href="#method.to_integer" class="fnname">to_integer</a>(&self) -> T</h4></section></summary><div class="docblock"><p>Converts to an integer, rounding towards zero.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_integer" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#119-121">source</a><h4 class="code-header">pub fn <a href="#method.is_integer" class="fnname">is_integer</a>(&self) -> bool</h4></section></summary><div class="docblock"><p>Returns true if the rational number is an integer (denominator is 1).</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.reduced" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#162-166">source</a><h4 class="code-header">pub fn <a href="#method.reduced" class="fnname">reduced</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Returns a reduced copy of self.</p> |
| <p>In general, it is not necessary to use this method, as the only |
| method of procuring a non-reduced fraction is through <code>new_raw</code>.</p> |
| <p><strong>Panics if <code>denom</code> is zero.</strong></p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.recip" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#172-174">source</a><h4 class="code-header">pub fn <a href="#method.recip" class="fnname">recip</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Returns the reciprocal.</p> |
| <p><strong>Panics if the <code>Ratio</code> is zero.</strong></p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.floor" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#187-196">source</a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Rounds towards minus infinity.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ceil" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#200-209">source</a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Rounds towards plus infinity.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.round" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#213-243">source</a><h4 class="code-header">pub fn <a href="#method.round" class="fnname">round</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Rounds to the nearest integer. Rounds half-way cases away from zero.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.trunc" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#247-249">source</a><h4 class="code-header">pub fn <a href="#method.trunc" class="fnname">trunc</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Rounds towards zero.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fract" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#255-257">source</a><h4 class="code-header">pub fn <a href="#method.fract" class="fnname">fract</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class="docblock"><p>Returns the fractional part of a number, with division rounded towards zero.</p> |
| <p>Satisfies <code>self == self.trunc() + self.fract()</code>.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#261-266">source</a><h4 class="code-header">pub fn <a href="#method.pow" class="fnname">pow</a>(&self, expon: i32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> for<'a> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>,</span></h4></section></summary><div class="docblock"><p>Raises the <code>Ratio</code> to the power of an exponent.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ratio%3CBigInt%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#270-292">source</a><a href="#impl-Ratio%3CBigInt%3E" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_float" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#272-291">source</a><h4 class="code-header">pub fn <a href="#method.from_float" class="fnname">from_float</a><T: <a class="trait" href="../num_traits/float/trait.FloatCore.html" title="trait num_traits::float::FloatCore">FloatCore</a>>(f: T) -> Option<<a class="type" href="type.BigRational.html" title="type num_rational::BigRational">BigRational</a>></h4></section></summary><div class="docblock"><p>Converts a float into a rational number.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ratio%3CT%3E-2" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1256-1264">source</a><a href="#impl-Ratio%3CT%3E-2" class="anchor"></a><h3 class="code-header">impl<T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a> + <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a> + <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a> + Clone> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><section id="method.approximate_float" class="method has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1257-1263">source</a><h4 class="code-header">pub fn <a href="#method.approximate_float" class="fnname">approximate_float</a><F: <a class="trait" href="../num_traits/float/trait.FloatCore.html" title="trait num_traits::float::FloatCore">FloatCore</a> + <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a>>(f: F) -> Option<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Add<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-76" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-76" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Add<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-77" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-77" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, other: &T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Add<&'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-72" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-72" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, other: &'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Add<&'b T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-73" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-73" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, other: &'b T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Add<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-74" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-74" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Add<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-78" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-78" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Add<T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-75" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-75" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, other: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Add%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#impl-Add%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Add<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-79" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-79" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#767">source</a><a href="#method.add-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add</a>(self, rhs: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#586">source</a><a href="#impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> AddAssign<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_assign-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#586">source</a><a href="#method.add_assign-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add_assign</a>(&mut self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>+=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AddAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#586">source</a><a href="#impl-AddAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> AddAssign<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_assign-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#586">source</a><a href="#method.add_assign-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add_assign</a>(&mut self, other: &T)</h4></section></summary><div class='docblock'>Performs the <code>+=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AddAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#456-469">source</a><a href="#impl-AddAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> AddAssign<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_assign" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#457-468">source</a><a href="#method.add_assign" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add_assign</a>(&mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>+=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AddAssign%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#528-533">source</a><a href="#impl-AddAssign%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> AddAssign<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_assign-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#529-532">source</a><a href="#method.add_assign-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">add_assign</a>(&mut self, other: T)</h4></section></summary><div class='docblock'>Performs the <code>+=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Binary-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1073">source</a><a href="#impl-Binary-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Binary + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Binary for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1073">source</a><a href="#method.fmt-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-CheckedAdd-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#852">source</a><a href="#impl-CheckedAdd-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedAdd.html" title="trait num_traits::ops::checked::CheckedAdd">CheckedAdd</a>> <a class="trait" href="../num_traits/ops/checked/trait.CheckedAdd.html" title="trait num_traits::ops::checked::CheckedAdd">CheckedAdd</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.checked_add" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#852">source</a><a href="#method.checked_add" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedAdd.html#tymethod.checked_add" class="fnname">checked_add</a>(&self, rhs: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> Option<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>></h4></section></summary><div class='docblock'>Adds two numbers, checking for overflow. If overflow happens, <code>None</code> is |
| returned. <a href="../num_traits/ops/checked/trait.CheckedAdd.html#tymethod.checked_add">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-CheckedDiv-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#789-833">source</a><a href="#impl-CheckedDiv-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/ops/checked/trait.CheckedDiv.html" title="trait num_traits::ops::checked::CheckedDiv">CheckedDiv</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.checked_div" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#794-832">source</a><a href="#method.checked_div" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedDiv.html#tymethod.checked_div" class="fnname">checked_div</a>(&self, rhs: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> Option<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>></h4></section></summary><div class='docblock'>Divides two numbers, checking for underflow, overflow and division by |
| zero. If any of that happens, <code>None</code> is returned. <a href="../num_traits/ops/checked/trait.CheckedDiv.html#tymethod.checked_div">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-CheckedMul-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#772-786">source</a><a href="#impl-CheckedMul-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.checked_mul" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#777-785">source</a><a href="#method.checked_mul" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedMul.html#tymethod.checked_mul" class="fnname">checked_mul</a>(&self, rhs: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> Option<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>></h4></section></summary><div class='docblock'>Multiplies two numbers, checking for underflow or overflow. If underflow |
| or overflow happens, <code>None</code> is returned. <a href="../num_traits/ops/checked/trait.CheckedMul.html#tymethod.checked_mul">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-CheckedSub-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#855">source</a><a href="#impl-CheckedSub-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedSub.html" title="trait num_traits::ops::checked::CheckedSub">CheckedSub</a>> <a class="trait" href="../num_traits/ops/checked/trait.CheckedSub.html" title="trait num_traits::ops::checked::CheckedSub">CheckedSub</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.checked_sub" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#855">source</a><a href="#method.checked_sub" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedSub.html#tymethod.checked_sub" class="fnname">checked_sub</a>(&self, rhs: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> Option<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>></h4></section></summary><div class='docblock'>Subtracts two numbers, checking for underflow. If underflow happens, |
| <code>None</code> is returned. <a href="../num_traits/ops/checked/trait.CheckedSub.html#tymethod.checked_sub">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#50">source</a><a href="#impl-Clone-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone> Clone for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#50">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#50">source</a><a href="#impl-Debug-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Debug> Debug for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#50">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1071">source</a><a href="#impl-Display-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Display + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Display for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1071">source</a><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#impl-Div%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Div<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-68" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-68" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#method.div-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#impl-Div%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Div<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-69" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-69" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#method.div-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, other: &T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#impl-Div%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Div<&'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-64" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-64" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#method.div" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, other: &'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#impl-Div%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Div<&'b T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-65" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-65" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#method.div-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, other: &'b T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#impl-Div%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Div<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-66" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-66" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#method.div-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#709-724">source</a><a href="#impl-Div%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Div<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-70" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-70" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#716-723">source</a><a href="#method.div-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#impl-Div%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Div<T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-67" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-67" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#707">source</a><a href="#method.div-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, other: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Div%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#726-737">source</a><a href="#impl-Div%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Div<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-71" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-71" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#733-736">source</a><a href="#method.div-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div</a>(self, rhs: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#587">source</a><a href="#impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> DivAssign<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div_assign-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#587">source</a><a href="#method.div_assign-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div_assign</a>(&mut self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>/=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DivAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#587">source</a><a href="#impl-DivAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> DivAssign<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div_assign-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#587">source</a><a href="#method.div_assign-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div_assign</a>(&mut self, other: &T)</h4></section></summary><div class='docblock'>Performs the <code>/=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DivAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#472-482">source</a><a href="#impl-DivAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> DivAssign<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div_assign" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#473-481">source</a><a href="#method.div_assign" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div_assign</a>(&mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>/=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DivAssign%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#535-542">source</a><a href="#impl-DivAssign%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> DivAssign<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.div_assign-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#536-541">source</a><a href="#method.div_assign-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">div_assign</a>(&mut self, other: T)</h4></section></summary><div class='docblock'>Performs the <code>/=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C(T%2C%20T)%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#305-312">source</a><a href="#impl-From%3C(T%2C%20T)%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> From<(T, T)> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#309-311">source</a><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(pair: (T, T)) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#295-302">source</a><a href="#impl-From%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> From<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#299-301">source</a><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(x: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3CBigInt%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1186-1210">source</a><a href="#impl-FromPrimitive-for-Ratio%3CBigInt%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1187-1189">source</a><a href="#method.from_i64" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1191-1193">source</a><a href="#method.from_i128" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1195-1197">source</a><a href="#method.from_u64" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1199-1201">source</a><a href="#method.from_u128" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1203-1205">source</a><a href="#method.from_f32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1207-1209">source</a><a href="#method.from_f64" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Ci128%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#impl-FromPrimitive-for-Ratio%3Ci128%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><i128></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#method.from_i64-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#method.from_i128-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#method.from_u64-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#method.from_u128-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#method.from_f32-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1246">source</a><a href="#method.from_f64-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Ci16%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#impl-FromPrimitive-for-Ratio%3Ci16%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><i16></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#method.from_i64-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#method.from_i128-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#method.from_u64-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#method.from_u128-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#method.from_f32-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1243">source</a><a href="#method.from_f64-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Ci32%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#impl-FromPrimitive-for-Ratio%3Ci32%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><i32></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#method.from_i64-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#method.from_i128-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#method.from_u64-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#method.from_u128-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#method.from_f32-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1244">source</a><a href="#method.from_f64-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Ci64%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#impl-FromPrimitive-for-Ratio%3Ci64%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><i64></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#method.from_i64-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#method.from_i128-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#method.from_u64-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#method.from_u128-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#method.from_f32-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1245">source</a><a href="#method.from_f64-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Ci8%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#impl-FromPrimitive-for-Ratio%3Ci8%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><i8></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#method.from_i64-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#method.from_i128-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#method.from_u64-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#method.from_u128-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#method.from_f32-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1242">source</a><a href="#method.from_f64-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cisize%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cisize%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><isize></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#method.from_i64-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#method.from_i128-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#method.from_u64-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#method.from_u128-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#method.from_f32-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1247">source</a><a href="#method.from_f64-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cu128%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cu128%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><u128></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#method.from_i64-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#method.from_i128-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#method.from_u64-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#method.from_u128-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#method.from_f32-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1253">source</a><a href="#method.from_f64-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cu16%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cu16%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><u16></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#method.from_i64-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#method.from_i128-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#method.from_u64-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#method.from_u128-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#method.from_f32-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1250">source</a><a href="#method.from_f64-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cu32%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cu32%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><u32></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#method.from_i64-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#method.from_i128-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#method.from_u64-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#method.from_u128-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#method.from_f32-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1251">source</a><a href="#method.from_f64-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cu64%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cu64%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><u64></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#method.from_i64-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#method.from_i128-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#method.from_u64-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#method.from_u128-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#method.from_f32-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1252">source</a><a href="#method.from_f64-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cu8%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cu8%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><u8></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#method.from_i64-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#method.from_i128-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#method.from_u64-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#method.from_u128-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#method.from_f32-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1249">source</a><a href="#method.from_f64-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-Ratio%3Cusize%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#impl-FromPrimitive-for-Ratio%3Cusize%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><usize></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i64-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#method.from_i64-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fnname">from_i64</a>(n: i64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i128-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#method.from_i128-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: i128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u64-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#method.from_u64-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fnname">from_u64</a>(n: u64) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u128-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#method.from_u128-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: u128) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f32-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#method.from_f32-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fnname">from_f32</a>(n: f32) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_f64-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1254">source</a><a href="#method.from_f64-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fnname">from_f64</a>(n: f64) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_isize-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#415">source</a><a href="#method.from_isize-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fnname">from_isize</a>(n: isize) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i8-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#422">source</a><a href="#method.from_i8-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fnname">from_i8</a>(n: i8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i16-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#429">source</a><a href="#method.from_i16-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fnname">from_i16</a>(n: i16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_i32-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#436">source</a><a href="#method.from_i32-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fnname">from_i32</a>(n: i32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_usize-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#460">source</a><a href="#method.from_usize-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fnname">from_usize</a>(n: usize) -> Option<Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u8-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#467">source</a><a href="#method.from_u8-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fnname">from_u8</a>(n: u8) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u16-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#474">source</a><a href="#method.from_u16-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fnname">from_u16</a>(n: u16) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_u32-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#481">source</a><a href="#method.from_u32-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fnname">from_u32</a>(n: u32) -> Option<Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the |
| value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromStr-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1079-1106">source</a><a href="#impl-FromStr-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: FromStr + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> FromStr for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_str" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1083-1105">source</a><a href="#method.from_str" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from_str</a>(s: &str) -> Result<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>, <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>></h4></section></summary><div class="docblock"><p>Parses <code>numer/denom</code> or just <code>numer</code>.</p> |
| </div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Err" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Err" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Err</a> = <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a></h4></section></summary><div class='docblock'>The associated error which can be returned from parsing.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#390-404">source</a><a href="#impl-Hash-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Hash> Hash for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#391-403">source</a><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a class="fnname">hash</a><H: Hasher>(&self, state: &mut H)</h4></section></summary><div class='docblock'>Feeds this value into the given [<code>Hasher</code>]. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.3.0">1.3.0</span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a class="fnname">hash_slice</a><H>(data: &[Self], state: &mut H)<span class="where fmt-newline">where<br> H: Hasher,</span></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given [<code>Hasher</code>]. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Into%3C(T%2C%20T)%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1108-1112">source</a><a href="#impl-Into%3C(T%2C%20T)%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Into<(T, T)> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1109-1111">source</a><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -> (T, T)</h4></section></summary><div class='docblock'>Converts this type into the (usually inferred) input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Inv-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#893-903">source</a><a href="#impl-Inv-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> <a class="trait" href="../num_traits/ops/inv/trait.Inv.html" title="trait num_traits::ops::inv::Inv">Inv</a> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-99" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-99" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/ops/inv/trait.Inv.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inv-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#900-902">source</a><a href="#method.inv-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/ops/inv/trait.Inv.html#tymethod.inv" class="fnname">inv</a>(self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns the multiplicative inverse of <code>self</code>. <a href="../num_traits/ops/inv/trait.Inv.html#tymethod.inv">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Inv-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#881-891">source</a><a href="#impl-Inv-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/ops/inv/trait.Inv.html" title="trait num_traits::ops::inv::Inv">Inv</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-98" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-98" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/ops/inv/trait.Inv.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inv" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#888-890">source</a><a href="#method.inv" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/ops/inv/trait.Inv.html#tymethod.inv" class="fnname">inv</a>(self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns the multiplicative inverse of <code>self</code>. <a href="../num_traits/ops/inv/trait.Inv.html#tymethod.inv">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-LowerExp-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1076">source</a><a href="#impl-LowerExp-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: LowerExp + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> LowerExp for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1076">source</a><a href="#method.fmt-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-LowerHex-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1074">source</a><a href="#impl-LowerHex-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: LowerHex + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> LowerHex for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1074">source</a><a href="#method.fmt-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#impl-Mul%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Mul<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-60" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-60" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#method.mul-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#impl-Mul%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Mul<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-61" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-61" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#method.mul-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, other: &T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Mul<&'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-56" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-56" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#method.mul" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, other: &'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#impl-Mul%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Mul<&'b T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-57" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-57" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#method.mul-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, other: &'b T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#impl-Mul%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Mul<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-58" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-58" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#method.mul-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#679-693">source</a><a href="#impl-Mul%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Mul<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-62" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-62" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#685-692">source</a><a href="#method.mul-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#impl-Mul%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Mul<T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-59" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-59" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#677">source</a><a href="#method.mul-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, other: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Mul%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#695-705">source</a><a href="#impl-Mul%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Mul<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-63" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-63" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#701-704">source</a><a href="#method.mul-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul</a>(self, rhs: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#588">source</a><a href="#impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> MulAssign<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul_assign-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#588">source</a><a href="#method.mul_assign-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul_assign</a>(&mut self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>*=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MulAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#588">source</a><a href="#impl-MulAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> MulAssign<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul_assign-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#588">source</a><a href="#method.mul_assign-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul_assign</a>(&mut self, other: &T)</h4></section></summary><div class='docblock'>Performs the <code>*=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MulAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#485-495">source</a><a href="#impl-MulAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> MulAssign<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul_assign" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#486-494">source</a><a href="#method.mul_assign" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul_assign</a>(&mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>*=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MulAssign%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#544-551">source</a><a href="#impl-MulAssign%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> MulAssign<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mul_assign-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#545-550">source</a><a href="#method.mul_assign-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">mul_assign</a>(&mut self, other: T)</h4></section></summary><div class='docblock'>Performs the <code>*=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Neg-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#869-879">source</a><a href="#impl-Neg-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Neg for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Neg<Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-97" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-97" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.neg-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#876-878">source</a><a href="#method.neg-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">neg</a>(self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Neg-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#857-867">source</a><a href="#impl-Neg-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Neg for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Neg<Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-96" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-96" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.neg" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#864-866">source</a><a href="#method.neg" class="anchor"></a><h4 class="code-header">fn <a class="fnname">neg</a>(self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Num-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#942-968">source</a><a href="#impl-Num-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_str_radix" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#946-967">source</a><a href="#method.from_str_radix" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/trait.Num.html#tymethod.from_str_radix" class="fnname">from_str_radix</a>(s: &str, radix: u32) -> Result<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>, <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>></h4></section></summary><div class="docblock"><p>Parses <code>numer/denom</code> where the numbers are in base <code>radix</code>.</p> |
| </div></details><section id="associatedtype.FromStrRadixErr" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.FromStrRadixErr" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/trait.Num.html#associatedtype.FromStrRadixErr" class="associatedtype">FromStrRadixErr</a> = <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Octal-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1072">source</a><a href="#impl-Octal-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Octal + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Octal for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1072">source</a><a href="#method.fmt-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-One-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#924-940">source</a><a href="#impl-One-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/identities/trait.One.html" title="trait num_traits::identities::One">One</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.one" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#926-928">source</a><a href="#method.one" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#tymethod.one" class="fnname">one</a>() -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns the multiplicative identity element of <code>Self</code>, <code>1</code>. <a href="../num_traits/identities/trait.One.html#tymethod.one">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_one" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#931-933">source</a><a href="#method.is_one" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#method.is_one" class="fnname">is_one</a>(&self) -> bool</h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is equal to the multiplicative identity. <a href="../num_traits/identities/trait.One.html#method.is_one">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_one" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#936-939">source</a><a href="#method.set_one" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#method.set_one" class="fnname">set_one</a>(&mut self)</h4></section></summary><div class='docblock'>Sets <code>self</code> to the multiplicative identity element of <code>Self</code>, <code>1</code>.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#319-370">source</a><a href="#impl-Ord-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Ord for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#321-369">source</a><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a class="fnname">cmp</a>(&self, other: &Self) -> Ordering</h4></section></summary><div class='docblock'>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.max" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Compares and returns the maximum of two values. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.min" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.min" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">min</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Compares and returns the minimum of two values. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.50.0">1.50.0</span><a href="#method.clamp" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clamp</a>(self, min: Self, max: Self) -> Self<span class="where fmt-newline">where<br> Self: PartialOrd<Self>,</span></h4></section></summary><div class='docblock'>Restrict a value to a certain interval. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#379-384">source</a><a href="#impl-PartialEq%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> PartialEq<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#381-383">source</a><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&self, other: &Self) -> bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used |
| by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always |
| sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#372-377">source</a><a href="#impl-PartialOrd%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> PartialOrd<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#374-376">source</a><a href="#method.partial_cmp" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&self, other: &Self) -> Option<Ordering></h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.lt" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.le" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code> |
| operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.gt" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ge" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&self, other: &Rhs) -> bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code> |
| operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20BigInt%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#167-172">source</a><a href="#impl-Pow%3C%26%27b%20BigInt%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-55" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-55" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-56" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#171">source</a><a href="#method.pow-56" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20BigInt%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#164-166">source</a><a href="#impl-Pow%3C%26%27b%20BigInt%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-54" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-54" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-55" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#165">source</a><a href="#method.pow-55" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20BigUint%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#140-145">source</a><a href="#impl-Pow%3C%26%27b%20BigUint%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-51" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-51" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-52" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#144">source</a><a href="#method.pow-52" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20BigUint%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#137-139">source</a><a href="#impl-Pow%3C%26%27b%20BigUint%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-50" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-50" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-51" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#138">source</a><a href="#method.pow-51" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i128%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#impl-Pow%3C%26%27b%20i128%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i128> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-43" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-43" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-44" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#method.pow-44" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i128%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#impl-Pow%3C%26%27b%20i128%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i128> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-42" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-42" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-43" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#method.pow-43" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i16%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#impl-Pow%3C%26%27b%20i16%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i16> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-31" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-31" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#method.pow-32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i16%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#impl-Pow%3C%26%27b%20i16%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i16> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-30" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-30" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-31" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#method.pow-31" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i32%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#impl-Pow%3C%26%27b%20i32%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i32> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-35" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-35" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-36" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#method.pow-36" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i32%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#impl-Pow%3C%26%27b%20i32%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i32> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-34" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-34" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-35" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#method.pow-35" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i64%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#impl-Pow%3C%26%27b%20i64%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i64> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-39" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-39" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-40" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#method.pow-40" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i64%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#impl-Pow%3C%26%27b%20i64%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i64> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-38" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-38" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-39" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#method.pow-39" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i8%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#impl-Pow%3C%26%27b%20i8%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i8> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-27" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-27" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-28" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#method.pow-28" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20i8%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#impl-Pow%3C%26%27b%20i8%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b i8> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-26" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-26" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-27" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#method.pow-27" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b i8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20isize%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#impl-Pow%3C%26%27b%20isize%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b isize> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-47" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-47" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-48" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#method.pow-48" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b isize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20isize%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#impl-Pow%3C%26%27b%20isize%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b isize> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-46" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-46" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-47" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#method.pow-47" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b isize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u128%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#impl-Pow%3C%26%27b%20u128%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u128> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-19" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-19" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-20" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#method.pow-20" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u128%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#impl-Pow%3C%26%27b%20u128%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u128> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-18" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-18" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-19" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#method.pow-19" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u16%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#impl-Pow%3C%26%27b%20u16%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u16> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-7" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#method.pow-8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u16%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#impl-Pow%3C%26%27b%20u16%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u16> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-6" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#method.pow-7" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u32%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#impl-Pow%3C%26%27b%20u32%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u32> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-11" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-11" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#method.pow-12" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u32%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#impl-Pow%3C%26%27b%20u32%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u32> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-10" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-10" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#method.pow-11" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u64%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#impl-Pow%3C%26%27b%20u64%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u64> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-15" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-15" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#method.pow-16" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u64%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#impl-Pow%3C%26%27b%20u64%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u64> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-14" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-14" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-15" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#method.pow-15" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u8%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#impl-Pow%3C%26%27b%20u8%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u8> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-3" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#method.pow-4" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20u8%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#impl-Pow%3C%26%27b%20u8%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b u8> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-2" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#method.pow-3" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b u8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20usize%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#impl-Pow%3C%26%27b%20usize%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b usize> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-23" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-23" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-24" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#method.pow-24" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b usize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3C%26%27b%20usize%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#impl-Pow%3C%26%27b%20usize%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b usize> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-22" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-22" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-23" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#method.pow-23" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: &'b usize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3CBigInt%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#154-163">source</a><a href="#impl-Pow%3CBigInt%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: for<'b> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-53" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-53" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-54" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#160-162">source</a><a href="#method.pow-54" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3CBigInt%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#147-153">source</a><a href="#impl-Pow%3CBigInt%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + for<'b> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-52" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-52" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-53" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#150-152">source</a><a href="#method.pow-53" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3CBigUint%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#127-136">source</a><a href="#impl-Pow%3CBigUint%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><<a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: for<'b> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-49" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-49" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-50" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#133-135">source</a><a href="#method.pow-50" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3CBigUint%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#120-126">source</a><a href="#impl-Pow%3CBigUint%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + for<'b> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><&'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><<a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-48" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-48" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-49" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#123-125">source</a><a href="#method.pow-49" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci128%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#impl-Pow%3Ci128%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i128> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-41" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-41" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-42" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#method.pow-42" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci128%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#impl-Pow%3Ci128%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i128> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-40" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-40" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-41" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#112">source</a><a href="#method.pow-41" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci16%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#impl-Pow%3Ci16%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i16> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-29" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-29" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-30" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#method.pow-30" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci16%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#impl-Pow%3Ci16%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i16> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-28" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-28" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-29" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#109">source</a><a href="#method.pow-29" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci32%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#impl-Pow%3Ci32%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i32> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-33" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-33" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-34" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#method.pow-34" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci32%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#impl-Pow%3Ci32%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i32> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-32" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-32" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-33" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#110">source</a><a href="#method.pow-33" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci64%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#impl-Pow%3Ci64%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i64> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-37" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-37" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-38" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#method.pow-38" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci64%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#impl-Pow%3Ci64%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i64> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-36" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-36" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-37" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#111">source</a><a href="#method.pow-37" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci8%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#impl-Pow%3Ci8%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i8> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-25" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-25" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-26" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#method.pow-26" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Ci8%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#impl-Pow%3Ci8%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><i8> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-24" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-24" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-25" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#108">source</a><a href="#method.pow-25" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: i8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cisize%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#impl-Pow%3Cisize%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><isize> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-45" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-45" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-46" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#method.pow-46" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: isize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cisize%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#impl-Pow%3Cisize%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><isize> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-44" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-44" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-45" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#113">source</a><a href="#method.pow-45" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: isize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu128%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#impl-Pow%3Cu128%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-17" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-17" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-18" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#method.pow-18" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu128%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#impl-Pow%3Cu128%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u128> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-16" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-16" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-17" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#48">source</a><a href="#method.pow-17" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u128) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu16%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#impl-Pow%3Cu16%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-5" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#method.pow-6" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu16%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#impl-Pow%3Cu16%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u16> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#45">source</a><a href="#method.pow-5" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u16) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu32%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#impl-Pow%3Cu32%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-9" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-9" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#method.pow-10" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu32%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#impl-Pow%3Cu32%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u32> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-8" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#46">source</a><a href="#method.pow-9" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u32) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu64%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#impl-Pow%3Cu64%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-13" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-13" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#method.pow-14" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu64%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#impl-Pow%3Cu64%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u64> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-12" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-12" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#47">source</a><a href="#method.pow-13" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u64) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu8%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#impl-Pow%3Cu8%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-1" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#method.pow-2" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cu8%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#impl-Pow%3Cu8%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><u8> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#44">source</a><a href="#method.pow-1" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: u8) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cusize%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#impl-Pow%3Cusize%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> &'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-21" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-21" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-22" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#method.pow-22" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: usize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Pow%3Cusize%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#impl-Pow%3Cusize%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize, Output = T>> <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a><usize> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-20" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-20" class="anchor"></a><h4 class="code-header">type <a href="../num_traits/pow/trait.Pow.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The result after applying the operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pow-21" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/pow.rs.html#49">source</a><a href="#method.pow-21" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/pow/trait.Pow.html#tymethod.pow" class="fnname">pow</a>(self, expon: usize) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns <code>self</code> to the power <code>rhs</code>. <a href="../num_traits/pow/trait.Pow.html#tymethod.pow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Product%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#439-446">source</a><a href="#impl-Product%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone> Product<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.product-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#440-445">source</a><a href="#method.product-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">product</a><I>(iter: I) -> Self<span class="where fmt-newline">where<br> I: Iterator<Item = &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>>,</span></h4></section></summary><div class='docblock'>Method which takes an iterator and generates <code>Self</code> from the elements by |
| multiplying the items. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Product%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#430-437">source</a><a href="#impl-Product%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone> Product<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.product" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#431-436">source</a><a href="#method.product" class="anchor"></a><h4 class="code-header">fn <a class="fnname">product</a><I>(iter: I) -> Self<span class="where fmt-newline">where<br> I: Iterator<Item = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>>,</span></h4></section></summary><div class='docblock'>Method which takes an iterator and generates <code>Self</code> from the elements by |
| multiplying the items. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Rem<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-92" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-92" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Rem<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-93" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-93" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, other: &T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Rem<&'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-88" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-88" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, other: &'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Rem<&'b T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-89" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-89" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, other: &'b T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Rem<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-90" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-90" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Rem<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-94" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-94" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Rem<T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-91" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-91" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, other: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Rem%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#impl-Rem%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Rem<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-95" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-95" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#769">source</a><a href="#method.rem-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem</a>(self, rhs: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#589">source</a><a href="#impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> RemAssign<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem_assign-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#589">source</a><a href="#method.rem_assign-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem_assign</a>(&mut self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>%=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RemAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#589">source</a><a href="#impl-RemAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> RemAssign<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem_assign-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#589">source</a><a href="#method.rem_assign-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem_assign</a>(&mut self, other: &T)</h4></section></summary><div class='docblock'>Performs the <code>%=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RemAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#497-510">source</a><a href="#impl-RemAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> RemAssign<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem_assign" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#498-509">source</a><a href="#method.rem_assign" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem_assign</a>(&mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>%=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RemAssign%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#554-559">source</a><a href="#impl-RemAssign%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> RemAssign<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rem_assign-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#555-558">source</a><a href="#method.rem_assign-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">rem_assign</a>(&mut self, other: T)</h4></section></summary><div class='docblock'>Performs the <code>%=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Signed-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#970-1011">source</a><a href="#impl-Signed-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a>> <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.abs" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#972-978">source</a><a href="#method.abs" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.abs" class="fnname">abs</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Computes the absolute value. <a href="../num_traits/sign/trait.Signed.html#tymethod.abs">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.abs_sub" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#981-987">source</a><a href="#method.abs_sub" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.abs_sub" class="fnname">abs_sub</a>(&self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The positive difference of two numbers. <a href="../num_traits/sign/trait.Signed.html#tymethod.abs_sub">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.signum" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#990-998">source</a><a href="#method.signum" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.signum" class="fnname">signum</a>(&self) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns the sign of the number. <a href="../num_traits/sign/trait.Signed.html#tymethod.signum">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_positive" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1001-1004">source</a><a href="#method.is_positive" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.is_positive" class="fnname">is_positive</a>(&self) -> bool</h4></section></summary><div class='docblock'>Returns true if the number is positive and false if the number is zero or negative.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_negative" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1007-1010">source</a><a href="#method.is_negative" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.is_negative" class="fnname">is_negative</a>(&self) -> bool</h4></section></summary><div class='docblock'>Returns true if the number is negative and false if the number is zero or positive.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Sub<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-84" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-84" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Sub<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-85" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-85" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, other: &T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Sub<&'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-80" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-80" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, other: &'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, 'b, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Sub<&'b T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-81" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-81" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, other: &'b T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Sub<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-82" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-82" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Sub<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-86" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-86" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3CT%3E-for-%26%27a%20Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T> Sub<T> for &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-83" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-83" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, other: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sub%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#impl-Sub%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Sub<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-87" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-87" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#768">source</a><a href="#method.sub-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub</a>(self, rhs: T) -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#590">source</a><a href="#impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> SubAssign<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_assign-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#590">source</a><a href="#method.sub_assign-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub_assign</a>(&mut self, other: &<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>-=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SubAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#590">source</a><a href="#impl-SubAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> SubAssign<&'a T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_assign-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#590">source</a><a href="#method.sub_assign-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub_assign</a>(&mut self, other: &T)</h4></section></summary><div class='docblock'>Performs the <code>-=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SubAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#512-525">source</a><a href="#impl-SubAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> SubAssign<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_assign" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#513-524">source</a><a href="#method.sub_assign" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub_assign</a>(&mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>)</h4></section></summary><div class='docblock'>Performs the <code>-=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-SubAssign%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#562-567">source</a><a href="#impl-SubAssign%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>> SubAssign<T> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_assign-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#563-566">source</a><a href="#method.sub_assign-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sub_assign</a>(&mut self, other: T)</h4></section></summary><div class='docblock'>Performs the <code>-=</code> operation. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sum%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#421-428">source</a><a href="#impl-Sum%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<'a, T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone> Sum<&'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sum-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#422-427">source</a><a href="#method.sum-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sum</a><I>(iter: I) -> Self<span class="where fmt-newline">where<br> I: Iterator<Item = &'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>>,</span></h4></section></summary><div class='docblock'>Method which takes an iterator and generates <code>Self</code> from the elements by |
| “summing up” the items. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Sum%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#412-419">source</a><a href="#impl-Sum%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone> Sum<<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sum" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#413-418">source</a><a href="#method.sum" class="anchor"></a><h4 class="code-header">fn <a class="fnname">sum</a><I>(iter: I) -> Self<span class="where fmt-newline">where<br> I: Iterator<Item = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>>,</span></h4></section></summary><div class='docblock'>Method which takes an iterator and generates <code>Self</code> from the elements by |
| “summing up” the items. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ToPrimitive-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1453-1488">source</a><a href="#impl-ToPrimitive-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/cast/trait.ToPrimitive.html" title="trait num_traits::cast::ToPrimitive">ToPrimitive</a> + <a class="trait" href="../num_bigint/bigint/trait.ToBigInt.html" title="trait num_bigint::bigint::ToBigInt">ToBigInt</a>> <a class="trait" href="../num_traits/cast/trait.ToPrimitive.html" title="trait num_traits::cast::ToPrimitive">ToPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1454-1456">source</a><a href="#method.to_i64" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#tymethod.to_i64" class="fnname">to_i64</a>(&self) -> Option<i64></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i64</code>. If the value cannot be |
| represented by an <code>i64</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#tymethod.to_i64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i128" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1458-1460">source</a><a href="#method.to_i128" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i128" class="fnname">to_i128</a>(&self) -> Option<i128></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i128</code>. If the value cannot be |
| represented by an <code>i128</code> (<code>i64</code> under the default implementation), then |
| <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1462-1464">source</a><a href="#method.to_u64" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#tymethod.to_u64" class="fnname">to_u64</a>(&self) -> Option<u64></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u64</code>. If the value cannot be |
| represented by a <code>u64</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#tymethod.to_u64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u128" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1466-1468">source</a><a href="#method.to_u128" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u128" class="fnname">to_u128</a>(&self) -> Option<u128></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u128</code>. If the value cannot be |
| represented by a <code>u128</code> (<code>u64</code> under the default implementation), then |
| <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u128">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_f64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1470-1487">source</a><a href="#method.to_f64" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f64" class="fnname">to_f64</a>(&self) -> Option<f64></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>f64</code>. Overflows may map to positive |
| or negative inifinity, otherwise <code>None</code> is returned if the value cannot |
| be represented by an <code>f64</code>. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f64">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_isize" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#23">source</a><a href="#method.to_isize" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_isize" class="fnname">to_isize</a>(&self) -> Option<isize></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>isize</code>. If the value cannot be |
| represented by an <code>isize</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_isize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#30">source</a><a href="#method.to_i8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i8" class="fnname">to_i8</a>(&self) -> Option<i8></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i8</code>. If the value cannot be |
| represented by an <code>i8</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#37">source</a><a href="#method.to_i16" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i16" class="fnname">to_i16</a>(&self) -> Option<i16></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i16</code>. If the value cannot be |
| represented by an <code>i16</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_i32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#44">source</a><a href="#method.to_i32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i32" class="fnname">to_i32</a>(&self) -> Option<i32></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i32</code>. If the value cannot be |
| represented by an <code>i32</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_usize" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#69">source</a><a href="#method.to_usize" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_usize" class="fnname">to_usize</a>(&self) -> Option<usize></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>usize</code>. If the value cannot be |
| represented by a <code>usize</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_usize">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#76">source</a><a href="#method.to_u8" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u8" class="fnname">to_u8</a>(&self) -> Option<u8></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u8</code>. If the value cannot be |
| represented by a <code>u8</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u8">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#83">source</a><a href="#method.to_u16" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u16" class="fnname">to_u16</a>(&self) -> Option<u16></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u16</code>. If the value cannot be |
| represented by a <code>u16</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u16">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_u32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#90">source</a><a href="#method.to_u32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u32" class="fnname">to_u32</a>(&self) -> Option<u32></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u32</code>. If the value cannot be |
| represented by a <code>u32</code>, then <code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u32">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_f32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_traits/cast.rs.html#116">source</a><a href="#method.to_f32" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f32" class="fnname">to_f32</a>(&self) -> Option<f32></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>f32</code>. Overflows may map to positive |
| or negative inifinity, otherwise <code>None</code> is returned if the value cannot |
| be represented by an <code>f32</code>. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f32">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-UpperExp-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1077">source</a><a href="#impl-UpperExp-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: UpperExp + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> UpperExp for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1077">source</a><a href="#method.fmt-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-UpperHex-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1075">source</a><a href="#impl-UpperHex-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: UpperHex + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> UpperHex for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#1075">source</a><a href="#method.fmt-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&self, f: &mut Formatter<'_>) -> Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Zero-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#906-922">source</a><a href="#impl-Zero-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/identities/trait.Zero.html" title="trait num_traits::identities::Zero">Zero</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.zero" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#908-910">source</a><a href="#method.zero" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#tymethod.zero" class="fnname">zero</a>() -> <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h4></section></summary><div class='docblock'>Returns the additive identity element of <code>Self</code>, <code>0</code>. <a href="../num_traits/identities/trait.Zero.html#tymethod.zero">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_zero" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#913-915">source</a><a href="#method.is_zero" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#tymethod.is_zero" class="fnname">is_zero</a>(&self) -> bool</h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is equal to the additive identity.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_zero" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#918-921">source</a><a href="#method.set_zero" class="anchor"></a><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#method.set_zero" class="fnname">set_zero</a>(&mut self)</h4></section></summary><div class='docblock'>Sets <code>self</code> to the additive identity element of <code>Self</code>, <code>0</code>.</div></details></div></details><section id="impl-Copy-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#50">source</a><a href="#impl-Copy-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Copy> Copy for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section><section id="impl-Eq-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_rational/lib.rs.html#386">source</a><a href="#impl-Eq-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> Eq for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> RefUnwindSafe for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: RefUnwindSafe,</span></h3></section><section id="impl-Send-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-Send-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Send for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Send,</span></h3></section><section id="impl-Sync-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-Sync-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Sync for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Sync,</span></h3></section><section id="impl-Unpin-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-Unpin-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Unpin for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: Unpin,</span></h3></section><section id="impl-UnwindSafe-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> UnwindSafe for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T><span class="where fmt-newline">where<br> T: UnwindSafe,</span></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-Any-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Any for T<span class="where fmt-newline">where<br> T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&self) -> TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> Borrow<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&self) -> &T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> BorrowMut<T> for T<span class="where fmt-newline">where<br> T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&mut self) -> &mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Ratio%3CT%3E-1" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Ratio%3CT%3E-1" class="anchor"></a><h3 class="code-header">impl<T> From<T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T, U> Into<U> for T<span class="where fmt-newline">where<br> U: From<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into-1" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> |
| <p>That is, this conversion is whatever the implementation of |
| <code>[From]<T> for U</code> chooses to do.</p> |
| </div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-ToOwned-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> ToOwned for T<span class="where fmt-newline">where<br> T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_into</a>(&self, target: &mut T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToString-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-ToString-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> ToString for T<span class="where fmt-newline">where<br> T: Display + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl has-srclink"><a href="#method.to_string" class="anchor"></a><h4 class="code-header">default fn <a class="fnname">to_string</a>(&self) -> String</h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T, U> TryFrom<U> for T<span class="where fmt-newline">where<br> U: Into<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -> Result<T, <T as TryFrom<U>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T, U> TryInto<U> for T<span class="where fmt-newline">where<br> U: TryFrom<T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <U as TryFrom<T>>::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -> Result<U, <U as TryFrom<T>>::Error></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-NumAssign-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_traits/lib.rs.html#153">source</a><a href="#impl-NumAssign-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> for T<span class="where fmt-newline">where<br> T: <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a><T>,</span></h3></section><section id="impl-NumAssignOps%3CRhs%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_traits/lib.rs.html#144">source</a><a href="#impl-NumAssignOps%3CRhs%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T, Rhs> <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a><Rhs> for T<span class="where fmt-newline">where<br> T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,</span></h3></section><section id="impl-NumAssignRef-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_traits/lib.rs.html#160">source</a><a href="#impl-NumAssignRef-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/trait.NumAssignRef.html" title="trait num_traits::NumAssignRef">NumAssignRef</a> for T<span class="where fmt-newline">where<br> T: <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> + for<'r> <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a><&'r T>,</span></h3></section><section id="impl-NumOps%3CRhs%2C%20Output%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_traits/lib.rs.html#111">source</a><a href="#impl-NumOps%3CRhs%2C%20Output%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T, Rhs, Output> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><Rhs, Output> for T<span class="where fmt-newline">where<br> T: Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Rem<Rhs, Output = Output> + Add<Rhs, Output = Output> + Sub<Rhs, Output = Output>,</span></h3></section><section id="impl-NumRef-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_traits/lib.rs.html#125">source</a><a href="#impl-NumRef-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/trait.NumRef.html" title="trait num_traits::NumRef">NumRef</a> for T<span class="where fmt-newline">where<br> T: <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + for<'r> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><&'r T, T>,</span></h3></section><section id="impl-RefNum%3CBase%3E-for-Ratio%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/num_traits/lib.rs.html#134">source</a><a href="#impl-RefNum%3CBase%3E-for-Ratio%3CT%3E" class="anchor"></a><h3 class="code-header">impl<T, Base> <a class="trait" href="../num_traits/trait.RefNum.html" title="trait num_traits::RefNum">RefNum</a><Base> for T<span class="where fmt-newline">where<br> T: <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><Base, Base> + for<'r> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><&'r Base, Base>,</span></h3></section></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_rational" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html> |