-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathstruct.bf16.html
430 lines (411 loc) · 366 KB
/
struct.bf16.html
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
<!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="A 16-bit floating point type implementing the `bfloat16` format."><title>bf16 in half - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-46132b98.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="half" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0 (4d91de4e4 2025-02-17)" data-channel="1.85.0" data-search-js="search-75f5ac3e.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../half/index.html">half</a><span class="version">2.6.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">bf16</a></h2><h3><a href="#fields">Tuple Fields</a></h3><ul class="block structfield"><li><a href="#structfield.0" title="0">0</a></li></ul><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.DIGITS" title="DIGITS">DIGITS</a></li><li><a href="#associatedconstant.E" title="E">E</a></li><li><a href="#associatedconstant.EPSILON" title="EPSILON">EPSILON</a></li><li><a href="#associatedconstant.FRAC_1_PI" title="FRAC_1_PI">FRAC_1_PI</a></li><li><a href="#associatedconstant.FRAC_1_SQRT_2" title="FRAC_1_SQRT_2">FRAC_1_SQRT_2</a></li><li><a href="#associatedconstant.FRAC_2_PI" title="FRAC_2_PI">FRAC_2_PI</a></li><li><a href="#associatedconstant.FRAC_2_SQRT_PI" title="FRAC_2_SQRT_PI">FRAC_2_SQRT_PI</a></li><li><a href="#associatedconstant.FRAC_PI_2" title="FRAC_PI_2">FRAC_PI_2</a></li><li><a href="#associatedconstant.FRAC_PI_3" title="FRAC_PI_3">FRAC_PI_3</a></li><li><a href="#associatedconstant.FRAC_PI_4" title="FRAC_PI_4">FRAC_PI_4</a></li><li><a href="#associatedconstant.FRAC_PI_6" title="FRAC_PI_6">FRAC_PI_6</a></li><li><a href="#associatedconstant.FRAC_PI_8" title="FRAC_PI_8">FRAC_PI_8</a></li><li><a href="#associatedconstant.INFINITY" title="INFINITY">INFINITY</a></li><li><a href="#associatedconstant.LN_10" title="LN_10">LN_10</a></li><li><a href="#associatedconstant.LN_2" title="LN_2">LN_2</a></li><li><a href="#associatedconstant.LOG10_2" title="LOG10_2">LOG10_2</a></li><li><a href="#associatedconstant.LOG10_E" title="LOG10_E">LOG10_E</a></li><li><a href="#associatedconstant.LOG2_10" title="LOG2_10">LOG2_10</a></li><li><a href="#associatedconstant.LOG2_E" title="LOG2_E">LOG2_E</a></li><li><a href="#associatedconstant.MANTISSA_DIGITS" title="MANTISSA_DIGITS">MANTISSA_DIGITS</a></li><li><a href="#associatedconstant.MAX" title="MAX">MAX</a></li><li><a href="#associatedconstant.MAX_10_EXP" title="MAX_10_EXP">MAX_10_EXP</a></li><li><a href="#associatedconstant.MAX_EXP" title="MAX_EXP">MAX_EXP</a></li><li><a href="#associatedconstant.MAX_SUBNORMAL" title="MAX_SUBNORMAL">MAX_SUBNORMAL</a></li><li><a href="#associatedconstant.MIN" title="MIN">MIN</a></li><li><a href="#associatedconstant.MIN_10_EXP" title="MIN_10_EXP">MIN_10_EXP</a></li><li><a href="#associatedconstant.MIN_EXP" title="MIN_EXP">MIN_EXP</a></li><li><a href="#associatedconstant.MIN_POSITIVE" title="MIN_POSITIVE">MIN_POSITIVE</a></li><li><a href="#associatedconstant.MIN_POSITIVE_SUBNORMAL" title="MIN_POSITIVE_SUBNORMAL">MIN_POSITIVE_SUBNORMAL</a></li><li><a href="#associatedconstant.NAN" title="NAN">NAN</a></li><li><a href="#associatedconstant.NEG_INFINITY" title="NEG_INFINITY">NEG_INFINITY</a></li><li><a href="#associatedconstant.NEG_ONE" title="NEG_ONE">NEG_ONE</a></li><li><a href="#associatedconstant.NEG_ZERO" title="NEG_ZERO">NEG_ZERO</a></li><li><a href="#associatedconstant.ONE" title="ONE">ONE</a></li><li><a href="#associatedconstant.PI" title="PI">PI</a></li><li><a href="#associatedconstant.RADIX" title="RADIX">RADIX</a></li><li><a href="#associatedconstant.SQRT_2" title="SQRT_2">SQRT_2</a></li><li><a href="#associatedconstant.ZERO" title="ZERO">ZERO</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.clamp" title="clamp">clamp</a></li><li><a href="#method.classify" title="classify">classify</a></li><li><a href="#method.copysign" title="copysign">copysign</a></li><li><a href="#method.from_be_bytes" title="from_be_bytes">from_be_bytes</a></li><li><a href="#method.from_bits" title="from_bits">from_bits</a></li><li><a href="#method.from_f32" title="from_f32">from_f32</a></li><li><a href="#method.from_f32_const" title="from_f32_const">from_f32_const</a></li><li><a href="#method.from_f64" title="from_f64">from_f64</a></li><li><a href="#method.from_f64_const" title="from_f64_const">from_f64_const</a></li><li><a href="#method.from_le_bytes" title="from_le_bytes">from_le_bytes</a></li><li><a href="#method.from_ne_bytes" title="from_ne_bytes">from_ne_bytes</a></li><li><a href="#method.is_finite" title="is_finite">is_finite</a></li><li><a href="#method.is_infinite" title="is_infinite">is_infinite</a></li><li><a href="#method.is_nan" title="is_nan">is_nan</a></li><li><a href="#method.is_normal" title="is_normal">is_normal</a></li><li><a href="#method.is_sign_negative" title="is_sign_negative">is_sign_negative</a></li><li><a href="#method.is_sign_positive" title="is_sign_positive">is_sign_positive</a></li><li><a href="#method.max" title="max">max</a></li><li><a href="#method.min" title="min">min</a></li><li><a href="#method.signum" title="signum">signum</a></li><li><a href="#method.to_be_bytes" title="to_be_bytes">to_be_bytes</a></li><li><a href="#method.to_bits" title="to_bits">to_bits</a></li><li><a href="#method.to_f32" title="to_f32">to_f32</a></li><li><a href="#method.to_f32_const" title="to_f32_const">to_f32_const</a></li><li><a href="#method.to_f64" title="to_f64">to_f64</a></li><li><a href="#method.to_f64_const" title="to_f64_const">to_f64_const</a></li><li><a href="#method.to_le_bytes" title="to_le_bytes">to_le_bytes</a></li><li><a href="#method.to_ne_bytes" title="to_ne_bytes">to_ne_bytes</a></li><li><a href="#method.total_cmp" title="total_cmp">total_cmp</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Add-for-bf16" title="Add">Add</a></li><li><a href="#impl-Add%3C%26bf16%3E-for-%26bf16" title="Add<&bf16>">Add<&bf16></a></li><li><a href="#impl-Add%3C%26bf16%3E-for-bf16" title="Add<&bf16>">Add<&bf16></a></li><li><a href="#impl-Add%3Cbf16%3E-for-%26bf16" title="Add<bf16>">Add<bf16></a></li><li><a href="#impl-AddAssign-for-bf16" title="AddAssign">AddAssign</a></li><li><a href="#impl-AddAssign%3C%26bf16%3E-for-bf16" title="AddAssign<&bf16>">AddAssign<&bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-bf16" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-f16" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-f32" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-f64" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-i16" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-i32" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-i64" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-i8" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-isize" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-u16" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-u32" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-u64" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-u8" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cbf16%3E-for-usize" title="AsPrimitive<bf16>">AsPrimitive<bf16></a></li><li><a href="#impl-AsPrimitive%3Cf16%3E-for-bf16" title="AsPrimitive<f16>">AsPrimitive<f16></a></li><li><a href="#impl-AsPrimitive%3Cf32%3E-for-bf16" title="AsPrimitive<f32>">AsPrimitive<f32></a></li><li><a href="#impl-AsPrimitive%3Cf64%3E-for-bf16" title="AsPrimitive<f64>">AsPrimitive<f64></a></li><li><a href="#impl-AsPrimitive%3Ci16%3E-for-bf16" title="AsPrimitive<i16>">AsPrimitive<i16></a></li><li><a href="#impl-AsPrimitive%3Ci32%3E-for-bf16" title="AsPrimitive<i32>">AsPrimitive<i32></a></li><li><a href="#impl-AsPrimitive%3Ci64%3E-for-bf16" title="AsPrimitive<i64>">AsPrimitive<i64></a></li><li><a href="#impl-AsPrimitive%3Ci8%3E-for-bf16" title="AsPrimitive<i8>">AsPrimitive<i8></a></li><li><a href="#impl-AsPrimitive%3Cisize%3E-for-bf16" title="AsPrimitive<isize>">AsPrimitive<isize></a></li><li><a href="#impl-AsPrimitive%3Cu16%3E-for-bf16" title="AsPrimitive<u16>">AsPrimitive<u16></a></li><li><a href="#impl-AsPrimitive%3Cu32%3E-for-bf16" title="AsPrimitive<u32>">AsPrimitive<u32></a></li><li><a href="#impl-AsPrimitive%3Cu64%3E-for-bf16" title="AsPrimitive<u64>">AsPrimitive<u64></a></li><li><a href="#impl-AsPrimitive%3Cu8%3E-for-bf16" title="AsPrimitive<u8>">AsPrimitive<u8></a></li><li><a href="#impl-AsPrimitive%3Cusize%3E-for-bf16" title="AsPrimitive<usize>">AsPrimitive<usize></a></li><li><a href="#impl-Binary-for-bf16" title="Binary">Binary</a></li><li><a href="#impl-Bounded-for-bf16" title="Bounded">Bounded</a></li><li><a href="#impl-Clone-for-bf16" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-bf16" title="Copy">Copy</a></li><li><a href="#impl-Debug-for-bf16" title="Debug">Debug</a></li><li><a href="#impl-Default-for-bf16" title="Default">Default</a></li><li><a href="#impl-Display-for-bf16" title="Display">Display</a></li><li><a href="#impl-Div-for-bf16" title="Div">Div</a></li><li><a href="#impl-Div%3C%26bf16%3E-for-%26bf16" title="Div<&bf16>">Div<&bf16></a></li><li><a href="#impl-Div%3C%26bf16%3E-for-bf16" title="Div<&bf16>">Div<&bf16></a></li><li><a href="#impl-Div%3Cbf16%3E-for-%26bf16" title="Div<bf16>">Div<bf16></a></li><li><a href="#impl-DivAssign-for-bf16" title="DivAssign">DivAssign</a></li><li><a href="#impl-DivAssign%3C%26bf16%3E-for-bf16" title="DivAssign<&bf16>">DivAssign<&bf16></a></li><li><a href="#impl-Float-for-bf16" title="Float">Float</a></li><li><a href="#impl-FloatConst-for-bf16" title="FloatConst">FloatConst</a></li><li><a href="#impl-FloatCore-for-bf16" title="FloatCore">FloatCore</a></li><li><a href="#impl-From%3Cbf16%3E-for-f32" title="From<bf16>">From<bf16></a></li><li><a href="#impl-From%3Cbf16%3E-for-f64" title="From<bf16>">From<bf16></a></li><li><a href="#impl-From%3Ci8%3E-for-bf16" title="From<i8>">From<i8></a></li><li><a href="#impl-From%3Cu8%3E-for-bf16" title="From<u8>">From<u8></a></li><li><a href="#impl-FromBytes-for-bf16" title="FromBytes">FromBytes</a></li><li><a href="#impl-FromPrimitive-for-bf16" title="FromPrimitive">FromPrimitive</a></li><li><a href="#impl-FromStr-for-bf16" title="FromStr">FromStr</a></li><li><a href="#impl-LowerExp-for-bf16" title="LowerExp">LowerExp</a></li><li><a href="#impl-LowerHex-for-bf16" title="LowerHex">LowerHex</a></li><li><a href="#impl-Mul-for-bf16" title="Mul">Mul</a></li><li><a href="#impl-Mul%3C%26bf16%3E-for-%26bf16" title="Mul<&bf16>">Mul<&bf16></a></li><li><a href="#impl-Mul%3C%26bf16%3E-for-bf16" title="Mul<&bf16>">Mul<&bf16></a></li><li><a href="#impl-Mul%3Cbf16%3E-for-%26bf16" title="Mul<bf16>">Mul<bf16></a></li><li><a href="#impl-MulAssign-for-bf16" title="MulAssign">MulAssign</a></li><li><a href="#impl-MulAssign%3C%26bf16%3E-for-bf16" title="MulAssign<&bf16>">MulAssign<&bf16></a></li><li><a href="#impl-Neg-for-%26bf16" title="Neg">Neg</a></li><li><a href="#impl-Neg-for-bf16" title="Neg">Neg</a></li><li><a href="#impl-Num-for-bf16" title="Num">Num</a></li><li><a href="#impl-NumCast-for-bf16" title="NumCast">NumCast</a></li><li><a href="#impl-Octal-for-bf16" title="Octal">Octal</a></li><li><a href="#impl-One-for-bf16" title="One">One</a></li><li><a href="#impl-PartialEq-for-bf16" title="PartialEq">PartialEq</a></li><li><a href="#impl-PartialOrd-for-bf16" title="PartialOrd">PartialOrd</a></li><li><a href="#impl-Product-for-bf16" title="Product">Product</a></li><li><a href="#impl-Product%3C%26bf16%3E-for-bf16" title="Product<&'a bf16>">Product<&'a bf16></a></li><li><a href="#impl-Rem-for-bf16" title="Rem">Rem</a></li><li><a href="#impl-Rem%3C%26bf16%3E-for-%26bf16" title="Rem<&bf16>">Rem<&bf16></a></li><li><a href="#impl-Rem%3C%26bf16%3E-for-bf16" title="Rem<&bf16>">Rem<&bf16></a></li><li><a href="#impl-Rem%3Cbf16%3E-for-%26bf16" title="Rem<bf16>">Rem<bf16></a></li><li><a href="#impl-RemAssign-for-bf16" title="RemAssign">RemAssign</a></li><li><a href="#impl-RemAssign%3C%26bf16%3E-for-bf16" title="RemAssign<&bf16>">RemAssign<&bf16></a></li><li><a href="#impl-SealedHalf-for-bf16" title="SealedHalf">SealedHalf</a></li><li><a href="#impl-Sub-for-bf16" title="Sub">Sub</a></li><li><a href="#impl-Sub%3C%26bf16%3E-for-%26bf16" title="Sub<&bf16>">Sub<&bf16></a></li><li><a href="#impl-Sub%3C%26bf16%3E-for-bf16" title="Sub<&bf16>">Sub<&bf16></a></li><li><a href="#impl-Sub%3Cbf16%3E-for-%26bf16" title="Sub<bf16>">Sub<bf16></a></li><li><a href="#impl-SubAssign-for-bf16" title="SubAssign">SubAssign</a></li><li><a href="#impl-SubAssign%3C%26bf16%3E-for-bf16" title="SubAssign<&bf16>">SubAssign<&bf16></a></li><li><a href="#impl-Sum-for-bf16" title="Sum">Sum</a></li><li><a href="#impl-Sum%3C%26bf16%3E-for-bf16" title="Sum<&'a bf16>">Sum<&'a bf16></a></li><li><a href="#impl-ToBytes-for-bf16" title="ToBytes">ToBytes</a></li><li><a href="#impl-ToPrimitive-for-bf16" title="ToPrimitive">ToPrimitive</a></li><li><a href="#impl-UpperExp-for-bf16" title="UpperExp">UpperExp</a></li><li><a href="#impl-UpperHex-for-bf16" title="UpperHex">UpperHex</a></li><li><a href="#impl-Zero-for-bf16" title="Zero">Zero</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-bf16" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-bf16" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-bf16" title="Send">Send</a></li><li><a href="#impl-Sync-for-bf16" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-bf16" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-bf16" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-LowerBounded-for-T" title="LowerBounded">LowerBounded</a></li><li><a href="#impl-NumAssign-for-T" title="NumAssign">NumAssign</a></li><li><a href="#impl-NumAssignOps%3CRhs%3E-for-T" title="NumAssignOps<Rhs>">NumAssignOps<Rhs></a></li><li><a href="#impl-NumAssignRef-for-T" title="NumAssignRef">NumAssignRef</a></li><li><a href="#impl-NumOps%3CRhs,+Output%3E-for-T" title="NumOps<Rhs, Output>">NumOps<Rhs, Output></a></li><li><a href="#impl-NumRef-for-T" title="NumRef">NumRef</a></li><li><a href="#impl-Real-for-T" title="Real">Real</a></li><li><a href="#impl-RefNum%3CBase%3E-for-T" title="RefNum<Base>">RefNum<Base></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-UpperBounded-for-T" title="UpperBounded">UpperBounded</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate half</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">half</a></span><h1>Struct <span class="struct">bf16</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/half/bfloat.rs.html#50">Source</a> </span></div><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct bf16(<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a>);</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A 16-bit floating point type implementing the <a href="https://en.wikipedia.org/wiki/Bfloat16_floating-point_format"><code>bfloat16</code></a> format.</p>
<p>The <a href="https://en.wikipedia.org/wiki/Bfloat16_floating-point_format"><code>bfloat16</code></a> floating point format is a truncated 16-bit version of the IEEE 754 standard
<code>binary32</code>, a.k.a <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a>. <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> has approximately the same dynamic range as <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a> by
having a lower precision than <a href="struct.f16.html" title="struct half::f16"><code>struct@f16</code></a>. While <a href="struct.f16.html" title="struct half::f16"><code>struct@f16</code></a> has a precision of
11 bits, <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> has a precision of only 8 bits.</p>
</div></details><h2 id="fields" class="fields section-header">Tuple Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.0" class="structfield section-header"><a href="#structfield.0" class="anchor field">§</a><code>0: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a></code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#52-790">Source</a><a href="#impl-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.DIGITS" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#709">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.DIGITS" class="constant">DIGITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a> = 2u32</h4></section></summary><div class="docblock"><p>Approximate number of <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> significant digits in base 10</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.EPSILON" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#714">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.EPSILON" class="constant">EPSILON</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a>
<a href="https://en.wikipedia.org/wiki/Machine_epsilon">machine epsilon</a> value</p>
<p>This is the difference between 1.0 and the next largest representable number.</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.INFINITY" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#716">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.INFINITY" class="constant">INFINITY</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> positive Infinity (+∞)</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MANTISSA_DIGITS" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#718">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MANTISSA_DIGITS" class="constant">MANTISSA_DIGITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a> = 8u32</h4></section></summary><div class="docblock"><p>Number of <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> significant digits in base 2</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MAX" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#720">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX" class="constant">MAX</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Largest finite <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MAX_10_EXP" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#722">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_10_EXP" class="constant">MAX_10_EXP</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a> = 38i32</h4></section></summary><div class="docblock"><p>Maximum possible <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> power of 10 exponent</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MAX_EXP" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#724">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_EXP" class="constant">MAX_EXP</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a> = 128i32</h4></section></summary><div class="docblock"><p>Maximum possible <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> power of 2 exponent</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#726">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN" class="constant">MIN</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Smallest finite <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN_10_EXP" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#728">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_10_EXP" class="constant">MIN_10_EXP</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a> = -37i32</h4></section></summary><div class="docblock"><p>Minimum possible normal <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> power of 10 exponent</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN_EXP" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#730">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_EXP" class="constant">MIN_EXP</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a> = -125i32</h4></section></summary><div class="docblock"><p>One greater than the minimum possible normal <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> power of 2 exponent</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN_POSITIVE" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#732">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_POSITIVE" class="constant">MIN_POSITIVE</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Smallest positive normal <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.NAN" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#734">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NAN" class="constant">NAN</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> Not a Number (NaN)</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.NEG_INFINITY" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#736">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_INFINITY" class="constant">NEG_INFINITY</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> negative infinity (-∞).</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.RADIX" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#738">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.RADIX" class="constant">RADIX</a>: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a> = 2u32</h4></section></summary><div class="docblock"><p>The radix or base of the internal representation of <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a></p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN_POSITIVE_SUBNORMAL" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#741">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN_POSITIVE_SUBNORMAL" class="constant">MIN_POSITIVE_SUBNORMAL</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Minimum positive subnormal <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MAX_SUBNORMAL" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#743">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX_SUBNORMAL" class="constant">MAX_SUBNORMAL</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Maximum subnormal <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.ONE" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#746">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.ONE" class="constant">ONE</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 1</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.ZERO" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#748">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 0</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.NEG_ZERO" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#750">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_ZERO" class="constant">NEG_ZERO</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> -0</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.NEG_ONE" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#752">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_ONE" class="constant">NEG_ONE</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> -1</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.E" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#755">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.E" class="constant">E</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> Euler’s number (ℯ)</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.PI" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#757">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.PI" class="constant">PI</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> Archimedes’ constant (π)</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_1_PI" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#759">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_1_PI" class="constant">FRAC_1_PI</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 1/π</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_1_SQRT_2" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#761">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_1_SQRT_2" class="constant">FRAC_1_SQRT_2</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 1/√2</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_2_PI" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#763">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_2_PI" class="constant">FRAC_2_PI</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 2/π</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_2_SQRT_PI" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#765">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_2_SQRT_PI" class="constant">FRAC_2_SQRT_PI</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 2/√π</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_PI_2" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#767">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_PI_2" class="constant">FRAC_PI_2</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> π/2</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_PI_3" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#769">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_PI_3" class="constant">FRAC_PI_3</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> π/3</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_PI_4" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#771">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_PI_4" class="constant">FRAC_PI_4</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> π/4</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_PI_6" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#773">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_PI_6" class="constant">FRAC_PI_6</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> π/6</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_PI_8" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#775">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FRAC_PI_8" class="constant">FRAC_PI_8</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> π/8</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.LN_10" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#777">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.LN_10" class="constant">LN_10</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 𝗅𝗇 10</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.LN_2" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#779">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.LN_2" class="constant">LN_2</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 𝗅𝗇 2</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.LOG10_E" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#781">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.LOG10_E" class="constant">LOG10_E</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 𝗅𝗈𝗀₁₀ℯ</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.LOG10_2" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#783">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.LOG10_2" class="constant">LOG10_2</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 𝗅𝗈𝗀₁₀2</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.LOG2_E" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#785">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.LOG2_E" class="constant">LOG2_E</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 𝗅𝗈𝗀₂ℯ</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.LOG2_10" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#787">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.LOG2_10" class="constant">LOG2_10</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> 𝗅𝗈𝗀₂10</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.SQRT_2" class="associatedconstant"><a class="src rightside" href="../src/half/bfloat.rs.html#789">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.SQRT_2" class="constant">SQRT_2</a>: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p><a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> √2</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_bits" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#56-58">Source</a><h4 class="code-header">pub const fn <a href="#method.from_bits" class="fn">from_bits</a>(bits: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Constructs a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value from the raw bits.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f32" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#67-69">Source</a><h4 class="code-header">pub fn <a href="#method.from_f32" class="fn">from_f32</a>(value: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Constructs a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value from a 32-bit floating point value.</p>
<p>This operation is lossy. If the 32-bit value is too large to fit, ±∞ will result. NaN values
are preserved. Subnormal values that are too tiny to be represented will result in ±0. All
other values are truncated and rounded to the nearest representable value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f32_const" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#82-84">Source</a><h4 class="code-header">pub const fn <a href="#method.from_f32_const" class="fn">from_f32_const</a>(value: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Constructs a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value from a 32-bit floating point value.</p>
<p>This function is identical to <a href="struct.bf16.html#method.from_f32" title="associated function half::bf16::from_f32"><code>from_f32</code></a> except it never uses hardware
intrinsics, which allows it to be <code>const</code>. <a href="struct.bf16.html#method.from_f32" title="associated function half::bf16::from_f32"><code>from_f32</code></a> should be preferred
in any non-<code>const</code> context.</p>
<p>This operation is lossy. If the 32-bit value is too large to fit, ±∞ will result. NaN values
are preserved. Subnormal values that are too tiny to be represented will result in ±0. All
other values are truncated and rounded to the nearest representable value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f64" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#94-96">Source</a><h4 class="code-header">pub fn <a href="#method.from_f64" class="fn">from_f64</a>(value: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Constructs a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value from a 64-bit floating point value.</p>
<p>This operation is lossy. If the 64-bit value is to large to fit, ±∞ will result. NaN values
are preserved. 64-bit subnormal values are too tiny to be represented and result in ±0.
Exponents that underflow the minimum exponent will result in subnormals or ±0. All other
values are truncated and rounded to the nearest representable value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f64_const" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#110-112">Source</a><h4 class="code-header">pub const fn <a href="#method.from_f64_const" class="fn">from_f64_const</a>(value: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Constructs a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value from a 64-bit floating point value.</p>
<p>This function is identical to <a href="struct.bf16.html#method.from_f64" title="associated function half::bf16::from_f64"><code>from_f64</code></a> except it never uses hardware
intrinsics, which allows it to be <code>const</code>. <a href="struct.bf16.html#method.from_f64" title="associated function half::bf16::from_f64"><code>from_f64</code></a> should be preferred
in any non-<code>const</code> context.</p>
<p>This operation is lossy. If the 64-bit value is to large to fit, ±∞ will result. NaN values
are preserved. 64-bit subnormal values are too tiny to be represented and result in ±0.
Exponents that underflow the minimum exponent will result in subnormals or ±0. All other
values are truncated and rounded to the nearest representable value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_bits" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#117-119">Source</a><h4 class="code-header">pub const fn <a href="#method.to_bits" class="fn">to_bits</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>Converts a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> into the underlying bit representation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_le_bytes" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#133-135">Source</a><h4 class="code-header">pub const fn <a href="#method.to_le_bytes" class="fn">to_le_bytes</a>(self) -> [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]</h4></section></summary><div class="docblock"><p>Returns the memory representation of the underlying bit representation as a byte array in
little-endian byte order.</p>
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>bytes = bf16::from_f32(<span class="number">12.5</span>).to_le_bytes();
<span class="macro">assert_eq!</span>(bytes, [<span class="number">0x48</span>, <span class="number">0x41</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_be_bytes" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#149-151">Source</a><h4 class="code-header">pub const fn <a href="#method.to_be_bytes" class="fn">to_be_bytes</a>(self) -> [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]</h4></section></summary><div class="docblock"><p>Returns the memory representation of the underlying bit representation as a byte array in
big-endian (network) byte order.</p>
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>bytes = bf16::from_f32(<span class="number">12.5</span>).to_be_bytes();
<span class="macro">assert_eq!</span>(bytes, [<span class="number">0x41</span>, <span class="number">0x48</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_ne_bytes" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#173-175">Source</a><h4 class="code-header">pub const fn <a href="#method.to_ne_bytes" class="fn">to_ne_bytes</a>(self) -> [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]</h4></section></summary><div class="docblock"><p>Returns the memory representation of the underlying bit representation as a byte array in
native byte order.</p>
<p>As the target platform’s native endianness is used, portable code should use
<a href="struct.bf16.html#method.to_be_bytes" title="method half::bf16::to_be_bytes"><code>to_be_bytes</code></a> or <a href="struct.bf16.html#method.to_le_bytes" title="method half::bf16::to_le_bytes"><code>to_le_bytes</code></a>, as appropriate,
instead.</p>
<h5 id="examples-2"><a class="doc-anchor" href="#examples-2">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>bytes = bf16::from_f32(<span class="number">12.5</span>).to_ne_bytes();
<span class="macro">assert_eq!</span>(bytes, <span class="kw">if </span><span class="macro">cfg!</span>(target_endian = <span class="string">"big"</span>) {
[<span class="number">0x41</span>, <span class="number">0x48</span>]
} <span class="kw">else </span>{
[<span class="number">0x48</span>, <span class="number">0x41</span>]
});</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_le_bytes" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#188-190">Source</a><h4 class="code-header">pub const fn <a href="#method.from_le_bytes" class="fn">from_le_bytes</a>(bytes: [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Creates a floating point value from its representation as a byte array in little endian.</p>
<h5 id="examples-3"><a class="doc-anchor" href="#examples-3">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>value = bf16::from_le_bytes([<span class="number">0x48</span>, <span class="number">0x41</span>]);
<span class="macro">assert_eq!</span>(value, bf16::from_f32(<span class="number">12.5</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_be_bytes" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#203-205">Source</a><h4 class="code-header">pub const fn <a href="#method.from_be_bytes" class="fn">from_be_bytes</a>(bytes: [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Creates a floating point value from its representation as a byte array in big endian.</p>
<h5 id="examples-4"><a class="doc-anchor" href="#examples-4">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>value = bf16::from_be_bytes([<span class="number">0x41</span>, <span class="number">0x48</span>]);
<span class="macro">assert_eq!</span>(value, bf16::from_f32(<span class="number">12.5</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_ne_bytes" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#226-228">Source</a><h4 class="code-header">pub const fn <a href="#method.from_ne_bytes" class="fn">from_ne_bytes</a>(bytes: [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Creates a floating point value from its representation as a byte array in native endian.</p>
<p>As the target platform’s native endianness is used, portable code likely wants to use
<a href="struct.bf16.html#method.from_be_bytes" title="associated function half::bf16::from_be_bytes"><code>from_be_bytes</code></a> or <a href="struct.bf16.html#method.from_le_bytes" title="associated function half::bf16::from_le_bytes"><code>from_le_bytes</code></a>, as
appropriate instead.</p>
<h5 id="examples-5"><a class="doc-anchor" href="#examples-5">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>value = bf16::from_ne_bytes(<span class="kw">if </span><span class="macro">cfg!</span>(target_endian = <span class="string">"big"</span>) {
[<span class="number">0x41</span>, <span class="number">0x48</span>]
} <span class="kw">else </span>{
[<span class="number">0x48</span>, <span class="number">0x41</span>]
});
<span class="macro">assert_eq!</span>(value, bf16::from_f32(<span class="number">12.5</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_f32" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#235-237">Source</a><h4 class="code-header">pub fn <a href="#method.to_f32" class="fn">to_f32</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a></h4></section></summary><div class="docblock"><p>Converts a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value into an <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a> value.</p>
<p>This conversion is lossless as all values can be represented exactly in <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_f32_const" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#248-250">Source</a><h4 class="code-header">pub const fn <a href="#method.to_f32_const" class="fn">to_f32_const</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a></h4></section></summary><div class="docblock"><p>Converts a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value into an <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a> value.</p>
<p>This function is identical to <a href="struct.bf16.html#method.to_f32" title="method half::bf16::to_f32"><code>to_f32</code></a> except it never uses hardware
intrinsics, which allows it to be <code>const</code>. <a href="struct.bf16.html#method.to_f32" title="method half::bf16::to_f32"><code>to_f32</code></a> should be preferred
in any non-<code>const</code> context.</p>
<p>This conversion is lossless as all values can be represented exactly in <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_f64" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#257-259">Source</a><h4 class="code-header">pub fn <a href="#method.to_f64" class="fn">to_f64</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a></h4></section></summary><div class="docblock"><p>Converts a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value into an <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html" title="primitive f64"><code>f64</code></a> value.</p>
<p>This conversion is lossless as all values can be represented exactly in <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html" title="primitive f64"><code>f64</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_f64_const" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#270-272">Source</a><h4 class="code-header">pub const fn <a href="#method.to_f64_const" class="fn">to_f64_const</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a></h4></section></summary><div class="docblock"><p>Converts a <a href="struct.bf16.html" title="struct half::bf16"><code>bf16</code></a> value into an <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html" title="primitive f64"><code>f64</code></a> value.</p>
<p>This function is identical to <a href="struct.bf16.html#method.to_f64" title="method half::bf16::to_f64"><code>to_f64</code></a> except it never uses hardware
intrinsics, which allows it to be <code>const</code>. <a href="struct.bf16.html#method.to_f64" title="method half::bf16::to_f64"><code>to_f64</code></a> should be preferred
in any non-<code>const</code> context.</p>
<p>This conversion is lossless as all values can be represented exactly in <a href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html" title="primitive f64"><code>f64</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_nan" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#289-291">Source</a><h4 class="code-header">pub const fn <a href="#method.is_nan" class="fn">is_nan</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if this value is NaN and <code>false</code> otherwise.</p>
<h5 id="examples-6"><a class="doc-anchor" href="#examples-6">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>nan = bf16::NAN;
<span class="kw">let </span>f = bf16::from_f32(<span class="number">7.0_f32</span>);
<span class="macro">assert!</span>(nan.is_nan());
<span class="macro">assert!</span>(!f.is_nan());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_infinite" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#313-315">Source</a><h4 class="code-header">pub const fn <a href="#method.is_infinite" class="fn">is_infinite</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if this value is ±∞ and <code>false</code> otherwise.</p>
<h5 id="examples-7"><a class="doc-anchor" href="#examples-7">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>f = bf16::from_f32(<span class="number">7.0f32</span>);
<span class="kw">let </span>inf = bf16::INFINITY;
<span class="kw">let </span>neg_inf = bf16::NEG_INFINITY;
<span class="kw">let </span>nan = bf16::NAN;
<span class="macro">assert!</span>(!f.is_infinite());
<span class="macro">assert!</span>(!nan.is_infinite());
<span class="macro">assert!</span>(inf.is_infinite());
<span class="macro">assert!</span>(neg_inf.is_infinite());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_finite" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#337-339">Source</a><h4 class="code-header">pub const fn <a href="#method.is_finite" class="fn">is_finite</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if this number is neither infinite nor NaN.</p>
<h5 id="examples-8"><a class="doc-anchor" href="#examples-8">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>f = bf16::from_f32(<span class="number">7.0f32</span>);
<span class="kw">let </span>inf = bf16::INFINITY;
<span class="kw">let </span>neg_inf = bf16::NEG_INFINITY;
<span class="kw">let </span>nan = bf16::NAN;
<span class="macro">assert!</span>(f.is_finite());
<span class="macro">assert!</span>(!nan.is_finite());
<span class="macro">assert!</span>(!inf.is_finite());
<span class="macro">assert!</span>(!neg_inf.is_finite());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_normal" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#364-367">Source</a><h4 class="code-header">pub const fn <a href="#method.is_normal" class="fn">is_normal</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is neither zero, infinite, subnormal, or NaN.</p>
<h5 id="examples-9"><a class="doc-anchor" href="#examples-9">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>min = bf16::MIN_POSITIVE;
<span class="kw">let </span>max = bf16::MAX;
<span class="kw">let </span>lower_than_min = bf16::from_f32(<span class="number">1.0e-39_f32</span>);
<span class="kw">let </span>zero = bf16::from_f32(<span class="number">0.0_f32</span>);
<span class="macro">assert!</span>(min.is_normal());
<span class="macro">assert!</span>(max.is_normal());
<span class="macro">assert!</span>(!zero.is_normal());
<span class="macro">assert!</span>(!bf16::NAN.is_normal());
<span class="macro">assert!</span>(!bf16::INFINITY.is_normal());
<span class="comment">// Values between 0 and `min` are subnormal.
</span><span class="macro">assert!</span>(!lower_than_min.is_normal());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.classify" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#387-397">Source</a><h4 class="code-header">pub const fn <a href="#method.classify" class="fn">classify</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/num/enum.FpCategory.html" title="enum core::num::FpCategory">FpCategory</a></h4></section></summary><div class="docblock"><p>Returns the floating point category of the number.</p>
<p>If only one property is going to be tested, it is generally faster to use the specific
predicate instead.</p>
<h5 id="examples-10"><a class="doc-anchor" href="#examples-10">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::num::FpCategory;
<span class="kw">let </span>num = bf16::from_f32(<span class="number">12.4_f32</span>);
<span class="kw">let </span>inf = bf16::INFINITY;
<span class="macro">assert_eq!</span>(num.classify(), FpCategory::Normal);
<span class="macro">assert_eq!</span>(inf.classify(), FpCategory::Infinite);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.signum" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#418-426">Source</a><h4 class="code-header">pub const fn <a href="#method.signum" class="fn">signum</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Returns a number that represents the sign of <code>self</code>.</p>
<ul>
<li>1.0 if the number is positive, +0.0 or <a href="struct.bf16.html#associatedconstant.INFINITY" title="associated constant half::bf16::INFINITY"><code>INFINITY</code></a></li>
<li>−1.0 if the number is negative, −0.0<code> or [</code>NEG_INFINITY`]<a href="struct.bf16.html#associatedconstant.NEG_INFINITY" title="associated constant half::bf16::NEG_INFINITY">bf16::NEG_INFINITY</a></li>
<li><a href="struct.bf16.html#associatedconstant.NAN" title="associated constant half::bf16::NAN"><code>NAN</code></a> if the number is NaN</li>
</ul>
<h5 id="examples-11"><a class="doc-anchor" href="#examples-11">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>f = bf16::from_f32(<span class="number">3.5_f32</span>);
<span class="macro">assert_eq!</span>(f.signum(), bf16::from_f32(<span class="number">1.0</span>));
<span class="macro">assert_eq!</span>(bf16::NEG_INFINITY.signum(), bf16::from_f32(-<span class="number">1.0</span>));
<span class="macro">assert!</span>(bf16::NAN.signum().is_nan());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_positive" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#447-449">Source</a><h4 class="code-header">pub const fn <a href="#method.is_sign_positive" class="fn">is_sign_positive</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if and only if <code>self</code> has a positive sign, including +0.0, NaNs with a
positive sign bit and +∞.</p>
<h5 id="examples-12"><a class="doc-anchor" href="#examples-12">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>nan = bf16::NAN;
<span class="kw">let </span>f = bf16::from_f32(<span class="number">7.0_f32</span>);
<span class="kw">let </span>g = bf16::from_f32(-<span class="number">7.0_f32</span>);
<span class="macro">assert!</span>(f.is_sign_positive());
<span class="macro">assert!</span>(!g.is_sign_positive());
<span class="comment">// NaN can be either positive or negative
</span><span class="macro">assert!</span>(nan.is_sign_positive() != nan.is_sign_negative());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_negative" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#470-472">Source</a><h4 class="code-header">pub const fn <a href="#method.is_sign_negative" class="fn">is_sign_negative</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if and only if <code>self</code> has a negative sign, including −0.0, NaNs with a
negative sign bit and −∞.</p>
<h5 id="examples-13"><a class="doc-anchor" href="#examples-13">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>nan = bf16::NAN;
<span class="kw">let </span>f = bf16::from_f32(<span class="number">7.0f32</span>);
<span class="kw">let </span>g = bf16::from_f32(-<span class="number">7.0f32</span>);
<span class="macro">assert!</span>(!f.is_sign_negative());
<span class="macro">assert!</span>(g.is_sign_negative());
<span class="comment">// NaN can be either positive or negative
</span><span class="macro">assert!</span>(nan.is_sign_positive() != nan.is_sign_negative());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.copysign" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#494-496">Source</a><h4 class="code-header">pub const fn <a href="#method.copysign" class="fn">copysign</a>(self, sign: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Returns a number composed of the magnitude of <code>self</code> and the sign of <code>sign</code>.</p>
<p>Equal to <code>self</code> if the sign of <code>self</code> and <code>sign</code> are the same, otherwise equal to <code>-self</code>.
If <code>self</code> is NaN, then NaN with the sign of <code>sign</code> is returned.</p>
<h5 id="examples-14"><a class="doc-anchor" href="#examples-14">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>f = bf16::from_f32(<span class="number">3.5</span>);
<span class="macro">assert_eq!</span>(f.copysign(bf16::from_f32(<span class="number">0.42</span>)), bf16::from_f32(<span class="number">3.5</span>));
<span class="macro">assert_eq!</span>(f.copysign(bf16::from_f32(-<span class="number">0.42</span>)), bf16::from_f32(-<span class="number">3.5</span>));
<span class="macro">assert_eq!</span>((-f).copysign(bf16::from_f32(<span class="number">0.42</span>)), bf16::from_f32(<span class="number">3.5</span>));
<span class="macro">assert_eq!</span>((-f).copysign(bf16::from_f32(-<span class="number">0.42</span>)), bf16::from_f32(-<span class="number">3.5</span>));
<span class="macro">assert!</span>(bf16::NAN.copysign(bf16::from_f32(<span class="number">1.0</span>)).is_nan());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.max" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#513-519">Source</a><h4 class="code-header">pub fn <a href="#method.max" class="fn">max</a>(self, other: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Returns the maximum of the two numbers.</p>
<p>If one of the arguments is NaN, then the other argument is returned.</p>
<h5 id="examples-15"><a class="doc-anchor" href="#examples-15">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x = bf16::from_f32(<span class="number">1.0</span>);
<span class="kw">let </span>y = bf16::from_f32(<span class="number">2.0</span>);
<span class="macro">assert_eq!</span>(x.max(y), y);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.min" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#536-542">Source</a><h4 class="code-header">pub fn <a href="#method.min" class="fn">min</a>(self, other: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Returns the minimum of the two numbers.</p>
<p>If one of the arguments is NaN, then the other argument is returned.</p>
<h5 id="examples-16"><a class="doc-anchor" href="#examples-16">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x = bf16::from_f32(<span class="number">1.0</span>);
<span class="kw">let </span>y = bf16::from_f32(<span class="number">2.0</span>);
<span class="macro">assert_eq!</span>(x.min(y), x);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.clamp" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#565-575">Source</a><h4 class="code-header">pub fn <a href="#method.clamp" class="fn">clamp</a>(self, min: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>, max: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class="docblock"><p>Restrict a value to a certain interval unless it is NaN.</p>
<p>Returns <code>max</code> if <code>self</code> is greater than <code>max</code>, and <code>min</code> if <code>self</code> is less than <code>min</code>.
Otherwise this returns <code>self</code>.</p>
<p>Note that this function returns NaN if the initial value was NaN as well.</p>
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
<p>Panics if <code>min > max</code>, <code>min</code> is NaN, or <code>max</code> is NaN.</p>
<h5 id="examples-17"><a class="doc-anchor" href="#examples-17">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(bf16::from_f32(-<span class="number">3.0</span>).clamp(bf16::from_f32(-<span class="number">2.0</span>), bf16::from_f32(<span class="number">1.0</span>)) == bf16::from_f32(-<span class="number">2.0</span>));
<span class="macro">assert!</span>(bf16::from_f32(<span class="number">0.0</span>).clamp(bf16::from_f32(-<span class="number">2.0</span>), bf16::from_f32(<span class="number">1.0</span>)) == bf16::from_f32(<span class="number">0.0</span>));
<span class="macro">assert!</span>(bf16::from_f32(<span class="number">2.0</span>).clamp(bf16::from_f32(-<span class="number">2.0</span>), bf16::from_f32(<span class="number">1.0</span>)) == bf16::from_f32(<span class="number">1.0</span>));
<span class="macro">assert!</span>(bf16::NAN.clamp(bf16::from_f32(-<span class="number">2.0</span>), bf16::from_f32(<span class="number">1.0</span>)).is_nan());</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.total_cmp" class="method"><a class="src rightside" href="../src/half/bfloat.rs.html#645-651">Source</a><h4 class="code-header">pub fn <a href="#method.total_cmp" class="fn">total_cmp</a>(&self, other: &Self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class="docblock"><p>Returns the ordering between <code>self</code> and <code>other</code>.</p>
<p>Unlike the standard partial comparison between floating point numbers,
this comparison always produces an ordering in accordance to
the <code>totalOrder</code> predicate as defined in the IEEE 754 (2008 revision)
floating point standard. The values are ordered in the following sequence:</p>
<ul>
<li>negative quiet NaN</li>
<li>negative signaling NaN</li>
<li>negative infinity</li>
<li>negative numbers</li>
<li>negative subnormal numbers</li>
<li>negative zero</li>
<li>positive zero</li>
<li>positive subnormal numbers</li>
<li>positive numbers</li>
<li>positive infinity</li>
<li>positive signaling NaN</li>
<li>positive quiet NaN.</li>
</ul>
<p>The ordering established by this function does not always agree with the
<a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd"><code>PartialOrd</code></a> and <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq"><code>PartialEq</code></a> implementations of <code>bf16</code>. For example,
they consider negative and positive zero equal, while <code>total_cmp</code>
doesn’t.</p>
<p>The interpretation of the signaling NaN bit follows the definition in
the IEEE 754 standard, which may not match the interpretation by some of
the older, non-conformant (e.g. MIPS) hardware implementations.</p>
<h5 id="examples-18"><a class="doc-anchor" href="#examples-18">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>v: Vec<bf16> = <span class="macro">vec!</span>[];
v.push(bf16::ONE);
v.push(bf16::INFINITY);
v.push(bf16::NEG_INFINITY);
v.push(bf16::NAN);
v.push(bf16::MAX_SUBNORMAL);
v.push(-bf16::MAX_SUBNORMAL);
v.push(bf16::ZERO);
v.push(bf16::NEG_ZERO);
v.push(bf16::NEG_ONE);
v.push(bf16::MIN_POSITIVE);
v.sort_by(|a, b| a.total_cmp(<span class="kw-2">&</span>b));
<span class="macro">assert!</span>(v
.into_iter()
.zip(
[
bf16::NEG_INFINITY,
bf16::NEG_ONE,
-bf16::MAX_SUBNORMAL,
bf16::NEG_ZERO,
bf16::ZERO,
bf16::MAX_SUBNORMAL,
bf16::MIN_POSITIVE,
bf16::ONE,
bf16::INFINITY,
bf16::NAN
]
.iter()
)
.all(|(a, b)| a.to_bits() == b.to_bits()));</code></pre></div>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Add%3C%26bf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1019-1026">Source</a><a href="#impl-Add%3C%26bf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1020">Source</a><a href="#associatedtype.Output-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1023-1025">Source</a><a href="#method.add-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Add%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1010-1017">Source</a><a href="#impl-Add%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1011">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1014-1016">Source</a><a href="#method.add-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Add%3Cbf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1028-1035">Source</a><a href="#impl-Add%3Cbf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1029">Source</a><a href="#associatedtype.Output-5" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1032-1034">Source</a><a href="#method.add-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, rhs: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Add-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1002-1008">Source</a><a href="#impl-Add-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1003">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>+</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.add" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1005-1007">Source</a><a href="#method.add" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add" class="fn">add</a>(self, rhs: Self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>+</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html#tymethod.add">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AddAssign%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1044-1049">Source</a><a href="#impl-AddAssign%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.add_assign-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1046-1048">Source</a><a href="#method.add_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign" class="fn">add_assign</a>(&mut self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>)</h4></section></summary><div class='docblock'>Performs the <code>+=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AddAssign-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1037-1042">Source</a><a href="#impl-AddAssign-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.add_assign" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1039-1041">Source</a><a href="#method.add_assign" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign" class="fn">add_assign</a>(&mut self, rhs: Self)</h4></section></summary><div class='docblock'>Performs the <code>+=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html#tymethod.add_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1464-1469">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1466-1468">Source</a><a href="#method.as_-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-f16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#722">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-f16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.f16.html" title="struct half::f16">f16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#722">Source</a><a href="#method.as_" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-f32" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1517">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-25" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1517">Source</a><a href="#method.as_-25" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-f64" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1518">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-26" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1518">Source</a><a href="#method.as_-26" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-i16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1511">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-19" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1511">Source</a><a href="#method.as_-19" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-i32" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1513">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-21" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1513">Source</a><a href="#method.as_-21" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-i64" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1507">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-15" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1507">Source</a><a href="#method.as_-15" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-i8" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1509">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-17" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1509">Source</a><a href="#method.as_-17" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-isize" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1515">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-isize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.isize.html">isize</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-23" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1515">Source</a><a href="#method.as_-23" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-u16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1512">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-20" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1512">Source</a><a href="#method.as_-20" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-u32" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1514">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-22" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1514">Source</a><a href="#method.as_-22" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-u64" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1508">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-16" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1508">Source</a><a href="#method.as_-16" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-u8" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1510">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-18" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1510">Source</a><a href="#method.as_-18" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cbf16%3E-for-usize" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1516">Source</a><a href="#impl-AsPrimitive%3Cbf16%3E-for-usize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-24" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1516">Source</a><a href="#method.as_-24" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1494">Source</a><a href="#impl-AsPrimitive%3Cf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="struct" href="struct.f16.html" title="struct half::f16">f16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-14" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1494">Source</a><a href="#method.as_-14" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="struct" href="struct.f16.html" title="struct half::f16">f16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cf32%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1492">Source</a><a href="#impl-AsPrimitive%3Cf32%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-12" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1492">Source</a><a href="#method.as_-12" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cf64%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1493">Source</a><a href="#impl-AsPrimitive%3Cf64%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-13" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1493">Source</a><a href="#method.as_-13" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Ci16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1486">Source</a><a href="#impl-AsPrimitive%3Ci16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-6" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1486">Source</a><a href="#method.as_-6" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Ci32%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1488">Source</a><a href="#impl-AsPrimitive%3Ci32%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-8" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1488">Source</a><a href="#method.as_-8" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Ci64%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1482">Source</a><a href="#impl-AsPrimitive%3Ci64%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i64.html">i64</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1482">Source</a><a href="#method.as_-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i64.html">i64</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Ci8%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1484">Source</a><a href="#impl-AsPrimitive%3Ci8%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-4" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1484">Source</a><a href="#method.as_-4" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cisize%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1490">Source</a><a href="#impl-AsPrimitive%3Cisize%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.isize.html">isize</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-10" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1490">Source</a><a href="#method.as_-10" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.isize.html">isize</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cu16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1487">Source</a><a href="#impl-AsPrimitive%3Cu16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-7" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1487">Source</a><a href="#method.as_-7" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cu32%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1489">Source</a><a href="#impl-AsPrimitive%3Cu32%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-9" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1489">Source</a><a href="#method.as_-9" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cu64%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1483">Source</a><a href="#impl-AsPrimitive%3Cu64%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-3" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1483">Source</a><a href="#method.as_-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cu8%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1485">Source</a><a href="#impl-AsPrimitive%3Cu8%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-5" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1485">Source</a><a href="#method.as_-5" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsPrimitive%3Cusize%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1491">Source</a><a href="#impl-AsPrimitive%3Cusize%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.AsPrimitive.html" title="trait num_traits::cast::AsPrimitive">AsPrimitive</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.usize.html">usize</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_-11" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1491">Source</a><a href="#method.as_-11" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.AsPrimitive.html#tymethod.as_" class="fn">as_</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Convert a value to another, using the <code>as</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Binary-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#958-962">Source</a><a href="#impl-Binary-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-4" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#959-961">Source</a><a href="#method.fmt-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Binary.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Binary.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Bounded-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1452-1462">Source</a><a href="#impl-Bounded-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.min_value-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1454-1456">Source</a><a href="#method.min_value-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/bounds/trait.Bounded.html#tymethod.min_value" class="fn">min_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the smallest finite number this type can represent</div></details><details class="toggle method-toggle" open><summary><section id="method.max_value-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1459-1461">Source</a><a href="#method.max_value-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/bounds/trait.Bounded.html#tymethod.max_value" class="fn">max_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the largest finite number this type can represent</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#36">Source</a><a href="#impl-Clone-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#36">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#930-934">Source</a><a href="#impl-Debug-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#931-933">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#36">Source</a><a href="#impl-Default-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#36">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.85.0/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#937-941">Source</a><a href="#impl-Display-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#938-940">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div%3C%26bf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1166-1173">Source</a><a href="#impl-Div%3C%26bf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-16" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1167">Source</a><a href="#associatedtype.Output-16" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1170-1172">Source</a><a href="#method.div-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1157-1164">Source</a><a href="#impl-Div%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-15" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1158">Source</a><a href="#associatedtype.Output-15" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1161-1163">Source</a><a href="#method.div-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div%3Cbf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1175-1182">Source</a><a href="#impl-Div%3Cbf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-17" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1176">Source</a><a href="#associatedtype.Output-17" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1179-1181">Source</a><a href="#method.div-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, rhs: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Div-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1149-1155">Source</a><a href="#impl-Div-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1150">Source</a><a href="#associatedtype.Output-14" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>/</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.div" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1152-1154">Source</a><a href="#method.div" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div" class="fn">div</a>(self, rhs: Self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#associatedtype.Output" title="type core::ops::arith::Div::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>/</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html#tymethod.div">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-DivAssign%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1191-1196">Source</a><a href="#impl-DivAssign%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_assign-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1193-1195">Source</a><a href="#method.div_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign" class="fn">div_assign</a>(&mut self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>)</h4></section></summary><div class='docblock'>Performs the <code>/=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-DivAssign-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1184-1189">Source</a><a href="#impl-DivAssign-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_assign" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1186-1188">Source</a><a href="#method.div_assign" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign" class="fn">div_assign</a>(&mut self, rhs: Self)</h4></section></summary><div class='docblock'>Performs the <code>/=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html#tymethod.div_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Float-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1066-1352">Source</a><a href="#impl-Float-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/float/trait.Float.html" title="trait num_traits::float::Float">Float</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.nan-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1068-1070">Source</a><a href="#method.nan-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.nan" class="fn">nan</a>() -> Self</h4></section></summary><div class='docblock'>Returns the <code>NaN</code> value. <a href="../num_traits/float/trait.Float.html#tymethod.nan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.infinity-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1073-1075">Source</a><a href="#method.infinity-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.infinity" class="fn">infinity</a>() -> Self</h4></section></summary><div class='docblock'>Returns the infinite value. <a href="../num_traits/float/trait.Float.html#tymethod.infinity">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.neg_infinity-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1078-1080">Source</a><a href="#method.neg_infinity-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.neg_infinity" class="fn">neg_infinity</a>() -> Self</h4></section></summary><div class='docblock'>Returns the negative infinite value. <a href="../num_traits/float/trait.Float.html#tymethod.neg_infinity">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.neg_zero-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1083-1085">Source</a><a href="#method.neg_zero-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.neg_zero" class="fn">neg_zero</a>() -> Self</h4></section></summary><div class='docblock'>Returns <code>-0.0</code>. <a href="../num_traits/float/trait.Float.html#tymethod.neg_zero">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_value-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1088-1090">Source</a><a href="#method.min_value-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.min_value" class="fn">min_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the smallest finite value that this type can represent. <a href="../num_traits/float/trait.Float.html#tymethod.min_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_positive_value-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1093-1095">Source</a><a href="#method.min_positive_value-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.min_positive_value" class="fn">min_positive_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the smallest positive, normalized value that this type can represent. <a href="../num_traits/float/trait.Float.html#tymethod.min_positive_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.epsilon-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1098-1100">Source</a><a href="#method.epsilon-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#method.epsilon" class="fn">epsilon</a>() -> Self</h4></section></summary><div class='docblock'>Returns epsilon, a small positive value. <a href="../num_traits/float/trait.Float.html#method.epsilon">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max_value-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1103-1105">Source</a><a href="#method.max_value-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.max_value" class="fn">max_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the largest finite value that this type can represent. <a href="../num_traits/float/trait.Float.html#tymethod.max_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_nan-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1108-1110">Source</a><a href="#method.is_nan-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.is_nan" class="fn">is_nan</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if this value is <code>NaN</code> and false otherwise. <a href="../num_traits/float/trait.Float.html#tymethod.is_nan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_infinite-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1113-1115">Source</a><a href="#method.is_infinite-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.is_infinite" class="fn">is_infinite</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if this value is positive infinity or negative infinity and
false otherwise. <a href="../num_traits/float/trait.Float.html#tymethod.is_infinite">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_finite-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1118-1120">Source</a><a href="#method.is_finite-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.is_finite" class="fn">is_finite</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if this number is neither infinite nor <code>NaN</code>. <a href="../num_traits/float/trait.Float.html#tymethod.is_finite">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_normal-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1123-1125">Source</a><a href="#method.is_normal-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.is_normal" class="fn">is_normal</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is neither zero, infinite,
<a href="http://en.wikipedia.org/wiki/Subnormal_number">subnormal</a>, or <code>NaN</code>. <a href="../num_traits/float/trait.Float.html#tymethod.is_normal">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.classify-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1128-1130">Source</a><a href="#method.classify-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.classify" class="fn">classify</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/num/enum.FpCategory.html" title="enum core::num::FpCategory">FpCategory</a></h4></section></summary><div class='docblock'>Returns the floating point category of the number. If only one property
is going to be tested, it is generally faster to use the specific
predicate instead. <a href="../num_traits/float/trait.Float.html#tymethod.classify">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.floor-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1133-1135">Source</a><a href="#method.floor-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.floor" class="fn">floor</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the largest integer less than or equal to a number. <a href="../num_traits/float/trait.Float.html#tymethod.floor">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ceil-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1138-1140">Source</a><a href="#method.ceil-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.ceil" class="fn">ceil</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the smallest integer greater than or equal to a number. <a href="../num_traits/float/trait.Float.html#tymethod.ceil">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.round-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1143-1145">Source</a><a href="#method.round-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.round" class="fn">round</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the nearest integer to a number. Round half-way cases away from
<code>0.0</code>. <a href="../num_traits/float/trait.Float.html#tymethod.round">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.trunc-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1148-1150">Source</a><a href="#method.trunc-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.trunc" class="fn">trunc</a>(self) -> Self</h4></section></summary><div class='docblock'>Return the integer part of a number. <a href="../num_traits/float/trait.Float.html#tymethod.trunc">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fract-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1153-1155">Source</a><a href="#method.fract-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.fract" class="fn">fract</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the fractional part of a number. <a href="../num_traits/float/trait.Float.html#tymethod.fract">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.abs-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1158-1160">Source</a><a href="#method.abs-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.abs" class="fn">abs</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the absolute value of <code>self</code>. Returns <code>Float::nan()</code> if the
number is <code>Float::nan()</code>. <a href="../num_traits/float/trait.Float.html#tymethod.abs">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.signum-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1163-1165">Source</a><a href="#method.signum-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.signum" class="fn">signum</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns a number that represents the sign of <code>self</code>. <a href="../num_traits/float/trait.Float.html#tymethod.signum">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_positive-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1168-1170">Source</a><a href="#method.is_sign_positive-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.is_sign_positive" class="fn">is_sign_positive</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is positive, including <code>+0.0</code>,
<code>Float::infinity()</code>, and <code>Float::nan()</code>. <a href="../num_traits/float/trait.Float.html#tymethod.is_sign_positive">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_negative-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1173-1175">Source</a><a href="#method.is_sign_negative-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.is_sign_negative" class="fn">is_sign_negative</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is negative, including <code>-0.0</code>,
<code>Float::neg_infinity()</code>, and <code>-Float::nan()</code>. <a href="../num_traits/float/trait.Float.html#tymethod.is_sign_negative">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.mul_add" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1178-1180">Source</a><a href="#method.mul_add" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.mul_add" class="fn">mul_add</a>(self, a: Self, b: Self) -> Self</h4></section></summary><div class='docblock'>Fused multiply-add. Computes <code>(self * a) + b</code> with only one rounding
error, yielding a more accurate result than an unfused multiply-add. <a href="../num_traits/float/trait.Float.html#tymethod.mul_add">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.recip-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1183-1185">Source</a><a href="#method.recip-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.recip" class="fn">recip</a>(self) -> Self</h4></section></summary><div class='docblock'>Take the reciprocal (inverse) of a number, <code>1/x</code>. <a href="../num_traits/float/trait.Float.html#tymethod.recip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.powi-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1188-1190">Source</a><a href="#method.powi-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.powi" class="fn">powi</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a>) -> Self</h4></section></summary><div class='docblock'>Raise a number to an integer power. <a href="../num_traits/float/trait.Float.html#tymethod.powi">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.powf" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1193-1195">Source</a><a href="#method.powf" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.powf" class="fn">powf</a>(self, n: Self) -> Self</h4></section></summary><div class='docblock'>Raise a number to a floating point power. <a href="../num_traits/float/trait.Float.html#tymethod.powf">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sqrt" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1198-1200">Source</a><a href="#method.sqrt" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.sqrt" class="fn">sqrt</a>(self) -> Self</h4></section></summary><div class='docblock'>Take the square root of a number. <a href="../num_traits/float/trait.Float.html#tymethod.sqrt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.exp" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1203-1205">Source</a><a href="#method.exp" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.exp" class="fn">exp</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns <code>e^(self)</code>, (the exponential function). <a href="../num_traits/float/trait.Float.html#tymethod.exp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.exp2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1208-1210">Source</a><a href="#method.exp2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.exp2" class="fn">exp2</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns <code>2^(self)</code>. <a href="../num_traits/float/trait.Float.html#tymethod.exp2">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ln" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1213-1215">Source</a><a href="#method.ln" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.ln" class="fn">ln</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the natural logarithm of the number. <a href="../num_traits/float/trait.Float.html#tymethod.ln">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.log" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1218-1220">Source</a><a href="#method.log" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.log" class="fn">log</a>(self, base: Self) -> Self</h4></section></summary><div class='docblock'>Returns the logarithm of the number with respect to an arbitrary base. <a href="../num_traits/float/trait.Float.html#tymethod.log">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.log2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1223-1225">Source</a><a href="#method.log2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.log2" class="fn">log2</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the base 2 logarithm of the number. <a href="../num_traits/float/trait.Float.html#tymethod.log2">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.log10" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1228-1230">Source</a><a href="#method.log10" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.log10" class="fn">log10</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the base 10 logarithm of the number. <a href="../num_traits/float/trait.Float.html#tymethod.log10">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_degrees-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1233-1235">Source</a><a href="#method.to_degrees-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#method.to_degrees" class="fn">to_degrees</a>(self) -> Self</h4></section></summary><div class='docblock'>Converts radians to degrees. <a href="../num_traits/float/trait.Float.html#method.to_degrees">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_radians-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1238-1240">Source</a><a href="#method.to_radians-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#method.to_radians" class="fn">to_radians</a>(self) -> Self</h4></section></summary><div class='docblock'>Converts degrees to radians. <a href="../num_traits/float/trait.Float.html#method.to_radians">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1243-1245">Source</a><a href="#method.max-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.max" class="fn">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Returns the maximum of the two numbers. <a href="../num_traits/float/trait.Float.html#tymethod.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min-2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1248-1250">Source</a><a href="#method.min-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.min" class="fn">min</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Returns the minimum of the two numbers. <a href="../num_traits/float/trait.Float.html#tymethod.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.abs_sub" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1253-1255">Source</a><a href="#method.abs_sub" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.abs_sub" class="fn">abs_sub</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>The positive difference of two numbers. <a href="../num_traits/float/trait.Float.html#tymethod.abs_sub">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cbrt" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1258-1260">Source</a><a href="#method.cbrt" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.cbrt" class="fn">cbrt</a>(self) -> Self</h4></section></summary><div class='docblock'>Take the cubic root of a number. <a href="../num_traits/float/trait.Float.html#tymethod.cbrt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hypot" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1263-1265">Source</a><a href="#method.hypot" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.hypot" class="fn">hypot</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Calculate the length of the hypotenuse of a right-angle triangle given
legs of length <code>x</code> and <code>y</code>. <a href="../num_traits/float/trait.Float.html#tymethod.hypot">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sin" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1268-1270">Source</a><a href="#method.sin" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.sin" class="fn">sin</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the sine of a number (in radians). <a href="../num_traits/float/trait.Float.html#tymethod.sin">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cos" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1273-1275">Source</a><a href="#method.cos" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.cos" class="fn">cos</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the cosine of a number (in radians). <a href="../num_traits/float/trait.Float.html#tymethod.cos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tan" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1278-1280">Source</a><a href="#method.tan" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.tan" class="fn">tan</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the tangent of a number (in radians). <a href="../num_traits/float/trait.Float.html#tymethod.tan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.asin" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1283-1285">Source</a><a href="#method.asin" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.asin" class="fn">asin</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the arcsine of a number. Return value is in radians in
the range [-pi/2, pi/2] or NaN if the number is outside the range
[-1, 1]. <a href="../num_traits/float/trait.Float.html#tymethod.asin">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.acos" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1288-1290">Source</a><a href="#method.acos" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.acos" class="fn">acos</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the arccosine of a number. Return value is in radians in
the range [0, pi] or NaN if the number is outside the range
[-1, 1]. <a href="../num_traits/float/trait.Float.html#tymethod.acos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.atan" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1293-1295">Source</a><a href="#method.atan" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.atan" class="fn">atan</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the arctangent of a number. Return value is in radians in the
range [-pi/2, pi/2]; <a href="../num_traits/float/trait.Float.html#tymethod.atan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.atan2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1298-1300">Source</a><a href="#method.atan2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.atan2" class="fn">atan2</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Computes the four quadrant arctangent of <code>self</code> (<code>y</code>) and <code>other</code> (<code>x</code>). <a href="../num_traits/float/trait.Float.html#tymethod.atan2">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sin_cos" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1303-1306">Source</a><a href="#method.sin_cos" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.sin_cos" class="fn">sin_cos</a>(self) -> (Self, Self)</h4></section></summary><div class='docblock'>Simultaneously computes the sine and cosine of the number, <code>x</code>. Returns
<code>(sin(x), cos(x))</code>. <a href="../num_traits/float/trait.Float.html#tymethod.sin_cos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.exp_m1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1309-1311">Source</a><a href="#method.exp_m1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.exp_m1" class="fn">exp_m1</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns <code>e^(self) - 1</code> in a way that is accurate even if the
number is close to zero. <a href="../num_traits/float/trait.Float.html#tymethod.exp_m1">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ln_1p" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1314-1316">Source</a><a href="#method.ln_1p" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.ln_1p" class="fn">ln_1p</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns <code>ln(1+n)</code> (natural logarithm) more accurately than if
the operations were performed separately. <a href="../num_traits/float/trait.Float.html#tymethod.ln_1p">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sinh" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1319-1321">Source</a><a href="#method.sinh" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.sinh" class="fn">sinh</a>(self) -> Self</h4></section></summary><div class='docblock'>Hyperbolic sine function. <a href="../num_traits/float/trait.Float.html#tymethod.sinh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cosh" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1324-1326">Source</a><a href="#method.cosh" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.cosh" class="fn">cosh</a>(self) -> Self</h4></section></summary><div class='docblock'>Hyperbolic cosine function. <a href="../num_traits/float/trait.Float.html#tymethod.cosh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tanh" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1329-1331">Source</a><a href="#method.tanh" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.tanh" class="fn">tanh</a>(self) -> Self</h4></section></summary><div class='docblock'>Hyperbolic tangent function. <a href="../num_traits/float/trait.Float.html#tymethod.tanh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.asinh" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1334-1336">Source</a><a href="#method.asinh" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.asinh" class="fn">asinh</a>(self) -> Self</h4></section></summary><div class='docblock'>Inverse hyperbolic sine function. <a href="../num_traits/float/trait.Float.html#tymethod.asinh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.acosh" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1339-1341">Source</a><a href="#method.acosh" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.acosh" class="fn">acosh</a>(self) -> Self</h4></section></summary><div class='docblock'>Inverse hyperbolic cosine function. <a href="../num_traits/float/trait.Float.html#tymethod.acosh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.atanh" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1344-1346">Source</a><a href="#method.atanh" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.atanh" class="fn">atanh</a>(self) -> Self</h4></section></summary><div class='docblock'>Inverse hyperbolic tangent function. <a href="../num_traits/float/trait.Float.html#tymethod.atanh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.integer_decode-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1349-1351">Source</a><a href="#method.integer_decode-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#tymethod.integer_decode" class="fn">integer_decode</a>(self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a>, <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>)</h4></section></summary><div class='docblock'>Returns the mantissa, base 2 exponent, and sign as integers, respectively.
The original number can be recovered by <code>sign * mantissa * 2 ^ exponent</code>. <a href="../num_traits/float/trait.Float.html#tymethod.integer_decode">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_subnormal-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/float.rs.html#1137">Source</a><a href="#method.is_subnormal-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#method.is_subnormal" class="fn">is_subnormal</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is <a href="https://en.wikipedia.org/wiki/Subnormal_number">subnormal</a>. <a href="../num_traits/float/trait.Float.html#method.is_subnormal">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clamp-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/float.rs.html#1545">Source</a><a href="#method.clamp-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#method.clamp" class="fn">clamp</a>(self, min: Self, max: Self) -> Self</h4></section></summary><div class='docblock'>Clamps a value between a min and max. <a href="../num_traits/float/trait.Float.html#method.clamp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.copysign-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/float.rs.html#1905">Source</a><a href="#method.copysign-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.Float.html#method.copysign" class="fn">copysign</a>(self, sign: Self) -> Self</h4></section></summary><div class='docblock'>Returns a number composed of the magnitude of <code>self</code> and the sign of
<code>sign</code>. <a href="../num_traits/float/trait.Float.html#method.copysign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FloatConst-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1354-1450">Source</a><a href="#impl-FloatConst-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/float/trait.FloatConst.html" title="trait num_traits::float::FloatConst">FloatConst</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.E" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1356-1358">Source</a><a href="#method.E" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.E" class="fn">E</a>() -> Self</h4></section></summary><div class='docblock'>Return Euler’s number.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_1_PI" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1361-1363">Source</a><a href="#method.FRAC_1_PI" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_1_PI" class="fn">FRAC_1_PI</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>1.0 / π</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_1_SQRT_2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1366-1368">Source</a><a href="#method.FRAC_1_SQRT_2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_1_SQRT_2" class="fn">FRAC_1_SQRT_2</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>1.0 / sqrt(2.0)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_2_PI" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1371-1373">Source</a><a href="#method.FRAC_2_PI" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_2_PI" class="fn">FRAC_2_PI</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>2.0 / π</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_2_SQRT_PI" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1376-1378">Source</a><a href="#method.FRAC_2_SQRT_PI" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_2_SQRT_PI" class="fn">FRAC_2_SQRT_PI</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>2.0 / sqrt(π)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_PI_2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1381-1383">Source</a><a href="#method.FRAC_PI_2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_PI_2" class="fn">FRAC_PI_2</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>π / 2.0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_PI_3" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1386-1388">Source</a><a href="#method.FRAC_PI_3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_PI_3" class="fn">FRAC_PI_3</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>π / 3.0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_PI_4" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1391-1393">Source</a><a href="#method.FRAC_PI_4" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_PI_4" class="fn">FRAC_PI_4</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>π / 4.0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_PI_6" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1396-1398">Source</a><a href="#method.FRAC_PI_6" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_PI_6" class="fn">FRAC_PI_6</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>π / 6.0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.FRAC_PI_8" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1401-1403">Source</a><a href="#method.FRAC_PI_8" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.FRAC_PI_8" class="fn">FRAC_PI_8</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>π / 8.0</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.LN_10" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1406-1408">Source</a><a href="#method.LN_10" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.LN_10" class="fn">LN_10</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>ln(10.0)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.LN_2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1411-1413">Source</a><a href="#method.LN_2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.LN_2" class="fn">LN_2</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>ln(2.0)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.LOG10_E" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1416-1418">Source</a><a href="#method.LOG10_E" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.LOG10_E" class="fn">LOG10_E</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>log10(e)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.LOG2_E" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1421-1423">Source</a><a href="#method.LOG2_E" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.LOG2_E" class="fn">LOG2_E</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>log2(e)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.PI" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1426-1428">Source</a><a href="#method.PI" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.PI" class="fn">PI</a>() -> Self</h4></section></summary><div class='docblock'>Return Archimedes’ constant <code>π</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.SQRT_2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1431-1433">Source</a><a href="#method.SQRT_2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#tymethod.SQRT_2" class="fn">SQRT_2</a>() -> Self</h4></section></summary><div class='docblock'>Return <code>sqrt(2.0)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.LOG10_2" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1436-1441">Source</a><a href="#method.LOG10_2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#method.LOG10_2" class="fn">LOG10_2</a>() -> Self<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Self, Output = Self>,</div></h4></section></summary><div class='docblock'>Return <code>log10(2.0)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.LOG2_10" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1444-1449">Source</a><a href="#method.LOG2_10" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#method.LOG2_10" class="fn">LOG2_10</a>() -> Self<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Self, Output = Self>,</div></h4></section></summary><div class='docblock'>Return <code>log2(10.0)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.TAU" class="method trait-impl"><a class="src rightside" href="../src/num_traits/float.rs.html#2210-2243">Source</a><a href="#method.TAU" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatConst.html#method.TAU" class="fn">TAU</a>() -> Self<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><Output = Self>,</div></h4></section></summary><div class='docblock'>Return the full circle constant <code>τ</code>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FloatCore-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#901-1064">Source</a><a href="#impl-FloatCore-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/float/trait.FloatCore.html" title="trait num_traits::float::FloatCore">FloatCore</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.infinity" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#903-905">Source</a><a href="#method.infinity" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.infinity" class="fn">infinity</a>() -> Self</h4></section></summary><div class='docblock'>Returns positive infinity. <a href="../num_traits/float/trait.FloatCore.html#tymethod.infinity">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.neg_infinity" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#908-910">Source</a><a href="#method.neg_infinity" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.neg_infinity" class="fn">neg_infinity</a>() -> Self</h4></section></summary><div class='docblock'>Returns negative infinity. <a href="../num_traits/float/trait.FloatCore.html#tymethod.neg_infinity">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.nan" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#913-915">Source</a><a href="#method.nan" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.nan" class="fn">nan</a>() -> Self</h4></section></summary><div class='docblock'>Returns NaN. <a href="../num_traits/float/trait.FloatCore.html#tymethod.nan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.neg_zero" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#918-920">Source</a><a href="#method.neg_zero" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.neg_zero" class="fn">neg_zero</a>() -> Self</h4></section></summary><div class='docblock'>Returns <code>-0.0</code>. <a href="../num_traits/float/trait.FloatCore.html#tymethod.neg_zero">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_value" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#923-925">Source</a><a href="#method.min_value" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.min_value" class="fn">min_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the smallest finite value that this type can represent. <a href="../num_traits/float/trait.FloatCore.html#tymethod.min_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_positive_value" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#928-930">Source</a><a href="#method.min_positive_value" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.min_positive_value" class="fn">min_positive_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the smallest positive, normalized value that this type can represent. <a href="../num_traits/float/trait.FloatCore.html#tymethod.min_positive_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.epsilon" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#933-935">Source</a><a href="#method.epsilon" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.epsilon" class="fn">epsilon</a>() -> Self</h4></section></summary><div class='docblock'>Returns epsilon, a small positive value. <a href="../num_traits/float/trait.FloatCore.html#tymethod.epsilon">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max_value" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#938-940">Source</a><a href="#method.max_value" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.max_value" class="fn">max_value</a>() -> Self</h4></section></summary><div class='docblock'>Returns the largest finite value that this type can represent. <a href="../num_traits/float/trait.FloatCore.html#tymethod.max_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_nan-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#943-945">Source</a><a href="#method.is_nan-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_nan" class="fn">is_nan</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is NaN. <a href="../num_traits/float/trait.FloatCore.html#method.is_nan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_infinite-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#948-950">Source</a><a href="#method.is_infinite-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_infinite" class="fn">is_infinite</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is infinite. <a href="../num_traits/float/trait.FloatCore.html#method.is_infinite">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_finite-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#953-955">Source</a><a href="#method.is_finite-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_finite" class="fn">is_finite</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is neither infinite or NaN. <a href="../num_traits/float/trait.FloatCore.html#method.is_finite">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_normal-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#958-960">Source</a><a href="#method.is_normal-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_normal" class="fn">is_normal</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is neither zero, infinite, subnormal or NaN. <a href="../num_traits/float/trait.FloatCore.html#method.is_normal">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.classify-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#963-965">Source</a><a href="#method.classify-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.classify" class="fn">classify</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/num/enum.FpCategory.html" title="enum core::num::FpCategory">FpCategory</a></h4></section></summary><div class='docblock'>Returns the floating point category of the number. If only one property
is going to be tested, it is generally faster to use the specific
predicate instead. <a href="../num_traits/float/trait.FloatCore.html#tymethod.classify">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.floor" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#968-970">Source</a><a href="#method.floor" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.floor" class="fn">floor</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the largest integer less than or equal to a number. <a href="../num_traits/float/trait.FloatCore.html#method.floor">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ceil" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#973-975">Source</a><a href="#method.ceil" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.ceil" class="fn">ceil</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the smallest integer greater than or equal to a number. <a href="../num_traits/float/trait.FloatCore.html#method.ceil">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.round" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#978-980">Source</a><a href="#method.round" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.round" class="fn">round</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the nearest integer to a number. Round half-way cases away from <code>0.0</code>. <a href="../num_traits/float/trait.FloatCore.html#method.round">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.trunc" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#983-985">Source</a><a href="#method.trunc" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.trunc" class="fn">trunc</a>(self) -> Self</h4></section></summary><div class='docblock'>Return the integer part of a number. <a href="../num_traits/float/trait.FloatCore.html#method.trunc">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fract" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#988-990">Source</a><a href="#method.fract" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.fract" class="fn">fract</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the fractional part of a number. <a href="../num_traits/float/trait.FloatCore.html#method.fract">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.abs" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#993-995">Source</a><a href="#method.abs" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.abs" class="fn">abs</a>(self) -> Self</h4></section></summary><div class='docblock'>Computes the absolute value of <code>self</code>. Returns <code>FloatCore::nan()</code> if the
number is <code>FloatCore::nan()</code>. <a href="../num_traits/float/trait.FloatCore.html#method.abs">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.signum-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#998-1000">Source</a><a href="#method.signum-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.signum" class="fn">signum</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns a number that represents the sign of <code>self</code>. <a href="../num_traits/float/trait.FloatCore.html#method.signum">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_positive-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1003-1005">Source</a><a href="#method.is_sign_positive-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_sign_positive" class="fn">is_sign_positive</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is positive, including <code>+0.0</code> and
<code>FloatCore::infinity()</code>, and <code>FloatCore::nan()</code>. <a href="../num_traits/float/trait.FloatCore.html#method.is_sign_positive">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_negative-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1008-1010">Source</a><a href="#method.is_sign_negative-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_sign_negative" class="fn">is_sign_negative</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is negative, including <code>-0.0</code> and
<code>FloatCore::neg_infinity()</code>, and <code>-FloatCore::nan()</code>. <a href="../num_traits/float/trait.FloatCore.html#method.is_sign_negative">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1012-1024">Source</a><a href="#method.min-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.min" class="fn">min</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Returns the minimum of the two numbers. <a href="../num_traits/float/trait.FloatCore.html#method.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1026-1038">Source</a><a href="#method.max-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.max" class="fn">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'>Returns the maximum of the two numbers. <a href="../num_traits/float/trait.FloatCore.html#method.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.recip" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1041-1043">Source</a><a href="#method.recip" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.recip" class="fn">recip</a>(self) -> Self</h4></section></summary><div class='docblock'>Returns the reciprocal (multiplicative inverse) of the number. <a href="../num_traits/float/trait.FloatCore.html#method.recip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.powi" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1046-1048">Source</a><a href="#method.powi" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.powi" class="fn">powi</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a>) -> Self</h4></section></summary><div class='docblock'>Raise a number to an integer power. <a href="../num_traits/float/trait.FloatCore.html#method.powi">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_degrees" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1051-1053">Source</a><a href="#method.to_degrees" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.to_degrees" class="fn">to_degrees</a>(self) -> Self</h4></section></summary><div class='docblock'>Converts to degrees, assuming the number is in radians. <a href="../num_traits/float/trait.FloatCore.html#tymethod.to_degrees">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_radians" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1056-1058">Source</a><a href="#method.to_radians" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.to_radians" class="fn">to_radians</a>(self) -> Self</h4></section></summary><div class='docblock'>Converts to radians, assuming the number is in degrees. <a href="../num_traits/float/trait.FloatCore.html#tymethod.to_radians">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.integer_decode" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1061-1063">Source</a><a href="#method.integer_decode" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#tymethod.integer_decode" class="fn">integer_decode</a>(self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a>, <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>)</h4></section></summary><div class='docblock'>Returns the mantissa, base 2 exponent, and sign as integers, respectively.
The original number can be recovered by <code>sign * mantissa * 2 ^ exponent</code>. <a href="../num_traits/float/trait.FloatCore.html#tymethod.integer_decode">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_subnormal" class="method trait-impl"><a class="src rightside" href="../src/num_traits/float.rs.html#267">Source</a><a href="#method.is_subnormal" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.is_subnormal" class="fn">is_subnormal</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the number is <a href="https://en.wikipedia.org/wiki/Subnormal_number">subnormal</a>. <a href="../num_traits/float/trait.FloatCore.html#method.is_subnormal">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clamp-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/float.rs.html#681">Source</a><a href="#method.clamp-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/float/trait.FloatCore.html#method.clamp" class="fn">clamp</a>(self, min: Self, max: Self) -> Self</h4></section></summary><div class='docblock'>A value bounded by a minimum and a maximum <a href="../num_traits/float/trait.FloatCore.html#method.clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cbf16%3E-for-f32" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#792-797">Source</a><a href="#impl-From%3Cbf16%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#794-796">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(x: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cbf16%3E-for-f64" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#799-804">Source</a><a href="#impl-From%3Cbf16%3E-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#801-803">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(x: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Ci8%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#806-812">Source</a><a href="#impl-From%3Ci8%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#808-811">Source</a><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(x: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3Cu8%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#814-820">Source</a><a href="#impl-From%3Cu8%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#816-819">Source</a><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(x: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>) -> <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromBytes-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1536-1550">Source</a><a href="#impl-FromBytes-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/ops/bytes/trait.FromBytes.html" title="trait num_traits::ops::bytes::FromBytes">FromBytes</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Bytes-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1537">Source</a><a href="#associatedtype.Bytes-1" class="anchor">§</a><h4 class="code-header">type <a href="../num_traits/ops/bytes/trait.FromBytes.html#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]</h4></section><details class="toggle method-toggle" open><summary><section id="method.from_be_bytes-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1539-1541">Source</a><a href="#method.from_be_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/ops/bytes/trait.FromBytes.html#tymethod.from_be_bytes" class="fn">from_be_bytes</a>(bytes: &Self::<a class="associatedtype" href="../num_traits/ops/bytes/trait.FromBytes.html#associatedtype.Bytes" title="type num_traits::ops::bytes::FromBytes::Bytes">Bytes</a>) -> Self</h4></section></summary><div class='docblock'>Create a number from its representation as a byte array in big endian. <a href="../num_traits/ops/bytes/trait.FromBytes.html#tymethod.from_be_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.from_le_bytes-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1543-1545">Source</a><a href="#method.from_le_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/ops/bytes/trait.FromBytes.html#tymethod.from_le_bytes" class="fn">from_le_bytes</a>(bytes: &Self::<a class="associatedtype" href="../num_traits/ops/bytes/trait.FromBytes.html#associatedtype.Bytes" title="type num_traits::ops::bytes::FromBytes::Bytes">Bytes</a>) -> Self</h4></section></summary><div class='docblock'>Create a number from its representation as a byte array in little endian. <a href="../num_traits/ops/bytes/trait.FromBytes.html#tymethod.from_le_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.from_ne_bytes-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1547-1549">Source</a><a href="#method.from_ne_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/ops/bytes/trait.FromBytes.html#method.from_ne_bytes" class="fn">from_ne_bytes</a>(bytes: &Self::<a class="associatedtype" href="../num_traits/ops/bytes/trait.FromBytes.html#associatedtype.Bytes" title="type num_traits::ops::bytes::FromBytes::Bytes">Bytes</a>) -> Self</h4></section></summary><div class='docblock'>Create a number from its memory representation as a byte array in native endianness. <a href="../num_traits/ops/bytes/trait.FromBytes.html#method.from_ne_bytes">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromPrimitive-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#823-864">Source</a><a href="#impl-FromPrimitive-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_i64" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#825-827">Source</a><a href="#method.from_i64" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64" class="fn">from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i64.html">i64</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>i64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_u64" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#829-831">Source</a><a href="#method.from_u64" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64" class="fn">from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>u64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_i8" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#833-835">Source</a><a href="#method.from_i8" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i8" class="fn">from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>i8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_u8" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#837-839">Source</a><a href="#method.from_u8" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u8" class="fn">from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>u8</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_i16" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#841-843">Source</a><a href="#method.from_i16" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i16" class="fn">from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>i16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_u16" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#845-847">Source</a><a href="#method.from_u16" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u16" class="fn">from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>u16</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_i32" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#849-851">Source</a><a href="#method.from_i32" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i32" class="fn">from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>i32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_u32" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#853-855">Source</a><a href="#method.from_u32" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u32" class="fn">from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>u32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f32-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#857-859">Source</a><a href="#method.from_f32-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f32" class="fn">from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts a <code>f32</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_f64-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#861-863">Source</a><a href="#method.from_f64-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64" class="fn">from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts a <code>f64</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.from_isize" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#391">Source</a><a href="#method.from_isize" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_isize" class="fn">from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.isize.html">isize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_i128" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#426">Source</a><a href="#method.from_i128" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128" class="fn">from_i128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i128.html">i128</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>i128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_i128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.from_usize" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#433">Source</a><a href="#method.from_usize" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_usize" class="fn">from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts a <code>usize</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_u128" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#468">Source</a><a href="#method.from_u128" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128" class="fn">from_u128</a>(n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u128.html">u128</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Converts an <code>u128</code> to return an optional value of this type. If the
value cannot be represented by this type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.FromPrimitive.html#method.from_u128">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromStr-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#922-927">Source</a><a href="#impl-FromStr-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Err" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#923">Source</a><a href="#associatedtype.Err" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/str/traits/trait.FromStr.html#associatedtype.Err" class="associatedtype">Err</a> = <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/num/dec2flt/struct.ParseFloatError.html" title="struct core::num::dec2flt::ParseFloatError">ParseFloatError</a></h4></section></summary><div class='docblock'>The associated error which can be returned from parsing.</div></details><details class="toggle method-toggle" open><summary><section id="method.from_str" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#924-926">Source</a><a href="#method.from_str" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/str/traits/trait.FromStr.html#tymethod.from_str" class="fn">from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/num/dec2flt/struct.ParseFloatError.html" title="struct core::num::dec2flt::ParseFloatError">ParseFloatError</a>></h4></section></summary><div class='docblock'>Parses a string <code>s</code> to return a value of this type. <a href="https://doc.rust-lang.org/1.85.0/core/str/traits/trait.FromStr.html#tymethod.from_str">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-LowerExp-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#944-948">Source</a><a href="#impl-LowerExp-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#945-947">Source</a><a href="#method.fmt-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.LowerExp.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.LowerExp.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-LowerHex-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#972-976">Source</a><a href="#impl-LowerHex-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-6" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#973-975">Source</a><a href="#method.fmt-6" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.LowerHex.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.LowerHex.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26bf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1117-1124">Source</a><a href="#impl-Mul%3C%26bf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1118">Source</a><a href="#associatedtype.Output-12" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1121-1123">Source</a><a href="#method.mul-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1108-1115">Source</a><a href="#impl-Mul%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1109">Source</a><a href="#associatedtype.Output-11" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1112-1114">Source</a><a href="#method.mul-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3Cbf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1126-1133">Source</a><a href="#impl-Mul%3Cbf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1127">Source</a><a href="#associatedtype.Output-13" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1130-1132">Source</a><a href="#method.mul-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, rhs: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1100-1106">Source</a><a href="#impl-Mul-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1101">Source</a><a href="#associatedtype.Output-10" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1103-1105">Source</a><a href="#method.mul" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, rhs: Self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-MulAssign%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1142-1147">Source</a><a href="#impl-MulAssign%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.mul_assign-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1144-1146">Source</a><a href="#method.mul_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign" class="fn">mul_assign</a>(&mut self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>)</h4></section></summary><div class='docblock'>Performs the <code>*=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-MulAssign-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1135-1140">Source</a><a href="#impl-MulAssign-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.mul_assign" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1137-1139">Source</a><a href="#method.mul_assign" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign" class="fn">mul_assign</a>(&mut self, rhs: Self)</h4></section></summary><div class='docblock'>Performs the <code>*=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Neg-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#993-1000">Source</a><a href="#impl-Neg-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#994">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#associatedtype.Output" title="type core::ops::arith::Neg::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.neg-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#997-999">Source</a><a href="#method.neg-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#tymethod.neg" class="fn">neg</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#associatedtype.Output" title="type core::ops::arith::Neg::Output">Output</a></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Neg-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#985-991">Source</a><a href="#impl-Neg-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#986">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.neg" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#988-990">Source</a><a href="#method.neg" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#tymethod.neg" class="fn">neg</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#associatedtype.Output" title="type core::ops::arith::Neg::Output">Output</a></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Num-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#866-873">Source</a><a href="#impl-Num-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.FromStrRadixErr" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#867">Source</a><a href="#associatedtype.FromStrRadixErr" class="anchor">§</a><h4 class="code-header">type <a href="../num_traits/trait.Num.html#associatedtype.FromStrRadixErr" class="associatedtype">FromStrRadixErr</a> = <<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a> as <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a>>::<a class="associatedtype" href="../num_traits/trait.Num.html#associatedtype.FromStrRadixErr" title="type num_traits::Num::FromStrRadixErr">FromStrRadixErr</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.from_str_radix" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#870-872">Source</a><a href="#method.from_str_radix" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/trait.Num.html#tymethod.from_str_radix" class="fn">from_str_radix</a>(str: &<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.str.html">str</a>, radix: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Self::<a class="associatedtype" href="../num_traits/trait.Num.html#associatedtype.FromStrRadixErr" title="type num_traits::Num::FromStrRadixErr">FromStrRadixErr</a>></h4></section></summary><div class='docblock'>Convert from a string and radix (typically <code>2..=36</code>). <a href="../num_traits/trait.Num.html#tymethod.from_str_radix">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-NumCast-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#894-899">Source</a><a href="#impl-NumCast-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#896-898">Source</a><a href="#method.from-4" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.NumCast.html#tymethod.from" class="fn">from</a><T: <a class="trait" href="../num_traits/cast/trait.ToPrimitive.html" title="trait num_traits::cast::ToPrimitive">ToPrimitive</a>>(n: T) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Creates a number from another value that can be converted into
a primitive via the <code>ToPrimitive</code> trait. If the source value cannot be
represented by the target type, then <code>None</code> is returned. <a href="../num_traits/cast/trait.NumCast.html#tymethod.from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Octal-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#965-969">Source</a><a href="#impl-Octal-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-5" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#966-968">Source</a><a href="#method.fmt-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Octal.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Octal.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-One-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#875-880">Source</a><a href="#impl-One-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/identities/trait.One.html" title="trait num_traits::identities::One">One</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.one" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#877-879">Source</a><a href="#method.one" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#tymethod.one" class="fn">one</a>() -> Self</h4></section></summary><div class='docblock'>Returns the multiplicative identity element of <code>Self</code>, <code>1</code>. <a href="../num_traits/identities/trait.One.html#tymethod.one">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_one" class="method trait-impl"><a class="src rightside" href="../src/num_traits/identities.rs.html#118">Source</a><a href="#method.set_one" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#method.set_one" class="fn">set_one</a>(&mut self)</h4></section></summary><div class='docblock'>Sets <code>self</code> to the multiplicative identity element of <code>Self</code>, <code>1</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_one" class="method trait-impl"><a class="src rightside" href="../src/num_traits/identities.rs.html#128-130">Source</a><a href="#method.is_one" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/identities/trait.One.html#method.is_one" class="fn">is_one</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,</div></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is equal to the multiplicative identity. <a href="../num_traits/identities/trait.One.html#method.is_one">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#822-830">Source</a><a href="#impl-PartialEq-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#823-829">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.85.0/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialOrd-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#832-919">Source</a><a href="#impl-PartialOrd-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#833-858">Source</a><a href="#method.partial_cmp" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fn">partial_cmp</a>(&self, other: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.85.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></h4></section></summary><div class='docblock'>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.85.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#860-873">Source</a><a href="#method.lt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.lt" class="fn">lt</a>(&self, other: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.le" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#875-888">Source</a><a href="#method.le" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.le" class="fn">le</a>(&self, other: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the
<code><=</code> operator. <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.le">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#890-903">Source</a><a href="#method.gt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.gt" class="fn">gt</a>(&self, other: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code>
operator. <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#905-918">Source</a><a href="#method.ge" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.ge" class="fn">ge</a>(&self, other: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by
the <code>>=</code> operator. <a href="https://doc.rust-lang.org/1.85.0/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Product%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1254-1259">Source</a><a href="#impl-Product%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a><&'a <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.product-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1256-1258">Source</a><a href="#method.product-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Product.html#tymethod.product" class="fn">product</a><I: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &'a <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>>>(iter: I) -> Self</h4></section></summary><div class='docblock'>Takes an iterator and generates <code>Self</code> from the elements by multiplying
the items.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Product-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1247-1252">Source</a><a href="#impl-Product-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.product" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1249-1251">Source</a><a href="#method.product" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Product.html#tymethod.product" class="fn">product</a><I: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = Self>>(iter: I) -> Self</h4></section></summary><div class='docblock'>Takes an iterator and generates <code>Self</code> from the elements by multiplying
the items.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Rem%3C%26bf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1215-1222">Source</a><a href="#impl-Rem%3C%26bf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-20" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1216">Source</a><a href="#associatedtype.Output-20" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.rem-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1219-1221">Source</a><a href="#method.rem-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fn">rem</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Rem%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1206-1213">Source</a><a href="#impl-Rem%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-19" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1207">Source</a><a href="#associatedtype.Output-19" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.rem-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1210-1212">Source</a><a href="#method.rem-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fn">rem</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Rem%3Cbf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1224-1231">Source</a><a href="#impl-Rem%3Cbf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-21" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1225">Source</a><a href="#associatedtype.Output-21" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.rem-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1228-1230">Source</a><a href="#method.rem-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fn">rem</a>(self, rhs: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Rem-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1198-1204">Source</a><a href="#impl-Rem-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-18" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1199">Source</a><a href="#associatedtype.Output-18" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>%</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.rem" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1201-1203">Source</a><a href="#method.rem" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem" class="fn">rem</a>(self, rhs: Self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#associatedtype.Output" title="type core::ops::arith::Rem::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>%</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html#tymethod.rem">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RemAssign%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1240-1245">Source</a><a href="#impl-RemAssign%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.rem_assign-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1242-1244">Source</a><a href="#method.rem_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign" class="fn">rem_assign</a>(&mut self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>)</h4></section></summary><div class='docblock'>Performs the <code>%=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RemAssign-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1233-1238">Source</a><a href="#impl-RemAssign-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.rem_assign" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1235-1237">Source</a><a href="#method.rem_assign" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign" class="fn">rem_assign</a>(&mut self, rhs: Self)</h4></section></summary><div class='docblock'>Performs the <code>%=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html#tymethod.rem_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26bf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1068-1075">Source</a><a href="#impl-Sub%3C%26bf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1069">Source</a><a href="#associatedtype.Output-8" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-2" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1072-1074">Source</a><a href="#method.sub-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1059-1066">Source</a><a href="#impl-Sub%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1060">Source</a><a href="#associatedtype.Output-7" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1063-1065">Source</a><a href="#method.sub-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub%3Cbf16%3E-for-%26bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1077-1084">Source</a><a href="#impl-Sub%3Cbf16%3E-for-%26bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1078">Source</a><a href="#associatedtype.Output-9" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a> as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1081-1083">Source</a><a href="#method.sub-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, rhs: <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1051-1057">Source</a><a href="#impl-Sub-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1052">Source</a><a href="#associatedtype.Output-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1054-1056">Source</a><a href="#method.sub" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, rhs: Self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-SubAssign%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1093-1098">Source</a><a href="#impl-SubAssign%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><&<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sub_assign-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1095-1097">Source</a><a href="#method.sub_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign" class="fn">sub_assign</a>(&mut self, rhs: &<a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>)</h4></section></summary><div class='docblock'>Performs the <code>-=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-SubAssign-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1086-1091">Source</a><a href="#impl-SubAssign-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sub_assign" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1088-1090">Source</a><a href="#method.sub_assign" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign" class="fn">sub_assign</a>(&mut self, rhs: Self)</h4></section></summary><div class='docblock'>Performs the <code>-=</code> operation. <a href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sum%3C%26bf16%3E-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1268-1273">Source</a><a href="#impl-Sum%3C%26bf16%3E-for-bf16" class="anchor">§</a><h3 class="code-header">impl<'a> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a><&'a <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sum-1" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1270-1272">Source</a><a href="#method.sum-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Sum.html#tymethod.sum" class="fn">sum</a><I: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &'a <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a>>>(iter: I) -> Self</h4></section></summary><div class='docblock'>Takes an iterator and generates <code>Self</code> from the elements by “summing up”
the items.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sum-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1261-1266">Source</a><a href="#impl-Sum-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sum" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#1263-1265">Source</a><a href="#method.sum" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/iter/traits/accum/trait.Sum.html#tymethod.sum" class="fn">sum</a><I: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = Self>>(iter: I) -> Self</h4></section></summary><div class='docblock'>Takes an iterator and generates <code>Self</code> from the elements by “summing up”
the items.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToBytes-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1520-1534">Source</a><a href="#impl-ToBytes-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/ops/bytes/trait.ToBytes.html" title="trait num_traits::ops::bytes::ToBytes">ToBytes</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Bytes" class="associatedtype trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1521">Source</a><a href="#associatedtype.Bytes" class="anchor">§</a><h4 class="code-header">type <a href="../num_traits/ops/bytes/trait.ToBytes.html#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.array.html">2</a>]</h4></section><details class="toggle method-toggle" open><summary><section id="method.to_be_bytes-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1523-1525">Source</a><a href="#method.to_be_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/ops/bytes/trait.ToBytes.html#tymethod.to_be_bytes" class="fn">to_be_bytes</a>(&self) -> Self::<a class="associatedtype" href="../num_traits/ops/bytes/trait.ToBytes.html#associatedtype.Bytes" title="type num_traits::ops::bytes::ToBytes::Bytes">Bytes</a></h4></section></summary><div class='docblock'>Return the memory representation of this number as a byte array in big-endian byte order. <a href="../num_traits/ops/bytes/trait.ToBytes.html#tymethod.to_be_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_le_bytes-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1527-1529">Source</a><a href="#method.to_le_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/ops/bytes/trait.ToBytes.html#tymethod.to_le_bytes" class="fn">to_le_bytes</a>(&self) -> Self::<a class="associatedtype" href="../num_traits/ops/bytes/trait.ToBytes.html#associatedtype.Bytes" title="type num_traits::ops::bytes::ToBytes::Bytes">Bytes</a></h4></section></summary><div class='docblock'>Return the memory representation of this number as a byte array in little-endian byte order. <a href="../num_traits/ops/bytes/trait.ToBytes.html#tymethod.to_le_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_ne_bytes-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#1531-1533">Source</a><a href="#method.to_ne_bytes-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/ops/bytes/trait.ToBytes.html#method.to_ne_bytes" class="fn">to_ne_bytes</a>(&self) -> Self::<a class="associatedtype" href="../num_traits/ops/bytes/trait.ToBytes.html#associatedtype.Bytes" title="type num_traits::ops::bytes::ToBytes::Bytes">Bytes</a></h4></section></summary><div class='docblock'>Return the memory representation of this number as a byte array in native byte order. <a href="../num_traits/ops/bytes/trait.ToBytes.html#method.to_ne_bytes">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToPrimitive-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#780-821">Source</a><a href="#impl-ToPrimitive-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/cast/trait.ToPrimitive.html" title="trait num_traits::cast::ToPrimitive">ToPrimitive</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_i64" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#782-784">Source</a><a href="#method.to_i64" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#tymethod.to_i64" class="fn">to_i64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i64.html">i64</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i64</code>. If the value cannot be
represented by an <code>i64</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_u64" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#786-788">Source</a><a href="#method.to_u64" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#tymethod.to_u64" class="fn">to_u64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u64.html">u64</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u64</code>. If the value cannot be
represented by a <code>u64</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_i8" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#790-792">Source</a><a href="#method.to_i8" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i8" class="fn">to_i8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i8.html">i8</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i8</code>. If the value cannot be
represented by an <code>i8</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_u8" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#794-796">Source</a><a href="#method.to_u8" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u8" class="fn">to_u8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u8</code>. If the value cannot be
represented by a <code>u8</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_i16" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#798-800">Source</a><a href="#method.to_i16" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i16" class="fn">to_i16</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i16.html">i16</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i16</code>. If the value cannot be
represented by an <code>i16</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_u16" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#802-804">Source</a><a href="#method.to_u16" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u16" class="fn">to_u16</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u16.html">u16</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u16</code>. If the value cannot be
represented by a <code>u16</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_i32" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#806-808">Source</a><a href="#method.to_i32" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i32" class="fn">to_i32</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i32</code>. If the value cannot be
represented by an <code>i32</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_u32" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#810-812">Source</a><a href="#method.to_u32" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u32" class="fn">to_u32</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u32.html">u32</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u32</code>. If the value cannot be
represented by a <code>u32</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_f32-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#814-816">Source</a><a href="#method.to_f32-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f32" class="fn">to_f32</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>f32</code>. Overflows may map to positive
or negative inifinity, otherwise <code>None</code> is returned if the value cannot
be represented by an <code>f32</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_f64-1" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#818-820">Source</a><a href="#method.to_f64-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f64" class="fn">to_f64</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.f64.html">f64</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>f64</code>. Overflows may map to positive
or negative inifinity, otherwise <code>None</code> is returned if the value cannot
be represented by an <code>f64</code>. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_f64">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_isize" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#21">Source</a><a href="#method.to_isize" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_isize" class="fn">to_isize</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.isize.html">isize</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>isize</code>. If the value cannot be
represented by an <code>isize</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_i128" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#57">Source</a><a href="#method.to_i128" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i128" class="fn">to_i128</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i128.html">i128</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to an <code>i128</code>. If the value cannot be
represented by an <code>i128</code> (<code>i64</code> under the default implementation), then
<code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_i128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_usize" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#64">Source</a><a href="#method.to_usize" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_usize" class="fn">to_usize</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.usize.html">usize</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>usize</code>. If the value cannot be
represented by a <code>usize</code>, then <code>None</code> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_u128" class="method trait-impl"><a class="src rightside" href="../src/num_traits/cast.rs.html#100">Source</a><a href="#method.to_u128" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u128" class="fn">to_u128</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u128.html">u128</a>></h4></section></summary><div class='docblock'>Converts the value of <code>self</code> to a <code>u128</code>. If the value cannot be
represented by a <code>u128</code> (<code>u64</code> under the default implementation), then
<code>None</code> is returned. <a href="../num_traits/cast/trait.ToPrimitive.html#method.to_u128">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-UpperExp-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#951-955">Source</a><a href="#impl-UpperExp-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-3" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#952-954">Source</a><a href="#method.fmt-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.UpperExp.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.UpperExp.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-UpperHex-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#979-983">Source</a><a href="#impl-UpperHex-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-7" class="method trait-impl"><a class="src rightside" href="../src/half/bfloat.rs.html#980-982">Source</a><a href="#method.fmt-7" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.UpperHex.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.UpperHex.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Zero-for-bf16" class="impl"><a class="src rightside" href="../src/half/num_traits.rs.html#882-892">Source</a><a href="#impl-Zero-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../num_traits/identities/trait.Zero.html" title="trait num_traits::identities::Zero">Zero</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.zero" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#884-886">Source</a><a href="#method.zero" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#tymethod.zero" class="fn">zero</a>() -> Self</h4></section></summary><div class='docblock'>Returns the additive identity element of <code>Self</code>, <code>0</code>. <a href="../num_traits/identities/trait.Zero.html#tymethod.zero">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_zero" class="method trait-impl"><a class="src rightside" href="../src/half/num_traits.rs.html#889-891">Source</a><a href="#method.is_zero" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#tymethod.is_zero" class="fn">is_zero</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is equal to the additive identity.</div></details><details class="toggle method-toggle" open><summary><section id="method.set_zero" class="method trait-impl"><a class="src rightside" href="../src/num_traits/identities.rs.html#23">Source</a><a href="#method.set_zero" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/identities/trait.Zero.html#method.set_zero" class="fn">set_zero</a>(&mut self)</h4></section></summary><div class='docblock'>Sets <code>self</code> to the additive identity element of <code>Self</code>, <code>0</code>.</div></details></div></details><section id="impl-Copy-for-bf16" class="impl"><a class="src rightside" href="../src/half/bfloat.rs.html#36">Source</a><a href="#impl-Copy-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section><section id="impl-SealedHalf-for-bf16" class="impl"><a class="src rightside" href="../src/half/lib.rs.html#270">Source</a><a href="#impl-SealedHalf-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="private/trait.SealedHalf.html" title="trait half::private::SealedHalf">SealedHalf</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-bf16" class="impl"><a href="#impl-Freeze-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section><section id="impl-RefUnwindSafe-for-bf16" class="impl"><a href="#impl-RefUnwindSafe-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section><section id="impl-Send-for-bf16" class="impl"><a href="#impl-Send-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section><section id="impl-Sync-for-bf16" class="impl"><a href="#impl-Sync-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section><section id="impl-Unpin-for-bf16" class="impl"><a href="#impl-Unpin-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section><section id="impl-UnwindSafe-for-bf16" class="impl"><a href="#impl-UnwindSafe-for-bf16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.bf16.html" title="struct half::bf16">bf16</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.85.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.85.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.85.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.85.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.85.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#767">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-5" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#770">Source</a><a href="#method.from-5" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#750-752">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#760">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-LowerBounded-for-T" class="impl"><a class="src rightside" href="../src/num_traits/bounds.rs.html#22">Source</a><a href="#impl-LowerBounded-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/bounds/trait.LowerBounded.html" title="trait num_traits::bounds::LowerBounded">LowerBounded</a> for T<div class="where">where
T: <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.min_value-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/bounds.rs.html#23">Source</a><a href="#method.min_value-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/bounds/trait.LowerBounded.html#tymethod.min_value" class="fn">min_value</a>() -> T</h4></section></summary><div class='docblock'>Returns the smallest finite number this type can represent</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Real-for-T" class="impl"><a class="src rightside" href="../src/num_traits/real.rs.html#782">Source</a><a href="#impl-Real-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/real/trait.Real.html" title="trait num_traits::real::Real">Real</a> for T<div class="where">where
T: <a class="trait" href="../num_traits/float/trait.Float.html" title="trait num_traits::float::Float">Float</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.min_value-4" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#783-788">Source</a><a href="#method.min_value-4" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.min_value" class="fn">min_value</a>() -> T</h4></section></summary><div class='docblock'>Returns the smallest finite value that this type can represent. <a href="../num_traits/real/trait.Real.html#tymethod.min_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min_positive_value-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#783-788">Source</a><a href="#method.min_positive_value-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.min_positive_value" class="fn">min_positive_value</a>() -> T</h4></section></summary><div class='docblock'>Returns the smallest positive, normalized value that this type can represent. <a href="../num_traits/real/trait.Real.html#tymethod.min_positive_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.epsilon-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#783-788">Source</a><a href="#method.epsilon-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.epsilon" class="fn">epsilon</a>() -> T</h4></section></summary><div class='docblock'>Returns epsilon, a small positive value. <a href="../num_traits/real/trait.Real.html#tymethod.epsilon">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max_value-4" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#783-788">Source</a><a href="#method.max_value-4" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.max_value" class="fn">max_value</a>() -> T</h4></section></summary><div class='docblock'>Returns the largest finite value that this type can represent. <a href="../num_traits/real/trait.Real.html#tymethod.max_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.floor-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.floor-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.floor" class="fn">floor</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the largest integer less than or equal to a number. <a href="../num_traits/real/trait.Real.html#tymethod.floor">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ceil-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.ceil-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.ceil" class="fn">ceil</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the smallest integer greater than or equal to a number. <a href="../num_traits/real/trait.Real.html#tymethod.ceil">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.round-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.round-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.round" class="fn">round</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the nearest integer to a number. Round half-way cases away from
<code>0.0</code>. <a href="../num_traits/real/trait.Real.html#tymethod.round">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.trunc-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.trunc-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.trunc" class="fn">trunc</a>(self) -> T</h4></section></summary><div class='docblock'>Return the integer part of a number. <a href="../num_traits/real/trait.Real.html#tymethod.trunc">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fract-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.fract-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.fract" class="fn">fract</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the fractional part of a number. <a href="../num_traits/real/trait.Real.html#tymethod.fract">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.abs-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.abs-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.abs" class="fn">abs</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the absolute value of <code>self</code>. Returns <code>Float::nan()</code> if the
number is <code>Float::nan()</code>. <a href="../num_traits/real/trait.Real.html#tymethod.abs">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.signum-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.signum-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.signum" class="fn">signum</a>(self) -> T</h4></section></summary><div class='docblock'>Returns a number that represents the sign of <code>self</code>. <a href="../num_traits/real/trait.Real.html#tymethod.signum">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_positive-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.is_sign_positive-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.is_sign_positive" class="fn">is_sign_positive</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is positive, including <code>+0.0</code>,
<code>Float::infinity()</code>, and with newer versions of Rust <code>f64::NAN</code>. <a href="../num_traits/real/trait.Real.html#tymethod.is_sign_positive">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_sign_negative-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.is_sign_negative-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.is_sign_negative" class="fn">is_sign_negative</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if <code>self</code> is negative, including <code>-0.0</code>,
<code>Float::neg_infinity()</code>, and with newer versions of Rust <code>-f64::NAN</code>. <a href="../num_traits/real/trait.Real.html#tymethod.is_sign_negative">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.mul_add-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.mul_add-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.mul_add" class="fn">mul_add</a>(self, a: T, b: T) -> T</h4></section></summary><div class='docblock'>Fused multiply-add. Computes <code>(self * a) + b</code> with only one rounding
error, yielding a more accurate result than an unfused multiply-add. <a href="../num_traits/real/trait.Real.html#tymethod.mul_add">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.recip-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.recip-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.recip" class="fn">recip</a>(self) -> T</h4></section></summary><div class='docblock'>Take the reciprocal (inverse) of a number, <code>1/x</code>. <a href="../num_traits/real/trait.Real.html#tymethod.recip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.powi-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.powi-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.powi" class="fn">powi</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.i32.html">i32</a>) -> T</h4></section></summary><div class='docblock'>Raise a number to an integer power. <a href="../num_traits/real/trait.Real.html#tymethod.powi">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.powf-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.powf-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.powf" class="fn">powf</a>(self, n: T) -> T</h4></section></summary><div class='docblock'>Raise a number to a real number power. <a href="../num_traits/real/trait.Real.html#tymethod.powf">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sqrt-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.sqrt-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.sqrt" class="fn">sqrt</a>(self) -> T</h4></section></summary><div class='docblock'>Take the square root of a number. <a href="../num_traits/real/trait.Real.html#tymethod.sqrt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.exp-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.exp-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.exp" class="fn">exp</a>(self) -> T</h4></section></summary><div class='docblock'>Returns <code>e^(self)</code>, (the exponential function). <a href="../num_traits/real/trait.Real.html#tymethod.exp">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.exp2-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.exp2-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.exp2" class="fn">exp2</a>(self) -> T</h4></section></summary><div class='docblock'>Returns <code>2^(self)</code>. <a href="../num_traits/real/trait.Real.html#tymethod.exp2">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ln-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.ln-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.ln" class="fn">ln</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the natural logarithm of the number. <a href="../num_traits/real/trait.Real.html#tymethod.ln">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.log-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.log-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.log" class="fn">log</a>(self, base: T) -> T</h4></section></summary><div class='docblock'>Returns the logarithm of the number with respect to an arbitrary base. <a href="../num_traits/real/trait.Real.html#tymethod.log">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.log2-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.log2-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.log2" class="fn">log2</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the base 2 logarithm of the number. <a href="../num_traits/real/trait.Real.html#tymethod.log2">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.log10-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.log10-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.log10" class="fn">log10</a>(self) -> T</h4></section></summary><div class='docblock'>Returns the base 10 logarithm of the number. <a href="../num_traits/real/trait.Real.html#tymethod.log10">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_degrees-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.to_degrees-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.to_degrees" class="fn">to_degrees</a>(self) -> T</h4></section></summary><div class='docblock'>Converts radians to degrees. <a href="../num_traits/real/trait.Real.html#tymethod.to_degrees">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.to_radians-2" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.to_radians-2" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.to_radians" class="fn">to_radians</a>(self) -> T</h4></section></summary><div class='docblock'>Converts degrees to radians. <a href="../num_traits/real/trait.Real.html#tymethod.to_radians">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.max-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.max-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.max" class="fn">max</a>(self, other: T) -> T</h4></section></summary><div class='docblock'>Returns the maximum of the two numbers. <a href="../num_traits/real/trait.Real.html#tymethod.max">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.min-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.min-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.min" class="fn">min</a>(self, other: T) -> T</h4></section></summary><div class='docblock'>Returns the minimum of the two numbers. <a href="../num_traits/real/trait.Real.html#tymethod.min">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.abs_sub-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.abs_sub-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.abs_sub" class="fn">abs_sub</a>(self, other: T) -> T</h4></section></summary><div class='docblock'>The positive difference of two numbers. <a href="../num_traits/real/trait.Real.html#tymethod.abs_sub">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cbrt-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.cbrt-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.cbrt" class="fn">cbrt</a>(self) -> T</h4></section></summary><div class='docblock'>Take the cubic root of a number. <a href="../num_traits/real/trait.Real.html#tymethod.cbrt">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hypot-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.hypot-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.hypot" class="fn">hypot</a>(self, other: T) -> T</h4></section></summary><div class='docblock'>Calculate the length of the hypotenuse of a right-angle triangle given
legs of length <code>x</code> and <code>y</code>. <a href="../num_traits/real/trait.Real.html#tymethod.hypot">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sin-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.sin-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.sin" class="fn">sin</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the sine of a number (in radians). <a href="../num_traits/real/trait.Real.html#tymethod.sin">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cos-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.cos-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.cos" class="fn">cos</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the cosine of a number (in radians). <a href="../num_traits/real/trait.Real.html#tymethod.cos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tan-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.tan-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.tan" class="fn">tan</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the tangent of a number (in radians). <a href="../num_traits/real/trait.Real.html#tymethod.tan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.asin-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.asin-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.asin" class="fn">asin</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the arcsine of a number. Return value is in radians in
the range [-pi/2, pi/2] or NaN if the number is outside the range
[-1, 1]. <a href="../num_traits/real/trait.Real.html#tymethod.asin">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.acos-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.acos-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.acos" class="fn">acos</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the arccosine of a number. Return value is in radians in
the range [0, pi] or NaN if the number is outside the range
[-1, 1]. <a href="../num_traits/real/trait.Real.html#tymethod.acos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.atan-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.atan-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.atan" class="fn">atan</a>(self) -> T</h4></section></summary><div class='docblock'>Computes the arctangent of a number. Return value is in radians in the
range [-pi/2, pi/2]; <a href="../num_traits/real/trait.Real.html#tymethod.atan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.atan2-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.atan2-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.atan2" class="fn">atan2</a>(self, other: T) -> T</h4></section></summary><div class='docblock'>Computes the four quadrant arctangent of <code>self</code> (<code>y</code>) and <code>other</code> (<code>x</code>). <a href="../num_traits/real/trait.Real.html#tymethod.atan2">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sin_cos-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.sin_cos-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.sin_cos" class="fn">sin_cos</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.tuple.html">(T, T)</a></h4></section></summary><div class='docblock'>Simultaneously computes the sine and cosine of the number, <code>x</code>. Returns
<code>(sin(x), cos(x))</code>. <a href="../num_traits/real/trait.Real.html#tymethod.sin_cos">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.exp_m1-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.exp_m1-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.exp_m1" class="fn">exp_m1</a>(self) -> T</h4></section></summary><div class='docblock'>Returns <code>e^(self) - 1</code> in a way that is accurate even if the
number is close to zero. <a href="../num_traits/real/trait.Real.html#tymethod.exp_m1">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ln_1p-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.ln_1p-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.ln_1p" class="fn">ln_1p</a>(self) -> T</h4></section></summary><div class='docblock'>Returns <code>ln(1+n)</code> (natural logarithm) more accurately than if
the operations were performed separately. <a href="../num_traits/real/trait.Real.html#tymethod.ln_1p">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sinh-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.sinh-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.sinh" class="fn">sinh</a>(self) -> T</h4></section></summary><div class='docblock'>Hyperbolic sine function. <a href="../num_traits/real/trait.Real.html#tymethod.sinh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cosh-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.cosh-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.cosh" class="fn">cosh</a>(self) -> T</h4></section></summary><div class='docblock'>Hyperbolic cosine function. <a href="../num_traits/real/trait.Real.html#tymethod.cosh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tanh-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.tanh-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.tanh" class="fn">tanh</a>(self) -> T</h4></section></summary><div class='docblock'>Hyperbolic tangent function. <a href="../num_traits/real/trait.Real.html#tymethod.tanh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.asinh-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.asinh-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.asinh" class="fn">asinh</a>(self) -> T</h4></section></summary><div class='docblock'>Inverse hyperbolic sine function. <a href="../num_traits/real/trait.Real.html#tymethod.asinh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.acosh-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.acosh-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.acosh" class="fn">acosh</a>(self) -> T</h4></section></summary><div class='docblock'>Inverse hyperbolic cosine function. <a href="../num_traits/real/trait.Real.html#tymethod.acosh">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.atanh-1" class="method trait-impl"><a class="src rightside" href="../src/num_traits/real.rs.html#789-833">Source</a><a href="#method.atanh-1" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/real/trait.Real.html#tymethod.atanh" class="fn">atanh</a>(self) -> T</h4></section></summary><div class='docblock'>Inverse hyperbolic tangent function. <a href="../num_traits/real/trait.Real.html#tymethod.atanh">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.85.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.85.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/alloc/string.rs.html#2677">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.85.0/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.85.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/alloc/string.rs.html#2679">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.85.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.85.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#807-809">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#811">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#814">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#792-794">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#796">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.85.0/src/core/convert/mod.rs.html#799">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.85.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UpperBounded-for-T" class="impl"><a class="src rightside" href="../src/num_traits/bounds.rs.html#35">Source</a><a href="#impl-UpperBounded-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/bounds/trait.UpperBounded.html" title="trait num_traits::bounds::UpperBounded">UpperBounded</a> for T<div class="where">where
T: <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.max_value-3" class="method trait-impl"><a class="src rightside" href="../src/num_traits/bounds.rs.html#36">Source</a><a href="#method.max_value-3" class="anchor">§</a><h4 class="code-header">fn <a href="../num_traits/bounds/trait.UpperBounded.html#tymethod.max_value" class="fn">max_value</a>() -> T</h4></section></summary><div class='docblock'>Returns the largest finite number this type can represent</div></details></div></details><section id="impl-NumAssign-for-T" class="impl"><a class="src rightside" href="../src/num_traits/lib.rs.html#152">Source</a><a href="#impl-NumAssign-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> for T<div class="where">where
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>,</div></h3></section><section id="impl-NumAssignOps%3CRhs%3E-for-T" class="impl"><a class="src rightside" href="../src/num_traits/lib.rs.html#143-144">Source</a><a href="#impl-NumAssignOps%3CRhs%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, Rhs> <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a><Rhs> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a><Rhs> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><Rhs>,</div></h3></section><section id="impl-NumAssignRef-for-T" class="impl"><a class="src rightside" href="../src/num_traits/lib.rs.html#159">Source</a><a href="#impl-NumAssignRef-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/trait.NumAssignRef.html" title="trait num_traits::NumAssignRef">NumAssignRef</a> for T<div class="where">where
T: <a class="trait" href="../num_traits/trait.NumAssign.html" title="trait num_traits::NumAssign">NumAssign</a> + for<'r> <a class="trait" href="../num_traits/trait.NumAssignOps.html" title="trait num_traits::NumAssignOps">NumAssignOps</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&'r T</a>>,</div></h3></section><section id="impl-NumOps%3CRhs,+Output%3E-for-T" class="impl"><a class="src rightside" href="../src/num_traits/lib.rs.html#110-115">Source</a><a href="#impl-NumOps%3CRhs,+Output%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, Rhs, Output> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><Rhs, Output> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><Rhs, Output = Output> + <a class="trait" href="https://doc.rust-lang.org/1.85.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><Rhs, Output = Output>,</div></h3></section><section id="impl-NumRef-for-T" class="impl"><a class="src rightside" href="../src/num_traits/lib.rs.html#124">Source</a><a href="#impl-NumRef-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../num_traits/trait.NumRef.html" title="trait num_traits::NumRef">NumRef</a> for T<div class="where">where
T: <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + for<'r> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&'r T</a>>,</div></h3></section><section id="impl-RefNum%3CBase%3E-for-T" class="impl"><a class="src rightside" href="../src/num_traits/lib.rs.html#133">Source</a><a href="#impl-RefNum%3CBase%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, Base> <a class="trait" href="../num_traits/trait.RefNum.html" title="trait num_traits::RefNum">RefNum</a><Base> for T<div class="where">where
T: <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><Base, Base> + for<'r> <a class="trait" href="../num_traits/trait.NumOps.html" title="trait num_traits::NumOps">NumOps</a><<a class="primitive" href="https://doc.rust-lang.org/1.85.0/std/primitive.reference.html">&'r Base</a>, Base>,</div></h3></section></div></section></div></main></body></html>