<!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="API documentation for the Rust `Ratio` struct in crate `num_rational`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Ratio">
<title>num_rational::Ratio - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../main.css">
<link rel="shortcut icon" href="https://rust-num.github.io/num/favicon.ico">
</head>
<body class="rustdoc struct">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<a href='../num_rational/index.html'><img src='https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a>
<p class='location'><a href='index.html'>num_rational</a></p><script>window.sidebarCurrent = {name: 'Ratio', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>num_rational</a>::<wbr><a class="struct" href=''>Ratio</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>−</span>]
</a>
</span><a class='srclink' href='../src/num_rational/lib.rs.html#44-47' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct Ratio<T> { /* fields omitted */ }</pre><div class='docblock'><p>Represents the ratio between 2 numbers.</p>
</div><h2 id='methods'>Methods</h2><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#58-221' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><code>fn <a href='#method.new' class='fnname'>new</a>(numer: T, denom: T) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Creates a new <code>Ratio</code>. Fails if <code>denom</code> is zero.</p>
</div><h4 id='method.from_integer' class="method"><span id='from_integer.v' class='invisible'><code>fn <a href='#method.from_integer' class='fnname'>from_integer</a>(t: T) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Creates a <code>Ratio</code> representing the integer <code>t</code>.</p>
</div><h4 id='method.new_raw' class="method"><span id='new_raw.v' class='invisible'><code>fn <a href='#method.new_raw' class='fnname'>new_raw</a>(numer: T, denom: T) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Creates a <code>Ratio</code> without checking for <code>denom == 0</code> or reducing.</p>
</div><h4 id='method.to_integer' class="method"><span id='to_integer.v' class='invisible'><code>fn <a href='#method.to_integer' class='fnname'>to_integer</a>(&self) -> T</code></span></h4>
<div class='docblock'><p>Converts to an integer, rounding towards zero.</p>
</div><h4 id='method.numer' class="method"><span id='numer.v' class='invisible'><code>fn <a href='#method.numer' class='fnname'>numer</a><'a>(&'a self) -> &'a T</code></span></h4>
<div class='docblock'><p>Gets an immutable reference to the numerator.</p>
</div><h4 id='method.denom' class="method"><span id='denom.v' class='invisible'><code>fn <a href='#method.denom' class='fnname'>denom</a><'a>(&'a self) -> &'a T</code></span></h4>
<div class='docblock'><p>Gets an immutable reference to the denominator.</p>
</div><h4 id='method.is_integer' class="method"><span id='is_integer.v' class='invisible'><code>fn <a href='#method.is_integer' class='fnname'>is_integer</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if the rational number is an integer (denominator is 1).</p>
</div><h4 id='method.reduced' class="method"><span id='reduced.v' class='invisible'><code>fn <a href='#method.reduced' class='fnname'>reduced</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<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>
</div><h4 id='method.recip' class="method"><span id='recip.v' class='invisible'><code>fn <a href='#method.recip' class='fnname'>recip</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Returns the reciprocal.</p>
<p>Fails if the <code>Ratio</code> is zero.</p>
</div><h4 id='method.floor' class="method"><span id='floor.v' class='invisible'><code>fn <a href='#method.floor' class='fnname'>floor</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Rounds towards minus infinity.</p>
</div><h4 id='method.ceil' class="method"><span id='ceil.v' class='invisible'><code>fn <a href='#method.ceil' class='fnname'>ceil</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Rounds towards plus infinity.</p>
</div><h4 id='method.round' class="method"><span id='round.v' class='invisible'><code>fn <a href='#method.round' class='fnname'>round</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Rounds to the nearest integer. Rounds half-way cases away from zero.</p>
</div><h4 id='method.trunc' class="method"><span id='trunc.v' class='invisible'><code>fn <a href='#method.trunc' class='fnname'>trunc</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Rounds towards zero.</p>
</div><h4 id='method.fract' class="method"><span id='fract.v' class='invisible'><code>fn <a href='#method.fract' class='fnname'>fract</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<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></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a>> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#223-235' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.pow' class="method"><span id='pow.v' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(&self, expon: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Raises the <code>Ratio</code> to the power of an exponent.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#238-261' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_float' class="method"><span id='from_float.v' class='invisible'><code>fn <a href='#method.from_float' class='fnname'>from_float</a><T: <a class="trait" href="../num_traits/float/trait.Float.html" title="trait num_traits::float::Float">Float</a>>(f: T) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="type" href="../num_rational/type.BigRational.html" title="type num_rational::BigRational">BigRational</a>></code></span></h4>
<div class='docblock'><p>Converts a float into a rational number.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a> + <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a> + <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#741-749' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.approximate_float' class="method"><span id='approximate_float.v' class='invisible'><code>fn <a href='#method.approximate_float' class='fnname'>approximate_float</a><F: <a class="trait" href="../num_traits/float/trait.Float.html" title="trait num_traits::float::Float">Float</a> + <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a>>(f: F) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>></code></span></h4>
</div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#41' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#41' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: &Self)</code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#41' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="../rustc_serialize/serialize/trait.Encodable.html" title="trait rustc_serialize::serialize::Encodable">Encodable</a>> <a class="trait" href="../rustc_serialize/serialize/trait.Encodable.html" title="trait rustc_serialize::serialize::Encodable">Encodable</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#42' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.encode' class="method"><span id='encode.v' class='invisible'><code>fn <a href='../rustc_serialize/serialize/trait.Encodable.html#tymethod.encode' class='fnname'>encode</a><__ST: <a class="trait" href="../rustc_serialize/serialize/trait.Encoder.html" title="trait rustc_serialize::serialize::Encoder">Encoder</a>>(&self, __arg_0: &mut __ST) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>, __ST::<a class="trait" href="../rustc_serialize/serialize/trait.Encoder.html" title="trait rustc_serialize::serialize::Encoder">Error</a>></code></span></h4>
<div class='docblock'><p>Serialize a value using an <code>Encoder</code>.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="../rustc_serialize/serialize/trait.Decodable.html" title="trait rustc_serialize::serialize::Decodable">Decodable</a>> <a class="trait" href="../rustc_serialize/serialize/trait.Decodable.html" title="trait rustc_serialize::serialize::Decodable">Decodable</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#42' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.decode' class="method"><span id='decode.v' class='invisible'><code>fn <a href='../rustc_serialize/serialize/trait.Decodable.html#tymethod.decode' class='fnname'>decode</a><__DT: <a class="trait" href="../rustc_serialize/serialize/trait.Decoder.html" title="trait rustc_serialize::serialize::Decoder">Decoder</a>>(__arg_0: &mut __DT) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>, __DT::<a class="trait" href="../rustc_serialize/serialize/trait.Decoder.html" title="trait rustc_serialize::serialize::Decoder">Error</a>></code></span></h4>
<div class='docblock'><p>Deserialize a value using a <code>Decoder</code>.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#264-268' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(x: T) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#272-276' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(pair: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#283-331' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.cmp' class="method"><span id='cmp.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code></span></h4>
<div class='docblock'><p>This method returns an <code>Ordering</code> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#333-338' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.partial_cmp' class="method"><span id='partial_cmp.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp' class='fnname'>partial_cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></code></span></h4>
<div class='docblock'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4 id='method.lt' class="method"><span id='lt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt' class='fnname'>lt</a>(&self, other: &Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4 id='method.le' class="method"><span id='le.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le' class='fnname'>le</a>(&self, other: &Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4 id='method.gt' class="method"><span id='gt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt' class='fnname'>gt</a>(&self, other: &Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div><h4 id='method.ge' class="method"><span id='ge.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge' class='fnname'>ge</a>(&self, other: &Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#340-345' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#347' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#351-365' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.hash' class="method"><span id='hash.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a><H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: &mut H)</code></span></h4>
<div class='docblock'><p>Feeds this value into the state given, updating the hasher as necessary.</p>
</div><h4 id='method.hash_slice' class="method"><span id='hash_slice.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a><H>(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: &mut H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></code><div class='since' title='Stable since Rust version 1.3.0'>1.3.0</div></span></h4>
<div class='docblock'><p>Feeds a slice of this type into the state provided.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html" title="trait core::ops::Mul">Mul</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#370-377' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output' class="type"><span id='Output.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator</p>
</div><h4 id='method.mul' class="method"><span id='mul.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>*</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html" title="trait core::ops::Mul">Mul</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#383-392' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><span id='Output.t-1' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator</p>
</div><h4 id='method.mul-1' class="method"><span id='mul.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>*</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html" title="trait core::ops::Mul">Mul</a><&'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#398-407' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><span id='Output.t-2' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator</p>
</div><h4 id='method.mul-2' class="method"><span id='mul.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>*</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, 'b, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html" title="trait core::ops::Mul">Mul</a><&'b <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#422-431' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-3' class="type"><span id='Output.t-3' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator</p>
</div><h4 id='method.mul-3' class="method"><span id='mul.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, rhs: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>*</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Div.html" title="trait core::ops::Div">Div</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#370-377' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-4' class="type"><span id='Output.t-4' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator</p>
</div><h4 id='method.div' class="method"><span id='div.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>/</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Div.html" title="trait core::ops::Div">Div</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#383-392' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-5' class="type"><span id='Output.t-5' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator</p>
</div><h4 id='method.div-1' class="method"><span id='div.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>/</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Div.html" title="trait core::ops::Div">Div</a><&'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#398-407' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-6' class="type"><span id='Output.t-6' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator</p>
</div><h4 id='method.div-2' class="method"><span id='div.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>/</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, 'b, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Div.html" title="trait core::ops::Div">Div</a><&'b <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#435-445' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-7' class="type"><span id='Output.t-7' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator</p>
</div><h4 id='method.div-3' class="method"><span id='div.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, rhs: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>/</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Add.html" title="trait core::ops::Add">Add</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#370-377' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-8' class="type"><span id='Output.t-8' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator</p>
</div><h4 id='method.add' class="method"><span id='add.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>+</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Add.html" title="trait core::ops::Add">Add</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#383-392' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-9' class="type"><span id='Output.t-9' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator</p>
</div><h4 id='method.add-1' class="method"><span id='add.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>+</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Add.html" title="trait core::ops::Add">Add</a><&'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#398-407' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-10' class="type"><span id='Output.t-10' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator</p>
</div><h4 id='method.add-2' class="method"><span id='add.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>+</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, 'b, T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Add.html" title="trait core::ops::Add">Add</a><&'b <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#451-459' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-11' class="type"><span id='Output.t-11' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator</p>
</div><h4 id='method.add-3' class="method"><span id='add.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, rhs: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>+</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html" title="trait core::ops::Sub">Sub</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#370-377' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-12' class="type"><span id='Output.t-12' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator</p>
</div><h4 id='method.sub' class="method"><span id='sub.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>-</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html" title="trait core::ops::Sub">Sub</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#383-392' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-13' class="type"><span id='Output.t-13' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator</p>
</div><h4 id='method.sub-1' class="method"><span id='sub.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>-</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html" title="trait core::ops::Sub">Sub</a><&'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#398-407' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-14' class="type"><span id='Output.t-14' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator</p>
</div><h4 id='method.sub-2' class="method"><span id='sub.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>-</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, 'b, T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html" title="trait core::ops::Sub">Sub</a><&'b <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#451-459' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-15' class="type"><span id='Output.t-15' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator</p>
</div><h4 id='method.sub-3' class="method"><span id='sub.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, rhs: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>-</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html" title="trait core::ops::Rem">Rem</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#370-377' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-16' class="type"><span id='Output.t-16' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator</p>
</div><h4 id='method.rem' class="method"><span id='rem.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>%</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html" title="trait core::ops::Rem">Rem</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#383-392' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-17' class="type"><span id='Output.t-17' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator</p>
</div><h4 id='method.rem-1' class="method"><span id='rem.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>%</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html" title="trait core::ops::Rem">Rem</a><&'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#398-407' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-18' class="type"><span id='Output.t-18' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator</p>
</div><h4 id='method.rem-2' class="method"><span id='rem.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>%</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, 'b, T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html" title="trait core::ops::Rem">Rem</a><&'b <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#451-459' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-19' class="type"><span id='Output.t-19' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator</p>
</div><h4 id='method.rem-3' class="method"><span id='rem.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, rhs: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the <code>%</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html" title="trait core::ops::Neg">Neg</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html" title="trait core::ops::Neg">Neg</a><Output = T>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#472-481' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-20' class="type"><span id='Output.t-20' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator</p>
</div><h4 id='method.neg' class="method"><span id='neg.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html#tymethod.neg' class='fnname'>neg</a>(self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the unary <code>-</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html" title="trait core::ops::Neg">Neg</a> for &'a <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html" title="trait core::ops::Neg">Neg</a><Output = T>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#483-492' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Output-21' class="type"><span id='Output.t-21' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator</p>
</div><h4 id='method.neg-1' class="method"><span id='neg.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Neg.html#tymethod.neg' class='fnname'>neg</a>(self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The method for the unary <code>-</code> operator</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/identities/trait.Zero.html" title="trait num_traits::identities::Zero">Zero</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#495-505' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.zero' class="method"><span id='zero.v' class='invisible'><code>fn <a href='../num_traits/identities/trait.Zero.html#tymethod.zero' class='fnname'>zero</a>() -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>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></p>
</div><h4 id='method.is_zero' class="method"><span id='is_zero.v' class='invisible'><code>fn <a href='../num_traits/identities/trait.Zero.html#tymethod.is_zero' class='fnname'>is_zero</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns <code>true</code> if <code>self</code> is equal to the additive identity.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/identities/trait.One.html" title="trait num_traits::identities::One">One</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#507-512' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.one' class="method"><span id='one.v' class='invisible'><code>fn <a href='../num_traits/identities/trait.One.html#tymethod.one' class='fnname'>one</a>() -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>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></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#514-540' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.FromStrRadixErr' class="type"><span id='FromStrRadixErr.t' class='invisible'><code>type <a href='../num_traits/trait.Num.html#associatedtype.FromStrRadixErr' class="type">FromStrRadixErr</a> = <a class="struct" href="../num_rational/struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a></code></span></h4>
<h4 id='method.from_str_radix' class="method"><span id='from_str_radix.v' class='invisible'><code>fn <a href='../num_traits/trait.Num.html#tymethod.from_str_radix' class='fnname'>from_str_radix</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, radix: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>, <a class="struct" href="../num_rational/struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>></code></span></h4>
<div class='docblock'><p>Parses <code>numer/denom</code> where the numbers are in base <code>radix</code>.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a>> <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#542-583' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.abs' class="method"><span id='abs.v' class='invisible'><code>fn <a href='../num_traits/sign/trait.Signed.html#tymethod.abs' class='fnname'>abs</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Computes the absolute value. <a href="../num_traits/sign/trait.Signed.html#tymethod.abs">Read more</a></p>
</div><h4 id='method.abs_sub' class="method"><span id='abs_sub.v' class='invisible'><code>fn <a href='../num_traits/sign/trait.Signed.html#tymethod.abs_sub' class='fnname'>abs_sub</a>(&self, other: &<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>The positive difference of two numbers. <a href="../num_traits/sign/trait.Signed.html#tymethod.abs_sub">Read more</a></p>
</div><h4 id='method.signum' class="method"><span id='signum.v' class='invisible'><code>fn <a href='../num_traits/sign/trait.Signed.html#tymethod.signum' class='fnname'>signum</a>(&self) -> <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span></h4>
<div class='docblock'><p>Returns the sign of the number. <a href="../num_traits/sign/trait.Signed.html#tymethod.signum">Read more</a></p>
</div><h4 id='method.is_positive' class="method"><span id='is_positive.v' class='invisible'><code>fn <a href='../num_traits/sign/trait.Signed.html#tymethod.is_positive' class='fnname'>is_positive</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if the number is positive and false if the number is zero or negative.</p>
</div><h4 id='method.is_negative' class="method"><span id='is_negative.v' class='invisible'><code>fn <a href='../num_traits/sign/trait.Signed.html#tymethod.is_negative' class='fnname'>is_negative</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>Returns true if the number is negative and false if the number is zero or positive.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="../num_traits/identities/trait.One.html" title="trait num_traits::identities::One">One</a>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#586-597' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Renders as <code>numer/denom</code>. If denom=1, renders as numer.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#599-620' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Err' class="type"><span id='Err.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../num_rational/struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a></code></span></h4>
<div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4 id='method.from_str' class="method"><span id='from_str.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#tymethod.from_str' class='fnname'>from_str</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T>, <a class="struct" href="../num_rational/struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>></code></span></h4>
<div class='docblock'><p>Parses <code>numer/denom</code> or just <code>numer</code>.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><T></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#622-626' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.into' class="method"><span id='into.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="struct" href="../num_bigint/bigint/struct.BigInt.html" title="struct num_bigint::bigint::BigInt">BigInt</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#689-705' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64' class="method"><span id='from_i64.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64' class="method"><span id='from_u64.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32' class="method"><span id='from_f32.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64' class="method"><span id='from_f64.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize' class="method"><span id='from_isize.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8' class="method"><span id='from_i8.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16' class="method"><span id='from_i16.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32' class="method"><span id='from_i32.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize' class="method"><span id='from_usize.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8' class="method"><span id='from_u8.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16' class="method"><span id='from_u16.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32' class="method"><span id='from_u32.v' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-1' class="method"><span id='from_i64.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-1' class="method"><span id='from_u64.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-1' class="method"><span id='from_f32.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-1' class="method"><span id='from_f64.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-1' class="method"><span id='from_isize.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-1' class="method"><span id='from_i8.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-1' class="method"><span id='from_i16.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-1' class="method"><span id='from_i32.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-1' class="method"><span id='from_usize.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-1' class="method"><span id='from_u8.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-1' class="method"><span id='from_u16.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-1' class="method"><span id='from_u32.v-1' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-2' class="method"><span id='from_i64.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-2' class="method"><span id='from_u64.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-2' class="method"><span id='from_f32.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-2' class="method"><span id='from_f64.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-2' class="method"><span id='from_isize.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-2' class="method"><span id='from_i8.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-2' class="method"><span id='from_i16.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-2' class="method"><span id='from_i32.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-2' class="method"><span id='from_usize.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-2' class="method"><span id='from_u8.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-2' class="method"><span id='from_u16.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-2' class="method"><span id='from_u32.v-2' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-3' class="method"><span id='from_i64.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-3' class="method"><span id='from_u64.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-3' class="method"><span id='from_f32.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-3' class="method"><span id='from_f64.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-3' class="method"><span id='from_isize.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-3' class="method"><span id='from_i8.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-3' class="method"><span id='from_i16.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-3' class="method"><span id='from_i32.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-3' class="method"><span id='from_usize.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-3' class="method"><span id='from_u8.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-3' class="method"><span id='from_u16.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-3' class="method"><span id='from_u32.v-3' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-4' class="method"><span id='from_i64.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-4' class="method"><span id='from_u64.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-4' class="method"><span id='from_f32.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-4' class="method"><span id='from_f64.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-4' class="method"><span id='from_isize.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-4' class="method"><span id='from_i8.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-4' class="method"><span id='from_i16.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-4' class="method"><span id='from_i32.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-4' class="method"><span id='from_usize.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-4' class="method"><span id='from_u8.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-4' class="method"><span id='from_u16.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-4' class="method"><span id='from_u32.v-4' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-5' class="method"><span id='from_i64.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-5' class="method"><span id='from_u64.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-5' class="method"><span id='from_f32.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-5' class="method"><span id='from_f64.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-5' class="method"><span id='from_isize.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-5' class="method"><span id='from_i8.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-5' class="method"><span id='from_i16.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-5' class="method"><span id='from_i32.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-5' class="method"><span id='from_usize.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-5' class="method"><span id='from_u8.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-5' class="method"><span id='from_u16.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-5' class="method"><span id='from_u32.v-5' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-6' class="method"><span id='from_i64.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-6' class="method"><span id='from_u64.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-6' class="method"><span id='from_f32.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-6' class="method"><span id='from_f64.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-6' class="method"><span id='from_isize.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-6' class="method"><span id='from_i8.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-6' class="method"><span id='from_i16.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-6' class="method"><span id='from_i32.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-6' class="method"><span id='from_usize.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-6' class="method"><span id='from_u8.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-6' class="method"><span id='from_u16.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-6' class="method"><span id='from_u32.v-6' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-7' class="method"><span id='from_i64.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-7' class="method"><span id='from_u64.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-7' class="method"><span id='from_f32.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-7' class="method"><span id='from_f64.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-7' class="method"><span id='from_isize.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-7' class="method"><span id='from_i8.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-7' class="method"><span id='from_i16.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-7' class="method"><span id='from_i32.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-7' class="method"><span id='from_usize.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-7' class="method"><span id='from_u8.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-7' class="method"><span id='from_u16.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-7' class="method"><span id='from_u32.v-7' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-8' class="method"><span id='from_i64.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-8' class="method"><span id='from_u64.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-8' class="method"><span id='from_f32.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-8' class="method"><span id='from_f64.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-8' class="method"><span id='from_isize.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-8' class="method"><span id='from_i8.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-8' class="method"><span id='from_i16.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-8' class="method"><span id='from_i32.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-8' class="method"><span id='from_usize.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-8' class="method"><span id='from_u8.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-8' class="method"><span id='from_u16.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-8' class="method"><span id='from_u32.v-8' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-9' class="method"><span id='from_i64.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-9' class="method"><span id='from_u64.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-9' class="method"><span id='from_f32.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-9' class="method"><span id='from_f64.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-9' class="method"><span id='from_isize.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-9' class="method"><span id='from_i8.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-9' class="method"><span id='from_i16.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-9' class="method"><span id='from_i32.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-9' class="method"><span id='from_usize.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-9' class="method"><span id='from_u8.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-9' class="method"><span id='from_u16.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-9' class="method"><span id='from_u32.v-9' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="../num_rational/struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_rational/lib.rs.html#709-725' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from_i64-10' class="method"><span id='from_i64.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div><h4 id='method.from_u64-10' class="method"><span id='from_u64.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div><h4 id='method.from_f32-10' class="method"><span id='from_f32.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div><h4 id='method.from_f64-10' class="method"><span id='from_f64.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div><h4 id='method.from_isize-10' class="method"><span id='from_isize.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div><h4 id='method.from_i8-10' class="method"><span id='from_i8.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div><h4 id='method.from_i16-10' class="method"><span id='from_i16.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div><h4 id='method.from_i32-10' class="method"><span id='from_i32.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div><h4 id='method.from_usize-10' class="method"><span id='from_usize.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div><h4 id='method.from_u8-10' class="method"><span id='from_u8.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div><h4 id='method.from_u16-10' class="method"><span id='from_u16.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div><h4 id='method.from_u32-10' class="method"><span id='from_u32.v-10' class='invisible'><code>fn <a href='../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></code></span></h4>
<div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></div></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>⇤</dt>
<dd>Move up in search results</dd>
<dt>⇥</dt>
<dd>Move down in search results</dd>
<dt>⏎</dt>
<dd>Go to active search result</dd>
<dt>+</dt>
<dd>Collapse/expand all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "num_rational";
</script>
<script src="../jquery.js"></script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>