image2aa 0.1.4

Convert image to ASCII Art.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Represents the ratio between 2 numbers."><meta name="keywords" content="rust, rustlang, rust-lang, Ratio"><title>Ratio in num_rational - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css"  id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../num_rational/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct Ratio</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><div class="sidebar-links"><a href="#method.approximate_float">approximate_float</a><a href="#method.ceil">ceil</a><a href="#method.denom">denom</a><a href="#method.floor">floor</a><a href="#method.fract">fract</a><a href="#method.from_integer">from_integer</a><a href="#method.is_integer">is_integer</a><a href="#method.new">new</a><a href="#method.new_raw">new_raw</a><a href="#method.numer">numer</a><a href="#method.pow">pow</a><a href="#method.recip">recip</a><a href="#method.reduced">reduced</a><a href="#method.round">round</a><a href="#method.to_integer">to_integer</a><a href="#method.trunc">trunc</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Add%3C%26%27a%20Ratio%3CT%3E%3E">Add&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-Add%3C%26%27a%20T%3E">Add&lt;&amp;&#39;a T&gt;</a><a href="#impl-Add%3C%26%27b%20Ratio%3CT%3E%3E">Add&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a><a href="#impl-Add%3C%26%27b%20T%3E">Add&lt;&amp;&#39;b T&gt;</a><a href="#impl-Add%3CRatio%3CT%3E%3E">Add&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-Add%3CT%3E">Add&lt;T&gt;</a><a href="#impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E">AddAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-AddAssign%3C%26%27a%20T%3E">AddAssign&lt;&amp;&#39;a T&gt;</a><a href="#impl-AddAssign%3CRatio%3CT%3E%3E">AddAssign&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-AddAssign%3CT%3E">AddAssign&lt;T&gt;</a><a href="#impl-CheckedAdd">CheckedAdd</a><a href="#impl-CheckedDiv">CheckedDiv</a><a href="#impl-CheckedMul">CheckedMul</a><a href="#impl-CheckedSub">CheckedSub</a><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Div%3C%26%27a%20Ratio%3CT%3E%3E">Div&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-Div%3C%26%27a%20T%3E">Div&lt;&amp;&#39;a T&gt;</a><a href="#impl-Div%3C%26%27b%20Ratio%3CT%3E%3E">Div&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a><a href="#impl-Div%3C%26%27b%20T%3E">Div&lt;&amp;&#39;b T&gt;</a><a href="#impl-Div%3CRatio%3CT%3E%3E">Div&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-Div%3CT%3E">Div&lt;T&gt;</a><a href="#impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E">DivAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-DivAssign%3C%26%27a%20T%3E">DivAssign&lt;&amp;&#39;a T&gt;</a><a href="#impl-DivAssign%3CRatio%3CT%3E%3E">DivAssign&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-DivAssign%3CT%3E">DivAssign&lt;T&gt;</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3C(T%2C%20T)%3E">From&lt;(T, T)&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-FromPrimitive">FromPrimitive</a><a href="#impl-FromStr">FromStr</a><a href="#impl-Hash">Hash</a><a href="#impl-Into%3C(T%2C%20T)%3E">Into&lt;(T, T)&gt;</a><a href="#impl-Mul%3C%26%27a%20Ratio%3CT%3E%3E">Mul&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-Mul%3C%26%27a%20T%3E">Mul&lt;&amp;&#39;a T&gt;</a><a href="#impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E">Mul&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a><a href="#impl-Mul%3C%26%27b%20T%3E">Mul&lt;&amp;&#39;b T&gt;</a><a href="#impl-Mul%3CRatio%3CT%3E%3E">Mul&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-Mul%3CT%3E">Mul&lt;T&gt;</a><a href="#impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E">MulAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-MulAssign%3C%26%27a%20T%3E">MulAssign&lt;&amp;&#39;a T&gt;</a><a href="#impl-MulAssign%3CRatio%3CT%3E%3E">MulAssign&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-MulAssign%3CT%3E">MulAssign&lt;T&gt;</a><a href="#impl-Neg">Neg</a><a href="#impl-Num">Num</a><a href="#impl-One">One</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CRatio%3CT%3E%3E">PartialEq&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-PartialOrd%3CRatio%3CT%3E%3E">PartialOrd&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E">Rem&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-Rem%3C%26%27a%20T%3E">Rem&lt;&amp;&#39;a T&gt;</a><a href="#impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E">Rem&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a><a href="#impl-Rem%3C%26%27b%20T%3E">Rem&lt;&amp;&#39;b T&gt;</a><a href="#impl-Rem%3CRatio%3CT%3E%3E">Rem&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-Rem%3CT%3E">Rem&lt;T&gt;</a><a href="#impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E">RemAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-RemAssign%3C%26%27a%20T%3E">RemAssign&lt;&amp;&#39;a T&gt;</a><a href="#impl-RemAssign%3CRatio%3CT%3E%3E">RemAssign&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-RemAssign%3CT%3E">RemAssign&lt;T&gt;</a><a href="#impl-Signed">Signed</a><a href="#impl-Sub%3C%26%27a%20Ratio%3CT%3E%3E">Sub&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-Sub%3C%26%27a%20T%3E">Sub&lt;&amp;&#39;a T&gt;</a><a href="#impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E">Sub&lt;&amp;&#39;b Ratio&lt;T&gt;&gt;</a><a href="#impl-Sub%3C%26%27b%20T%3E">Sub&lt;&amp;&#39;b T&gt;</a><a href="#impl-Sub%3CRatio%3CT%3E%3E">Sub&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-Sub%3CT%3E">Sub&lt;T&gt;</a><a href="#impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E">SubAssign&lt;&amp;&#39;a Ratio&lt;T&gt;&gt;</a><a href="#impl-SubAssign%3C%26%27a%20T%3E">SubAssign&lt;&amp;&#39;a T&gt;</a><a href="#impl-SubAssign%3CRatio%3CT%3E%3E">SubAssign&lt;Ratio&lt;T&gt;&gt;</a><a href="#impl-SubAssign%3CT%3E">SubAssign&lt;T&gt;</a><a href="#impl-Zero">Zero</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-NumAssign">NumAssign</a><a href="#impl-NumAssignOps%3CRhs%3E">NumAssignOps&lt;Rhs&gt;</a><a href="#impl-NumAssignRef">NumAssignRef</a><a href="#impl-NumOps%3CRhs%2C%20Output%3E">NumOps&lt;Rhs, Output&gt;</a><a href="#impl-NumRef">NumRef</a><a href="#impl-RefNum%3CBase%3E">RefNum&lt;Base&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><h2 class="location">Other items in<br><a href="index.html">num_rational</a></h2><div id="sidebar-vars" data-name="Ratio" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></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><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></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">&#x2212;</span>]</a></span><a class="srclink" href="../src/num_rational/lib.rs.html#46-49" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct">pub struct Ratio&lt;T&gt; { /* fields omitted */ }</pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents the ratio between 2 numbers.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#60-225" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(numer: T, denom: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.new" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#63-70" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Creates a new <code>Ratio</code>. Fails if <code>denom</code> is zero.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_integer" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.from_integer" class="fnname">from_integer</a>(t: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.from_integer" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#74-76" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Creates a <code>Ratio</code> representing the integer <code>t</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new_raw" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.new_raw" class="fnname">new_raw</a>(numer: T, denom: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.new_raw" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#80-85" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Creates a <code>Ratio</code> without checking for <code>denom == 0</code> or reducing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_integer" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.to_integer" class="fnname">to_integer</a>(&amp;self) -&gt; T</h4><a href="#method.to_integer" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#89-91" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Converts to an integer, rounding towards zero.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.numer" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.numer" class="fnname">numer</a>&lt;'a&gt;(&amp;'a self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T</h4><a href="#method.numer" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#95-97" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Gets an immutable reference to the numerator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.denom" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.denom" class="fnname">denom</a>&lt;'a&gt;(&amp;'a self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T</h4><a href="#method.denom" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#101-103" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Gets an immutable reference to the denominator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_integer" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.is_integer" class="fnname">is_integer</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_integer" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#107-109" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns true if the rational number is an integer (denominator is 1).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.reduced" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.reduced" class="fnname">reduced</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.reduced" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#135-139" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns a reduced copy of self.</p>
<p>In general, it is not necessary to use this method, as the only
method of procuring a non-reduced fraction is through <code>new_raw</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.recip" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.recip" class="fnname">recip</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.recip" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#145-152" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the reciprocal.</p>
<p>Fails if the <code>Ratio</code> is zero.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.floor" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.floor" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#156-164" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Rounds towards minus infinity.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ceil" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.ceil" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#168-176" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Rounds towards plus infinity.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.round" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.round" class="fnname">round</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.round" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#180-210" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Rounds to the nearest integer. Rounds half-way cases away from zero.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.trunc" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.trunc" class="fnname">trunc</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.trunc" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#214-216" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Rounds towards zero.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fract" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.fract" class="fnname">fract</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.fract" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#222-224" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns the fractional part of a number, with division rounded towards zero.</p>
<p>Satisfies <code>self == self.trunc() + self.fract()</code>.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#227-239" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.pow" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.pow" class="fnname">pow</a>(&amp;self, expon: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.pow" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#230-238" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Raises the <code>Ratio</code> to the power of an exponent.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-2" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a> + <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a> + <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a> + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#965-973" title="goto source code">[src]</a></div></summary><div class="impl-items"><div id="method.approximate_float" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.approximate_float" class="fnname">approximate_float</a>&lt;F:&nbsp;<a class="trait" href="../num_traits/float/trait.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>&gt;(f: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</h4><a href="#method.approximate_float" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#966-972" title="goto source code">[src]</a></div></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Add%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-28" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-28" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Add%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-29" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-29" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3C%26%27b%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Add%3C%26%27b%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-24" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-24" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, other: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3C%26%27b%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Add%3C%26%27b%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-25" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-25" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Add%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-26" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-26" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3CRatio%3CT%3E%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Add%3CRatio%3CT%3E%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-30" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-30" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Add%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-27" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-27" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, other: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Add%3CT%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Add%3CT%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-31" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-31" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add" class="fnname">add</a>(self, rhs: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.add-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#636" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-AddAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#475" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add_assign-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign" class="fnname">add_assign</a>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.add_assign-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#475" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-AddAssign%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-AddAssign%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#475" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add_assign-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign" class="fnname">add_assign</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T)</h4><a href="#method.add_assign-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#475" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-AddAssign%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-AddAssign%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#377-384" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add_assign" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign" class="fnname">add_assign</a>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.add_assign" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#378-383" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-AddAssign%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-AddAssign%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#421-426" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.add_assign-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign" class="fnname">add_assign</a>(&amp;mut self, other: T)</h4><a href="#method.add_assign-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#422-425" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>+=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-CheckedAdd" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedAdd.html" title="trait num_traits::ops::checked::CheckedAdd">CheckedAdd</a>&gt; <a class="trait" href="../num_traits/ops/checked/trait.CheckedAdd.html" title="trait num_traits::ops::checked::CheckedAdd">CheckedAdd</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-CheckedAdd" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#691" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.checked_add" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedAdd.html#tymethod.checked_add" class="fnname">checked_add</a>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</h4><a href="#method.checked_add" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#691" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Adds two numbers, checking for overflow. If overflow happens, <code>None</code> is
returned. <a href="../num_traits/ops/checked/trait.CheckedAdd.html#tymethod.checked_add">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-CheckedDiv" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../num_traits/ops/checked/trait.CheckedDiv.html" title="trait num_traits::ops::checked::CheckedDiv">CheckedDiv</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a>,&nbsp;</span></h3><a href="#impl-CheckedDiv" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#661-673" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.checked_div" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedDiv.html#tymethod.checked_div" class="fnname">checked_div</a>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</h4><a href="#method.checked_div" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#665-672" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Divides two numbers, checking for underflow, overflow and division by
zero. If any of that happens, <code>None</code> is returned. <a href="../num_traits/ops/checked/trait.CheckedDiv.html#tymethod.checked_div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-CheckedMul" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a>,&nbsp;</span></h3><a href="#impl-CheckedMul" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#650-658" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.checked_mul" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedMul.html#tymethod.checked_mul" class="fnname">checked_mul</a>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</h4><a href="#method.checked_mul" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#654-657" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Multiplies two numbers, checking for underflow or overflow. If underflow
or overflow happens, <code>None</code> is returned. <a href="../num_traits/ops/checked/trait.CheckedMul.html#tymethod.checked_mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-CheckedSub" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedSub.html" title="trait num_traits::ops::checked::CheckedSub">CheckedSub</a>&gt; <a class="trait" href="../num_traits/ops/checked/trait.CheckedSub.html" title="trait num_traits::ops::checked::CheckedSub">CheckedSub</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-CheckedSub" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#694" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.checked_sub" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/ops/checked/trait.CheckedSub.html#tymethod.checked_sub" class="fnname">checked_sub</a>(&amp;self, rhs: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt;</h4><a href="#method.checked_sub" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#694" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Subtracts two numbers, checking for underflow. If underflow happens,
<code>None</code> is returned. <a href="../num_traits/ops/checked/trait.CheckedSub.html#tymethod.checked_sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Clone" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#43" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.clone" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#43" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self)</h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Debug" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#43" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.54.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4><a href="#method.fmt" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#43" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Display" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#810-821" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.54.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4><a href="#method.fmt-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#814-820" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Renders as <code>numer/denom</code>. If denom=1, renders as numer.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Div%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-4" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-4" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Div%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-5" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-5" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3C%26%27b%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Div%3C%26%27b%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3C%26%27b%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Div%3C%26%27b%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-1" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-1" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Div%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-2" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-2" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3CRatio%3CT%3E%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Div%3CRatio%3CT%3E%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#588-598" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-6" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-6" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#594-597" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Div%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-3" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-3" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, other: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#586" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Div%3CT%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Div%3CT%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#600-610" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-7" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-7" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div" class="fnname">div</a>(self, rhs: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.div-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#606-609" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-DivAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#476" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_assign-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign" class="fnname">div_assign</a>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.div_assign-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#476" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-DivAssign%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-DivAssign%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#476" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_assign-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign" class="fnname">div_assign</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T)</h4><a href="#method.div_assign-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#476" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-DivAssign%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-DivAssign%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#386-392" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_assign" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign" class="fnname">div_assign</a>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.div_assign" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#387-391" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-DivAssign%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-DivAssign%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#428-433" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_assign-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign" class="fnname">div_assign</a>(&amp;mut self, other: T)</h4><a href="#method.div_assign-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#429-432" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>/=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-From%3C(T%2C%20T)%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-From%3C(T%2C%20T)%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#275-279" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(pair: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.from-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#276-278" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-From%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#268-272" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(x: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.from" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#269-271" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i8.html">i8</a>&gt;</h3><a href="#impl-FromPrimitive" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#953" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#953" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#953" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#953" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#953" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-1" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i16.html">i16</a>&gt;</h3><a href="#impl-FromPrimitive-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#954" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#954" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#954" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#954" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#954" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-1" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-2" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i32.html">i32</a>&gt;</h3><a href="#impl-FromPrimitive-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#955" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#955" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#955" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#955" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#955" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-2" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-3" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i64.html">i64</a>&gt;</h3><a href="#impl-FromPrimitive-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#956" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#956" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#956" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#956" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#956" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-3" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-4" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.isize.html">isize</a>&gt;</h3><a href="#impl-FromPrimitive-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#957" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#957" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#957" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#957" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#957" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-4" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-5" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u8.html">u8</a>&gt;</h3><a href="#impl-FromPrimitive-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#959" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#959" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#959" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#959" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#959" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-5" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-6" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u16.html">u16</a>&gt;</h3><a href="#impl-FromPrimitive-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#960" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#960" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#960" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#960" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#960" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-6" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-7" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u32.html">u32</a>&gt;</h3><a href="#impl-FromPrimitive-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#961" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#961" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#961" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#961" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#961" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-7" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-8" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u64.html">u64</a>&gt;</h3><a href="#impl-FromPrimitive-8" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#962" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-8" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#962" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-8" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#962" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-8" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#962" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-8" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#962" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-8" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromPrimitive-9" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a>&gt;</h3><a href="#impl-FromPrimitive-9" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#963" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i64-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i64-9" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#963" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u64-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u64-9" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#963" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f32-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f32-9" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#963" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_f64-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_f64-9" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#963" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_isize-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_isize-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#415" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i8-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i8-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#422" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i16-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i16-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#429" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i32-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i32-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#436" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_i128-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fnname">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_i128-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#453" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_usize-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_usize-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#460" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u8-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u8-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#467" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u16-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u16-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#474" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u32-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u32-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#481" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_u128-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fnname">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</h4><a href="#method.from_u128-9" class="anchor"></a><a class="srclink" href="../src/num_traits/cast.rs.html#498" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-FromStr" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a> + <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-FromStr" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#823-844" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_str" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/str/traits/trait.FromStr.html#tymethod.from_str" class="fnname">from_str</a>(s: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;, <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>&gt;</h4><a href="#method.from_str" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#827-843" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Parses <code>numer/denom</code> or just <code>numer</code>.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="associatedtype.Err" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/str/traits/trait.FromStr.html#associatedtype.Err" class="type">Err</a> = <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a></h4><a href="#associatedtype.Err" class="anchor"></a></div></summary><div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Hash" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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/1.54.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Hash" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#354-368" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.hash" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a>&lt;H:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;mut </a>H)</h4><a href="#method.hash" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#355-367" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.hash_slice" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a>&lt;H&gt;(data: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;mut </a>H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></h4><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span><a href="#method.hash_slice" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/hash/mod.rs.html#211-213" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.54.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Into%3C(T%2C%20T)%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Into%3C(T%2C%20T)%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#846-850" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>T, T<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.into" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#847-849" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Mul%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-36" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-36" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Mul%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-37" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-37" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Mul%3C%26%27b%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-32" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-32" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3C%26%27b%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Mul%3C%26%27b%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-33" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-33" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Mul%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-34" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-34" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3CRatio%3CT%3E%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Mul%3CRatio%3CT%3E%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#564-573" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-38" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-38" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#569-572" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Mul%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-35" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-35" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, other: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#562" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Mul%3CT%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Mul%3CT%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#575-584" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-39" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-39" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fnname">mul</a>(self, rhs: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.mul-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#580-583" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-MulAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#477" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul_assign-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign" class="fnname">mul_assign</a>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.mul_assign-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#477" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAssign%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-MulAssign%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#477" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul_assign-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign" class="fnname">mul_assign</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T)</h4><a href="#method.mul_assign-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#477" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAssign%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-MulAssign%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#394-400" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul_assign" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign" class="fnname">mul_assign</a>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.mul_assign" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#395-399" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAssign%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-MulAssign%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#435-440" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mul_assign-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign" class="fnname">mul_assign</a>(&amp;mut self, other: T)</h4><a href="#method.mul_assign-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#436-439" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>*=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Neg" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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/1.54.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt;,&nbsp;</span></h3><a href="#impl-Neg" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#696-705" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-40" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-40" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.neg" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html#tymethod.neg" class="fnname">neg</a>(self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.neg" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#702-704" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Neg-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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/1.54.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt;,&nbsp;</span></h3><a href="#impl-Neg-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#707-716" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-41" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-41" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.neg-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html#tymethod.neg" class="fnname">neg</a>(self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.neg-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#713-715" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Num" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Num" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#738-764" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_str_radix" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/trait.Num.html#tymethod.from_str_radix" class="fnname">from_str_radix</a>(s: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.str.html">str</a>, radix: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;, <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a>&gt;</h4><a href="#method.from_str_radix" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#742-763" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Parses <code>numer/denom</code> where the numbers are in base <code>radix</code>.</p>
</div></details><div id="associatedtype.FromStrRadixErr" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="../num_traits/trait.Num.html#associatedtype.FromStrRadixErr" class="type">FromStrRadixErr</a> = <a class="struct" href="struct.ParseRatioError.html" title="struct num_rational::ParseRatioError">ParseRatioError</a></h4><a href="#associatedtype.FromStrRadixErr" class="anchor"></a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-One" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="../num_traits/identities/trait.One.html" title="trait num_traits::identities::One">One</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-One" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#731-736" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.one" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#tymethod.one" class="fnname">one</a>() -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.one" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#733-735" title="goto source code">[src]</a></div></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_one" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#method.set_one" class="fnname">set_one</a>(&amp;mut self)</h4><a href="#method.set_one" class="anchor"></a><a class="srclink" href="../src/num_traits/identities.rs.html#102" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Sets <code>self</code> to the multiplicative identity element of <code>Self</code>, <code>1</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_one" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#method.is_one" class="fnname">is_one</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;Self&gt;,&nbsp;</span></h4><a href="#method.is_one" class="anchor"></a><a class="srclink" href="../src/num_traits/identities.rs.html#112-114" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns <code>true</code> if <code>self</code> is equal to the multiplicative identity. <a href="../num_traits/identities/trait.One.html#method.is_one">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Ord" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Ord" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#286-334" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.cmp" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4><a href="#method.cmp" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#288-333" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/1.54.0/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.max" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -&gt; Self</h4><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.max" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#738-740" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.min" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -&gt; Self</h4><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.min" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#758-760" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clamp" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#method.clamp" class="fnname">clamp</a>(self, min: Self, max: Self) -&gt; Self</h4><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span><a href="#method.clamp" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#783-785" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-PartialEq%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-PartialEq%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#343-348" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.eq" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#345-347" title="goto source code">[src]</a></div></summary><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/1.54.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#213" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-PartialOrd%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-PartialOrd%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#336-341" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.partial_cmp" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fnname">partial_cmp</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.54.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;</h4><a href="#method.partial_cmp" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#338-340" title="goto source code">[src]</a></div></summary><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/1.54.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lt" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.lt" class="fnname">lt</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.lt" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#978" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.le" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.le" class="fnname">le</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.le" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#997" title="goto source code">[src]</a></div></summary><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>&lt;=</code>
operator. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gt" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.gt" class="fnname">gt</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.gt" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#1019" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ge" class="method trait-impl has-srclink"><h4 class="code-header"><div class="code-attribute">#[must_use]</div>fn <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.ge" class="fnname">ge</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ge" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/cmp.rs.html#1038" title="goto source code">[src]</a></div></summary><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>&gt;=</code>
operator. <a href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Rem%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-12" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-12" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Rem%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-13" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-13" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Rem%3C%26%27b%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-8" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-8" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, other: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3C%26%27b%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Rem%3C%26%27b%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-9" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-9" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Rem%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-10" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-10" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3CRatio%3CT%3E%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Rem%3CRatio%3CT%3E%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-14" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-14" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Rem%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-11" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-11" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, other: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Rem%3CT%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Rem%3CT%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-15" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-15" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fnname">rem</a>(self, rhs: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.rem-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#638" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-RemAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#478" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem_assign-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign" class="fnname">rem_assign</a>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.rem_assign-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#478" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RemAssign%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-RemAssign%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#478" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem_assign-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign" class="fnname">rem_assign</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T)</h4><a href="#method.rem_assign-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#478" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RemAssign%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-RemAssign%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#402-409" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem_assign" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign" class="fnname">rem_assign</a>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.rem_assign" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#403-408" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RemAssign%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-RemAssign%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#443-448" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.rem_assign-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign" class="fnname">rem_assign</a>(&amp;mut self, other: T)</h4><a href="#method.rem_assign-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#444-447" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>%=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Signed" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Signed" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#766-807" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.abs" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.abs" class="fnname">abs</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.abs" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#768-774" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Computes the absolute value. <a href="../num_traits/sign/trait.Signed.html#tymethod.abs">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.abs_sub" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.abs_sub" class="fnname">abs_sub</a>(&amp;self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.abs_sub" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#777-783" title="goto source code">[src]</a></div></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.signum" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.signum" class="fnname">signum</a>(&amp;self) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.signum" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#786-794" title="goto source code">[src]</a></div></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_positive" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.is_positive" class="fnname">is_positive</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_positive" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#797-800" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns true if the number is positive and false if the number is zero or negative.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_negative" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/sign/trait.Signed.html#tymethod.is_negative" class="fnname">is_negative</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_negative" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#803-806" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns true if the number is negative and false if the number is zero or positive.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Sub%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-20" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-20" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-4" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Sub%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-21" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-21" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-5" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;&amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Sub%3C%26%27b%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-16" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-16" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, other: &amp;'b <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3C%26%27b%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Sub%3C%26%27b%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-17" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-17" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'b </a>T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Sub%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-18" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-18" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3CRatio%3CT%3E%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Sub%3CRatio%3CT%3E%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-22" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-22" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, rhs: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-6" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;T&gt; for &amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/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>,&nbsp;</span></h3><a href="#impl-Sub%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-19" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-19" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, other: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Sub%3CT%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Sub%3CT%3E-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-23" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="type">Output</a> = <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#associatedtype.Output-23" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fnname">sub</a>(self, rhs: T) -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.sub-7" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#637" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;&amp;'a <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-SubAssign%3C%26%27a%20Ratio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#479" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub_assign-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign" class="fnname">sub_assign</a>(&amp;mut self, other: &amp;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.sub_assign-2" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#479" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-SubAssign%3C%26%27a%20T%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-SubAssign%3C%26%27a%20T%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#479" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub_assign-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign" class="fnname">sub_assign</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T)</h4><a href="#method.sub_assign-3" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#479" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-SubAssign%3CRatio%3CT%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;<a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-SubAssign%3CRatio%3CT%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#411-418" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub_assign" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign" class="fnname">sub_assign</a>(&amp;mut self, other: <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;)</h4><a href="#method.sub_assign" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#412-417" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-SubAssign%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;T&gt; for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-SubAssign%3CT%3E" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#451-456" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.sub_assign-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign" class="fnname">sub_assign</a>(&amp;mut self, other: T)</h4><a href="#method.sub_assign-1" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#452-455" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the <code>-=</code> operation. <a href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Zero" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="../num_traits/identities/trait.Zero.html" title="trait num_traits::identities::Zero">Zero</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Zero" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#719-729" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.zero" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#tymethod.zero" class="fnname">zero</a>() -&gt; <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h4><a href="#method.zero" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#721-723" title="goto source code">[src]</a></div></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_zero" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#tymethod.is_zero" class="fnname">is_zero</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_zero" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#726-728" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Returns <code>true</code> if <code>self</code> is equal to the additive identity.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.set_zero" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#method.set_zero" class="fnname">set_zero</a>(&amp;mut self)</h4><a href="#method.set_zero" class="anchor"></a><a class="srclink" href="../src/num_traits/identities.rs.html#23" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Sets <code>self</code> to the additive identity element of <code>Self</code>, <code>0</code>.</p>
</div></details></div></details><div id="impl-Copy" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#43" title="goto source code">[src]</a></div><div id="impl-Eq" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.54.0/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>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt;</h3><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/num_rational/lib.rs.html#350" title="goto source code">[src]</a></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,&nbsp;</span></h3><a href="#impl-RefUnwindSafe" class="anchor"></a></div><div id="impl-Send" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></h3><a href="#impl-Send" class="anchor"></a></div><div id="impl-Sync" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></h3><a href="#impl-Sync" class="anchor"></a></div><div id="impl-Unpin" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></h3><a href="#impl-Unpin" class="anchor"></a></div><div id="impl-UnwindSafe" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Ratio.html" title="struct num_rational::Ratio">Ratio</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,&nbsp;</span></h3><a href="#impl-UnwindSafe" class="anchor"></a></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Any" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/any.rs.html#131-135" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.54.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4><a href="#method.type_id" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/any.rs.html#132" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.54.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>T</h4><a href="#method.borrow" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/borrow.rs.html#210" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.54.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/borrow.rs.html#216-220" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow_mut" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;mut </a>T</h4><a href="#method.borrow_mut" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/borrow.rs.html#217" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.54.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-From%3CT%3E-1" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3><a href="#impl-From%3CT%3E-1" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#544-548" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-2" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</h4><a href="#method.from-2" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#545" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Into%3CU%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></h3><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#533-540" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into-1" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</h4><a href="#method.into-1" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#537" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-ToOwned" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></h3><a href="#impl-ToOwned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/alloc/borrow.rs.html#84-96" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Owned" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</h4><a href="#associatedtype.Owned" class="anchor"></a></div></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_owned" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&amp;self) -&gt; T</h4><a href="#method.to_owned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.54.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_into" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;mut </a>T)</h4><a href="#method.clone_into" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/alloc/borrow.rs.html#93" title="goto source code">[src]</a></div></summary><div class="item-info"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.54.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-ToString" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3><a href="#impl-ToString" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/alloc/string.rs.html#2372-2386" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_string" class="method trait-impl has-srclink"><h4 class="code-header">pub default fn <a href="https://doc.rust-lang.org/1.54.0/alloc/string/trait.ToString.html#tymethod.to_string" class="fnname">to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.54.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4><a href="#method.to_string" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/alloc/string.rs.html#2378" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.54.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-TryFrom%3CU%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></h3><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#581-590" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4><a href="#associatedtype.Error" class="anchor"></a></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_from" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4><a href="#method.try_from" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#587" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-TryInto%3CU%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></h3><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#567-576" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-1" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4><a href="#associatedtype.Error-1" class="anchor"></a></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_into" class="method trait-impl has-srclink"><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4><a href="#method.try_into" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/1.54.0/src/core/convert/mod.rs.html#573" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><div id="impl-NumAssign" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a>&lt;T&gt;,&nbsp;</span></h3><a href="#impl-NumAssign" class="anchor"></a><a class="srclink" href="../src/num_traits/lib.rs.html#150" title="goto source code">[src]</a></div><div id="impl-NumAssignOps%3CRhs%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T, Rhs&gt; <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a>&lt;Rhs&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;Rhs&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;Rhs&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a>&lt;Rhs&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a>&lt;Rhs&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a>&lt;Rhs&gt;,&nbsp;</span></h3><a href="#impl-NumAssignOps%3CRhs%3E" class="anchor"></a><a class="srclink" href="../src/num_traits/lib.rs.html#141-144" title="goto source code">[src]</a></div><div id="impl-NumAssignRef" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../num_traits/trait.NumAssignRef.html" title="trait num_traits::NumAssignRef">NumAssignRef</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> + for&lt;'r&gt; <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'r </a>T&gt;,&nbsp;</span></h3><a href="#impl-NumAssignRef" class="anchor"></a><a class="srclink" href="../src/num_traits/lib.rs.html#157" title="goto source code">[src]</a></div><div id="impl-NumOps%3CRhs%2C%20Output%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T, Rhs, Output&gt; <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;Rhs, Output&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;Rhs, Output = Output&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;Rhs, Output = Output&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>&lt;Rhs, Output = Output&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Rhs, Output = Output&gt; + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>&lt;Rhs, Output = Output&gt;,&nbsp;</span></h3><a href="#impl-NumOps%3CRhs%2C%20Output%3E" class="anchor"></a><a class="srclink" href="../src/num_traits/lib.rs.html#110-117" title="goto source code">[src]</a></div><div id="impl-NumRef" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="../num_traits/trait.NumRef.html" title="trait num_traits::NumRef">NumRef</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + for&lt;'r&gt; <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'r </a>T, T&gt;,&nbsp;</span></h3><a href="#impl-NumRef" class="anchor"></a><a class="srclink" href="../src/num_traits/lib.rs.html#124" title="goto source code">[src]</a></div><div id="impl-RefNum%3CBase%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;T, Base&gt; <a class="trait" href="../num_traits/trait.RefNum.html" title="trait num_traits::RefNum">RefNum</a>&lt;Base&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;Base, Base&gt; + for&lt;'r&gt; <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'r </a>Base, Base&gt;,&nbsp;</span></h3><a href="#impl-RefNum%3CBase%3E" class="anchor"></a><a class="srclink" href="../src/num_traits/lib.rs.html#131" title="goto source code">[src]</a></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_rational" data-search-index-js="../search-index.js" data-search-js="../search.js"></div><script src="../main.js"></script></body></html>