blob: 1cba1b79d3953e3bb7b6709519ff679185fc505a [file] [log] [blame]
<!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">&#9776;</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&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Add%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Add&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-Add%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Add&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Add%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Add&lt;&amp;&#39;b T&gt;</a></li><li><a href="#impl-Add%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Add&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Add%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Add&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Add%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Add&lt;T&gt;</a></li><li><a href="#impl-Add%3CT%3E-for-Ratio%3CT%3E">Add&lt;T&gt;</a></li><li><a href="#impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">AddAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-AddAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">AddAssign&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-AddAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">AddAssign&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-AddAssign%3CT%3E-for-Ratio%3CT%3E">AddAssign&lt;T&gt;</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&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Div%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Div&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-Div%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Div&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Div%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Div&lt;&amp;&#39;b T&gt;</a></li><li><a href="#impl-Div%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Div&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Div%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Div&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Div%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Div&lt;T&gt;</a></li><li><a href="#impl-Div%3CT%3E-for-Ratio%3CT%3E">Div&lt;T&gt;</a></li><li><a href="#impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">DivAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-DivAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">DivAssign&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-DivAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">DivAssign&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-DivAssign%3CT%3E-for-Ratio%3CT%3E">DivAssign&lt;T&gt;</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&lt;(T, T)&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Ratio%3CT%3E">From&lt;T&gt;</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&lt;(T, T)&gt;</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&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Mul%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Mul&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Mul&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Mul%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Mul&lt;&amp;&#39;b T&gt;</a></li><li><a href="#impl-Mul%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Mul&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Mul%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Mul&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Mul%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Mul&lt;T&gt;</a></li><li><a href="#impl-Mul%3CT%3E-for-Ratio%3CT%3E">Mul&lt;T&gt;</a></li><li><a href="#impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">MulAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-MulAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">MulAssign&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-MulAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">MulAssign&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-MulAssign%3CT%3E-for-Ratio%3CT%3E">MulAssign&lt;T&gt;</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&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">PartialOrd&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20BigInt%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b BigInt&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20BigInt%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b BigInt&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20BigUint%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b BigUint&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20BigUint%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b BigUint&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i128%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b i128&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i128%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b i128&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i16%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b i16&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i16%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b i16&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i32%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b i32&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i32%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b i32&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i64%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b i64&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i64%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b i64&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i8%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b i8&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20i8%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b i8&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20isize%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b isize&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20isize%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b isize&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u128%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b u128&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u128%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b u128&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u16%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b u16&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u16%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b u16&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u32%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b u32&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u32%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b u32&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u64%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b u64&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u64%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b u64&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u8%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b u8&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20u8%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b u8&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20usize%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;&amp;&#39;b usize&gt;</a></li><li><a href="#impl-Pow%3C%26%27b%20usize%3E-for-Ratio%3CT%3E">Pow&lt;&amp;&#39;b usize&gt;</a></li><li><a href="#impl-Pow%3CBigInt%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;BigInt&gt;</a></li><li><a href="#impl-Pow%3CBigInt%3E-for-Ratio%3CT%3E">Pow&lt;BigInt&gt;</a></li><li><a href="#impl-Pow%3CBigUint%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;BigUint&gt;</a></li><li><a href="#impl-Pow%3CBigUint%3E-for-Ratio%3CT%3E">Pow&lt;BigUint&gt;</a></li><li><a href="#impl-Pow%3Ci128%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;i128&gt;</a></li><li><a href="#impl-Pow%3Ci128%3E-for-Ratio%3CT%3E">Pow&lt;i128&gt;</a></li><li><a href="#impl-Pow%3Ci16%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;i16&gt;</a></li><li><a href="#impl-Pow%3Ci16%3E-for-Ratio%3CT%3E">Pow&lt;i16&gt;</a></li><li><a href="#impl-Pow%3Ci32%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;i32&gt;</a></li><li><a href="#impl-Pow%3Ci32%3E-for-Ratio%3CT%3E">Pow&lt;i32&gt;</a></li><li><a href="#impl-Pow%3Ci64%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;i64&gt;</a></li><li><a href="#impl-Pow%3Ci64%3E-for-Ratio%3CT%3E">Pow&lt;i64&gt;</a></li><li><a href="#impl-Pow%3Ci8%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;i8&gt;</a></li><li><a href="#impl-Pow%3Ci8%3E-for-Ratio%3CT%3E">Pow&lt;i8&gt;</a></li><li><a href="#impl-Pow%3Cisize%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;isize&gt;</a></li><li><a href="#impl-Pow%3Cisize%3E-for-Ratio%3CT%3E">Pow&lt;isize&gt;</a></li><li><a href="#impl-Pow%3Cu128%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;u128&gt;</a></li><li><a href="#impl-Pow%3Cu128%3E-for-Ratio%3CT%3E">Pow&lt;u128&gt;</a></li><li><a href="#impl-Pow%3Cu16%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;u16&gt;</a></li><li><a href="#impl-Pow%3Cu16%3E-for-Ratio%3CT%3E">Pow&lt;u16&gt;</a></li><li><a href="#impl-Pow%3Cu32%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;u32&gt;</a></li><li><a href="#impl-Pow%3Cu32%3E-for-Ratio%3CT%3E">Pow&lt;u32&gt;</a></li><li><a href="#impl-Pow%3Cu64%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;u64&gt;</a></li><li><a href="#impl-Pow%3Cu64%3E-for-Ratio%3CT%3E">Pow&lt;u64&gt;</a></li><li><a href="#impl-Pow%3Cu8%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;u8&gt;</a></li><li><a href="#impl-Pow%3Cu8%3E-for-Ratio%3CT%3E">Pow&lt;u8&gt;</a></li><li><a href="#impl-Pow%3Cusize%3E-for-%26%27a%20Ratio%3CT%3E">Pow&lt;usize&gt;</a></li><li><a href="#impl-Pow%3Cusize%3E-for-Ratio%3CT%3E">Pow&lt;usize&gt;</a></li><li><a href="#impl-Product%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Product&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Product%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Product&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Rem&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Rem%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Rem&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Rem&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Rem%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Rem&lt;&amp;&#39;b T&gt;</a></li><li><a href="#impl-Rem%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Rem&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Rem%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Rem&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Rem%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Rem&lt;T&gt;</a></li><li><a href="#impl-Rem%3CT%3E-for-Ratio%3CT%3E">Rem&lt;T&gt;</a></li><li><a href="#impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">RemAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-RemAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">RemAssign&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-RemAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">RemAssign&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-RemAssign%3CT%3E-for-Ratio%3CT%3E">RemAssign&lt;T&gt;</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&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Sub%3C%26%27a%20T%3E-for-Ratio%3CT%3E">Sub&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Sub&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Sub%3C%26%27b%20T%3E-for-%26%27a%20Ratio%3CT%3E">Sub&lt;&amp;&#39;b T&gt;</a></li><li><a href="#impl-Sub%3CRatio%3CT%3E%3E-for-%26%27a%20Ratio%3CT%3E">Sub&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Sub%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Sub&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Sub%3CT%3E-for-%26%27a%20Ratio%3CT%3E">Sub&lt;T&gt;</a></li><li><a href="#impl-Sub%3CT%3E-for-Ratio%3CT%3E">Sub&lt;T&gt;</a></li><li><a href="#impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">SubAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-SubAssign%3C%26%27a%20T%3E-for-Ratio%3CT%3E">SubAssign&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-SubAssign%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">SubAssign&lt;Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-SubAssign%3CT%3E-for-Ratio%3CT%3E">SubAssign&lt;T&gt;</a></li><li><a href="#impl-Sum%3C%26%27a%20Ratio%3CT%3E%3E-for-Ratio%3CT%3E">Sum&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a></li><li><a href="#impl-Sum%3CRatio%3CT%3E%3E-for-Ratio%3CT%3E">Sum&lt;Ratio&lt;T&gt;&gt;</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&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Ratio%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Ratio%3CT%3E-1">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Ratio%3CT%3E">Into&lt;U&gt;</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&lt;Rhs&gt;</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&lt;Rhs, Output&gt;</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&lt;Base&gt;</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&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Ratio%3CT%3E">TryInto&lt;U&gt;</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">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Ratio&lt;T&gt; { /* 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&lt;T&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; &amp;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>(&amp;self) -&gt; &amp;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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; 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>(&amp;self) -&gt; 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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, expon: i32) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;for&lt;'a&gt; &amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32, Output = T&gt;,</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>&lt;<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>&gt;</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>&lt;T:&nbsp;<a class="trait" href="../num_traits/float/trait.FloatCore.html" title="trait num_traits::float::FloatCore">FloatCore</a>&gt;(f: T) -&gt; Option&lt;<a class="type" href="type.BigRational.html" title="type num_rational::BigRational">BigRational</a>&gt;</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&lt;T:&nbsp;<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&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;F:&nbsp;<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>&gt;(f: F) -&gt; Option&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</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&lt;'a, T&gt; Add&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Add&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Add&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Add&lt;&amp;'b T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Add&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Add&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Add&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Add&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;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>&gt; AddAssign&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;'a, T:&nbsp;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>&gt; AddAssign&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;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&lt;T:&nbsp;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>&gt; AddAssign&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;T:&nbsp;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>&gt; AddAssign&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;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&lt;T:&nbsp;Binary + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Binary for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;T:&nbsp;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>&gt; <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>&lt;T&gt;</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>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; Option&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</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&lt;T&gt; <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>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; Option&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</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&lt;T&gt; <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>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; Option&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</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&lt;T:&nbsp;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>&gt; <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>&lt;T&gt;</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>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; Option&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</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&lt;T:&nbsp;Clone&gt; Clone for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, source: &amp;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&lt;T:&nbsp;Debug&gt; Debug for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;T:&nbsp;Display + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Display for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;'a, T&gt; Div&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Div&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Div&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Div&lt;&amp;'b T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Div&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; Div&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Div&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; Div&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;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>&gt; DivAssign&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;'a, T:&nbsp;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>&gt; DivAssign&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;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&lt;T:&nbsp;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>&gt; DivAssign&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;T:&nbsp;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>&gt; DivAssign&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;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&lt;T&gt; From&lt;(T, T)&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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)) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; From&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;i128&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;i16&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;i32&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;i64&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;i8&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;isize&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;u128&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;u16&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;u32&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;u64&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;u8&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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>&lt;usize&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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) -&gt; Option&lt;Self&gt;</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&lt;T:&nbsp;FromStr + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; FromStr for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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: &amp;str) -&gt; Result&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;, <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Hash&gt; Hash for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;H:&nbsp;Hasher&gt;(&amp;self, state: &amp;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>&lt;H&gt;(data: &amp;[Self], state: &amp;mut H)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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&lt;T&gt; Into&lt;(T, T)&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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) -&gt; (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&lt;'a, T&gt; <a class="trait" href="../num_traits/ops/inv/trait.Inv.html" title="trait num_traits::ops::inv::Inv">Inv</a> for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; <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>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;LowerExp + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; LowerExp for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;T:&nbsp;LowerHex + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; LowerHex for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;'a, T&gt; Mul&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Mul&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Mul&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Mul&lt;&amp;'b T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Mul&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; Mul&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Mul&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; Mul&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;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>&gt; MulAssign&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;'a, T:&nbsp;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>&gt; MulAssign&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;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&lt;T:&nbsp;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>&gt; MulAssign&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;T:&nbsp;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>&gt; MulAssign&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;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&lt;'a, T&gt; Neg for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Neg&lt;Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; Neg for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Neg&lt;Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <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>&lt;T&gt;</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: &amp;str, radix: u32) -&gt; Result&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;, <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>&gt;</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&lt;T:&nbsp;Octal + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Octal for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <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>&lt;T&gt;</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>() -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; 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>(&amp;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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Ord for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, other: &amp;Self) -&gt; 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) -&gt; 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) -&gt; 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) -&gt; Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: PartialOrd&lt;Self&gt;,</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; PartialEq&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, other: &amp;Self) -&gt; 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>(&amp;self, other: &amp;Rhs) -&gt; 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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; PartialOrd&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, other: &amp;Self) -&gt; Option&lt;Ordering&gt;</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>(&amp;self, other: &amp;Rhs) -&gt; 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>&lt;</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>(&amp;self, other: &amp;Rhs) -&gt; 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>&lt;=</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>(&amp;self, other: &amp;Rhs) -&gt; 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>&gt;</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>(&amp;self, other: &amp;Rhs) -&gt; 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>&gt;=</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i128&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u128, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b i128) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u128, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i128&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b i128) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i16&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u16, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b i16) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u16, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i16&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b i16) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i32&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b i32) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u32, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i32&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b i32) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i64&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u64, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b i64) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u64, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i64&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b i64) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i8&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u8, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b i8) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u8, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b i8&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b i8) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b isize&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;usize, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b isize) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;usize, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b isize&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b isize) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u128&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u128, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b u128) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u128, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u128&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b u128) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u16&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u16, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b u16) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u16, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u16&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b u16) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u32&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b u32) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u32, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u32&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b u32) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u64&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u64, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b u64) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u64, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u64&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b u64) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u8&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u8, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b u8) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;u8, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b u8&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b u8) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b usize&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;usize, Output = T&gt;,</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>&lt;T&gt;</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: &amp;'b usize) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'b, T:&nbsp;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>&lt;usize, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b usize&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b usize) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: for&lt;'b&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;,</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>&lt;T&gt;</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>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + for&lt;'b&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;<a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: for&lt;'b&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;,</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>&lt;T&gt;</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>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + for&lt;'b&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;&amp;'b <a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;<a class="struct" href="../num_bigint/biguint/struct.BigUint.html" title="struct num_bigint::biguint::BigUint">BigUint</a>&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i128&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u128, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u128, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i128&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i16&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u16, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u16, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i16&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i32&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u32, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i32&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i64&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u64, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u64, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i64&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i8&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u8, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u8, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;i8&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;isize&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;usize, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;usize, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;isize&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u128&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u128, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u128, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u128&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u16&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u16, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u16, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u16&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u32, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u32&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u64&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u64, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u64, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u64&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u8&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u8, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;u8, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;u8&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;usize&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a T: <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;usize, Output = T&gt;,</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;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>&lt;usize, Output = T&gt;&gt; <a class="trait" href="../num_traits/pow/trait.Pow.html" title="trait num_traits::pow::Pow">Pow</a>&lt;usize&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone&gt; Product&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;I&gt;(iter: I) -&gt; Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: Iterator&lt;Item = &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;,</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&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone&gt; Product&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;I&gt;(iter: I) -&gt; Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: Iterator&lt;Item = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;,</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&lt;'a, T&gt; Rem&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Rem&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Rem&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Rem&lt;&amp;'b T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Rem&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Rem&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Rem&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Rem&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;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>&gt; RemAssign&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;'a, T:&nbsp;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>&gt; RemAssign&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;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&lt;T:&nbsp;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>&gt; RemAssign&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;T:&nbsp;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>&gt; RemAssign&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;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&lt;T:&nbsp;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>&gt; <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>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; 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>(&amp;self) -&gt; 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&lt;'a, T&gt; Sub&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Sub&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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: &amp;T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Sub&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, 'b, T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Sub&lt;&amp;'b T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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: &amp;'b T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Sub&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Sub&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T&gt; Sub&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Sub&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;T&gt;</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) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;'a, T:&nbsp;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>&gt; SubAssign&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;'a, T:&nbsp;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>&gt; SubAssign&lt;&amp;'a T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: &amp;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&lt;T:&nbsp;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>&gt; SubAssign&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</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&lt;T:&nbsp;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>&gt; SubAssign&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;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&lt;'a, T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone&gt; Sum&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;I&gt;(iter: I) -&gt; Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: Iterator&lt;Item = &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;,</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&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + Clone&gt; Sum&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>&lt;I&gt;(iter: I) -&gt; Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: Iterator&lt;Item = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;,</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&lt;T:&nbsp;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>&gt; <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>&lt;T&gt;</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>(&amp;self) -&gt; Option&lt;i64&gt;</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>(&amp;self) -&gt; Option&lt;i128&gt;</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>(&amp;self) -&gt; Option&lt;u64&gt;</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>(&amp;self) -&gt; Option&lt;u128&gt;</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>(&amp;self) -&gt; Option&lt;f64&gt;</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>(&amp;self) -&gt; Option&lt;isize&gt;</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>(&amp;self) -&gt; Option&lt;i8&gt;</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>(&amp;self) -&gt; Option&lt;i16&gt;</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>(&amp;self) -&gt; Option&lt;i32&gt;</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>(&amp;self) -&gt; Option&lt;usize&gt;</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>(&amp;self) -&gt; Option&lt;u8&gt;</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>(&amp;self) -&gt; Option&lt;u16&gt;</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>(&amp;self) -&gt; Option&lt;u32&gt;</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>(&amp;self) -&gt; Option&lt;f32&gt;</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&lt;T:&nbsp;UpperExp + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; UpperExp for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;T:&nbsp;UpperHex + Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; UpperHex for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; 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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; <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>&lt;T&gt;</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>() -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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>(&amp;self) -&gt; 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>(&amp;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&lt;T:&nbsp;Copy&gt; Copy for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T:&nbsp;Clone + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt; Eq for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</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&lt;T&gt; RefUnwindSafe for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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&lt;T&gt; Send for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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&lt;T&gt; Sync for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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&lt;T&gt; Unpin for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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&lt;T&gt; UnwindSafe for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;self) -&gt; 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&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;self) -&gt; &amp;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&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;mut self) -&gt; &amp;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&lt;T&gt; From&lt;T&gt; 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) -&gt; 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&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</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) -&gt; 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]&lt;T&gt; 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&lt;T&gt; ToOwned for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;self) -&gt; 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>(&amp;self, target: &amp;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&lt;T&gt; ToString for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;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>(&amp;self) -&gt; 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&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</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) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</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&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</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> = &lt;U as TryFrom&lt;T&gt;&gt;::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) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;T&gt;,</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&lt;T, Rhs&gt; <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a>&lt;Rhs&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: AddAssign&lt;Rhs&gt; + SubAssign&lt;Rhs&gt; + MulAssign&lt;Rhs&gt; + DivAssign&lt;Rhs&gt; + RemAssign&lt;Rhs&gt;,</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> + for&lt;'r&gt; <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a>&lt;&amp;'r T&gt;,</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&lt;T, Rhs, Output&gt; <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;Rhs, Output&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Mul&lt;Rhs, Output = Output&gt; + Div&lt;Rhs, Output = Output&gt; + Rem&lt;Rhs, Output = Output&gt; + Add&lt;Rhs, Output = Output&gt; + Sub&lt;Rhs, Output = Output&gt;,</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + for&lt;'r&gt; <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;&amp;'r T, T&gt;,</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&lt;T, Base&gt; <a class="trait" href="../num_traits/trait.RefNum.html" title="trait num_traits::RefNum">RefNum</a>&lt;Base&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;Base, Base&gt; + for&lt;'r&gt; <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;&amp;'r Base, Base&gt;,</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>