unit_conversions/volume.rs
1// <auto-generated>
2// This code was generated by the UnitCodeGenerator tool
3//
4// Changes to this file will be lost if the code is regenerated
5// </auto-generated>
6
7//! # Volume based converters
8
9/// Cubic Feet conversion functions
10pub mod cubic_feet {
11 /// Converts the supplied Cubic Feet value to Millilitres
12 /// # Arguments
13 /// * `value` - The Cubic Feet input value
14 pub fn to_millilitres(value: f64) -> f64 {
15 return value * 28316.8;
16 }
17 /// Converts the supplied Cubic Feet value to Litres
18 /// # Arguments
19 /// * `value` - The Cubic Feet input value
20 pub fn to_litres(value: f64) -> f64 {
21 return value * 28.3168;
22 }
23 /// Converts the supplied Cubic Feet value to Kilolitres
24 /// # Arguments
25 /// * `value` - The Cubic Feet input value
26 pub fn to_kilolitres(value: f64) -> f64 {
27 return value / 35.3147;
28 }
29 /// Converts the supplied Cubic Feet value to Teaspoons
30 /// # Arguments
31 /// * `value` - The Cubic Feet input value
32 pub fn to_teaspoons(value: f64) -> f64 {
33 return value * 4783.74;
34 }
35 /// Converts the supplied Cubic Feet value to Tablespoons
36 /// # Arguments
37 /// * `value` - The Cubic Feet input value
38 pub fn to_tablespoons(value: f64) -> f64 {
39 return value * 1594.58;
40 }
41 /// Converts the supplied Cubic Feet value to Quarts
42 /// # Arguments
43 /// * `value` - The Cubic Feet input value
44 pub fn to_quarts(value: f64) -> f64 {
45 return value * 24.9153;
46 }
47 /// Converts the supplied Cubic Feet value to Pints
48 /// # Arguments
49 /// * `value` - The Cubic Feet input value
50 pub fn to_pints(value: f64) -> f64 {
51 return value * 49.8307;
52 }
53 /// Converts the supplied Cubic Feet value to Gallons
54 /// # Arguments
55 /// * `value` - The Cubic Feet input value
56 pub fn to_gallons(value: f64) -> f64 {
57 return value * 6.22884;
58 }
59 /// Converts the supplied Cubic Feet value to Fluid Ounces
60 /// # Arguments
61 /// * `value` - The Cubic Feet input value
62 pub fn to_fluid_ounces(value: f64) -> f64 {
63 return value * 996.614;
64 }
65 /// Converts the supplied Cubic Feet value to US Teaspoons
66 /// # Arguments
67 /// * `value` - The Cubic Feet input value
68 pub fn to_u_s_teaspoons(value: f64) -> f64 {
69 return value * 5745.04;
70 }
71 /// Converts the supplied Cubic Feet value to US Tablespoons
72 /// # Arguments
73 /// * `value` - The Cubic Feet input value
74 pub fn to_u_s_tablespoons(value: f64) -> f64 {
75 return value * 1915.01;
76 }
77 /// Converts the supplied Cubic Feet value to US Quarts
78 /// # Arguments
79 /// * `value` - The Cubic Feet input value
80 pub fn to_u_s_quarts(value: f64) -> f64 {
81 return value * 29.9221;
82 }
83 /// Converts the supplied Cubic Feet value to US Pints
84 /// # Arguments
85 /// * `value` - The Cubic Feet input value
86 pub fn to_u_s_pints(value: f64) -> f64 {
87 return value * 59.8442;
88 }
89 /// Converts the supplied Cubic Feet value to US Gallons
90 /// # Arguments
91 /// * `value` - The Cubic Feet input value
92 pub fn to_u_s_gallons(value: f64) -> f64 {
93 return value * 7.48052;
94 }
95 /// Converts the supplied Cubic Feet value to US Fluid Ounces
96 /// # Arguments
97 /// * `value` - The Cubic Feet input value
98 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
99 return value * 957.506;
100 }
101 /// Converts the supplied Cubic Feet value to US Cups
102 /// # Arguments
103 /// * `value` - The Cubic Feet input value
104 pub fn to_u_s_cups(value: f64) -> f64 {
105 return value * 117.987;
106 }
107 /// Converts the supplied Cubic Feet value to Cubic Metres
108 /// # Arguments
109 /// * `value` - The Cubic Feet input value
110 pub fn to_cubic_metres(value: f64) -> f64 {
111 return value / 35.3147;
112 }
113 /// Converts the supplied Cubic Feet value to Cubic Inches
114 /// # Arguments
115 /// * `value` - The Cubic Feet input value
116 pub fn to_cubic_inches(value: f64) -> f64 {
117 return value * 1728.0;
118 }
119 /// Converts the supplied Cubic Feet value to Oil Barrels
120 /// # Arguments
121 /// * `value` - The Cubic Feet input value
122 pub fn to_oil_barrels(value: f64) -> f64 {
123 return value / 5.61458;
124 }
125}
126/// Cubic Inches conversion functions
127pub mod cubic_inches {
128 /// Converts the supplied Cubic Inches value to Millilitres
129 /// # Arguments
130 /// * `value` - The Cubic Inches input value
131 pub fn to_millilitres(value: f64) -> f64 {
132 return value * 16.3871;
133 }
134 /// Converts the supplied Cubic Inches value to Litres
135 /// # Arguments
136 /// * `value` - The Cubic Inches input value
137 pub fn to_litres(value: f64) -> f64 {
138 return value / 61.0237;
139 }
140 /// Converts the supplied Cubic Inches value to Kilolitres
141 /// # Arguments
142 /// * `value` - The Cubic Inches input value
143 pub fn to_kilolitres(value: f64) -> f64 {
144 return value / 61023.7;
145 }
146 /// Converts the supplied Cubic Inches value to Teaspoons
147 /// # Arguments
148 /// * `value` - The Cubic Inches input value
149 pub fn to_teaspoons(value: f64) -> f64 {
150 return value * 2.76837;
151 }
152 /// Converts the supplied Cubic Inches value to Tablespoons
153 /// # Arguments
154 /// * `value` - The Cubic Inches input value
155 pub fn to_tablespoons(value: f64) -> f64 {
156 return value / 1.08367;
157 }
158 /// Converts the supplied Cubic Inches value to Quarts
159 /// # Arguments
160 /// * `value` - The Cubic Inches input value
161 pub fn to_quarts(value: f64) -> f64 {
162 return value / 69.3549;
163 }
164 /// Converts the supplied Cubic Inches value to Pints
165 /// # Arguments
166 /// * `value` - The Cubic Inches input value
167 pub fn to_pints(value: f64) -> f64 {
168 return value / 34.6774;
169 }
170 /// Converts the supplied Cubic Inches value to Gallons
171 /// # Arguments
172 /// * `value` - The Cubic Inches input value
173 pub fn to_gallons(value: f64) -> f64 {
174 return value / 277.419;
175 }
176 /// Converts the supplied Cubic Inches value to Fluid Ounces
177 /// # Arguments
178 /// * `value` - The Cubic Inches input value
179 pub fn to_fluid_ounces(value: f64) -> f64 {
180 return value / 1.73387;
181 }
182 /// Converts the supplied Cubic Inches value to US Teaspoons
183 /// # Arguments
184 /// * `value` - The Cubic Inches input value
185 pub fn to_u_s_teaspoons(value: f64) -> f64 {
186 return value * 3.32468;
187 }
188 /// Converts the supplied Cubic Inches value to US Tablespoons
189 /// # Arguments
190 /// * `value` - The Cubic Inches input value
191 pub fn to_u_s_tablespoons(value: f64) -> f64 {
192 return value * 1.10823;
193 }
194 /// Converts the supplied Cubic Inches value to US Quarts
195 /// # Arguments
196 /// * `value` - The Cubic Inches input value
197 pub fn to_u_s_quarts(value: f64) -> f64 {
198 return value / 57.75;
199 }
200 /// Converts the supplied Cubic Inches value to US Pints
201 /// # Arguments
202 /// * `value` - The Cubic Inches input value
203 pub fn to_u_s_pints(value: f64) -> f64 {
204 return value / 28.875;
205 }
206 /// Converts the supplied Cubic Inches value to US Gallons
207 /// # Arguments
208 /// * `value` - The Cubic Inches input value
209 pub fn to_u_s_gallons(value: f64) -> f64 {
210 return value / 231.0;
211 }
212 /// Converts the supplied Cubic Inches value to US Fluid Ounces
213 /// # Arguments
214 /// * `value` - The Cubic Inches input value
215 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
216 return value / 1.80469;
217 }
218 /// Converts the supplied Cubic Inches value to US Cups
219 /// # Arguments
220 /// * `value` - The Cubic Inches input value
221 pub fn to_u_s_cups(value: f64) -> f64 {
222 return value / 14.6457;
223 }
224 /// Converts the supplied Cubic Inches value to Cubic Metres
225 /// # Arguments
226 /// * `value` - The Cubic Inches input value
227 pub fn to_cubic_metres(value: f64) -> f64 {
228 return value / 61023.7;
229 }
230 /// Converts the supplied Cubic Inches value to Cubic Feet
231 /// # Arguments
232 /// * `value` - The Cubic Inches input value
233 pub fn to_cubic_feet(value: f64) -> f64 {
234 return value / 1728.0;
235 }
236 /// Converts the supplied Cubic Inches value to Oil Barrels
237 /// # Arguments
238 /// * `value` - The Cubic Inches input value
239 pub fn to_oil_barrels(value: f64) -> f64 {
240 return value / 9702.0;
241 }
242}
243/// Cubic Metres conversion functions
244pub mod cubic_metres {
245 /// Converts the supplied Cubic Metres value to Millilitres
246 /// # Arguments
247 /// * `value` - The Cubic Metres input value
248 pub fn to_millilitres(value: f64) -> f64 {
249 return value * 1000000.0;
250 }
251 /// Converts the supplied Cubic Metres value to Litres
252 /// # Arguments
253 /// * `value` - The Cubic Metres input value
254 pub fn to_litres(value: f64) -> f64 {
255 return value * 1000.0;
256 }
257 /// Converts the supplied Cubic Metres value to Kilolitres
258 /// # Arguments
259 /// * `value` - The Cubic Metres input value
260 pub fn to_kilolitres(value: f64) -> f64 {
261 return value * 1.0;
262 }
263 /// Converts the supplied Cubic Metres value to Teaspoons
264 /// # Arguments
265 /// * `value` - The Cubic Metres input value
266 pub fn to_teaspoons(value: f64) -> f64 {
267 return value * 168936.0;
268 }
269 /// Converts the supplied Cubic Metres value to Tablespoons
270 /// # Arguments
271 /// * `value` - The Cubic Metres input value
272 pub fn to_tablespoons(value: f64) -> f64 {
273 return value * 56312.1;
274 }
275 /// Converts the supplied Cubic Metres value to Quarts
276 /// # Arguments
277 /// * `value` - The Cubic Metres input value
278 pub fn to_quarts(value: f64) -> f64 {
279 return value * 879.877;
280 }
281 /// Converts the supplied Cubic Metres value to Pints
282 /// # Arguments
283 /// * `value` - The Cubic Metres input value
284 pub fn to_pints(value: f64) -> f64 {
285 return value * 1759.75;
286 }
287 /// Converts the supplied Cubic Metres value to Gallons
288 /// # Arguments
289 /// * `value` - The Cubic Metres input value
290 pub fn to_gallons(value: f64) -> f64 {
291 return value * 219.969;
292 }
293 /// Converts the supplied Cubic Metres value to Fluid Ounces
294 /// # Arguments
295 /// * `value` - The Cubic Metres input value
296 pub fn to_fluid_ounces(value: f64) -> f64 {
297 return value * 35195.1;
298 }
299 /// Converts the supplied Cubic Metres value to US Teaspoons
300 /// # Arguments
301 /// * `value` - The Cubic Metres input value
302 pub fn to_u_s_teaspoons(value: f64) -> f64 {
303 return value * 202884.0;
304 }
305 /// Converts the supplied Cubic Metres value to US Tablespoons
306 /// # Arguments
307 /// * `value` - The Cubic Metres input value
308 pub fn to_u_s_tablespoons(value: f64) -> f64 {
309 return value * 67628.0;
310 }
311 /// Converts the supplied Cubic Metres value to US Quarts
312 /// # Arguments
313 /// * `value` - The Cubic Metres input value
314 pub fn to_u_s_quarts(value: f64) -> f64 {
315 return value * 1056.69;
316 }
317 /// Converts the supplied Cubic Metres value to US Pints
318 /// # Arguments
319 /// * `value` - The Cubic Metres input value
320 pub fn to_u_s_pints(value: f64) -> f64 {
321 return value * 2113.38;
322 }
323 /// Converts the supplied Cubic Metres value to US Gallons
324 /// # Arguments
325 /// * `value` - The Cubic Metres input value
326 pub fn to_u_s_gallons(value: f64) -> f64 {
327 return value * 264.172;
328 }
329 /// Converts the supplied Cubic Metres value to US Fluid Ounces
330 /// # Arguments
331 /// * `value` - The Cubic Metres input value
332 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
333 return value * 33814.0;
334 }
335 /// Converts the supplied Cubic Metres value to US Cups
336 /// # Arguments
337 /// * `value` - The Cubic Metres input value
338 pub fn to_u_s_cups(value: f64) -> f64 {
339 return value * 4166.67;
340 }
341 /// Converts the supplied Cubic Metres value to Cubic Feet
342 /// # Arguments
343 /// * `value` - The Cubic Metres input value
344 pub fn to_cubic_feet(value: f64) -> f64 {
345 return value * 35.3147;
346 }
347 /// Converts the supplied Cubic Metres value to Cubic Inches
348 /// # Arguments
349 /// * `value` - The Cubic Metres input value
350 pub fn to_cubic_inches(value: f64) -> f64 {
351 return value * 61023.7;
352 }
353 /// Converts the supplied Cubic Metres value to Oil Barrels
354 /// # Arguments
355 /// * `value` - The Cubic Metres input value
356 pub fn to_oil_barrels(value: f64) -> f64 {
357 return value * 6.28981;
358 }
359}
360/// Fluid Ounces conversion functions
361pub mod fluid_ounces {
362 /// Converts the supplied Fluid Ounces value to Millilitres
363 /// # Arguments
364 /// * `value` - The Fluid Ounces input value
365 pub fn to_millilitres(value: f64) -> f64 {
366 return value * 28.413074243749994496;
367 }
368 /// Converts the supplied Fluid Ounces value to Litres
369 /// # Arguments
370 /// * `value` - The Fluid Ounces input value
371 pub fn to_litres(value: f64) -> f64 {
372 return value * 0.028413074243749994496;
373 }
374 /// Converts the supplied Fluid Ounces value to Kilolitres
375 /// # Arguments
376 /// * `value` - The Fluid Ounces input value
377 pub fn to_kilolitres(value: f64) -> f64 {
378 return value * 0.000028413074243749994;
379 }
380 /// Converts the supplied Fluid Ounces value to Teaspoons
381 /// # Arguments
382 /// * `value` - The Fluid Ounces input value
383 pub fn to_teaspoons(value: f64) -> f64 {
384 return value * 4.8;
385 }
386 /// Converts the supplied Fluid Ounces value to Tablespoons
387 /// # Arguments
388 /// * `value` - The Fluid Ounces input value
389 pub fn to_tablespoons(value: f64) -> f64 {
390 return value * 1.6;
391 }
392 /// Converts the supplied Fluid Ounces value to Quarts
393 /// # Arguments
394 /// * `value` - The Fluid Ounces input value
395 pub fn to_quarts(value: f64) -> f64 {
396 return value / 40.0;
397 }
398 /// Converts the supplied Fluid Ounces value to Pints
399 /// # Arguments
400 /// * `value` - The Fluid Ounces input value
401 pub fn to_pints(value: f64) -> f64 {
402 return value / 20.0;
403 }
404 /// Converts the supplied Fluid Ounces value to Gallons
405 /// # Arguments
406 /// * `value` - The Fluid Ounces input value
407 pub fn to_gallons(value: f64) -> f64 {
408 return value / 160.0;
409 }
410 /// Converts the supplied Fluid Ounces value to US Teaspoons
411 /// # Arguments
412 /// * `value` - The Fluid Ounces input value
413 pub fn to_u_s_teaspoons(value: f64) -> f64 {
414 return value / 0.1734737167638313984;
415 }
416 /// Converts the supplied Fluid Ounces value to US Tablespoons
417 /// # Arguments
418 /// * `value` - The Fluid Ounces input value
419 pub fn to_u_s_tablespoons(value: f64) -> f64 {
420 return value / 0.52042115029149417472;
421 }
422 /// Converts the supplied Fluid Ounces value to US Quarts
423 /// # Arguments
424 /// * `value` - The Fluid Ounces input value
425 pub fn to_u_s_quarts(value: f64) -> f64 {
426 return value / 33.306953618655629312;
427 }
428 /// Converts the supplied Fluid Ounces value to US Pints
429 /// # Arguments
430 /// * `value` - The Fluid Ounces input value
431 pub fn to_u_s_pints(value: f64) -> f64 {
432 return value / 16.653476809327814656;
433 }
434 /// Converts the supplied Fluid Ounces value to US Gallons
435 /// # Arguments
436 /// * `value` - The Fluid Ounces input value
437 pub fn to_u_s_gallons(value: f64) -> f64 {
438 return value / 133.22781447462252544;
439 }
440 /// Converts the supplied Fluid Ounces value to US Fluid Ounces
441 /// # Arguments
442 /// * `value` - The Fluid Ounces input value
443 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
444 return value / 1.0408423005829883904;
445 }
446 /// Converts the supplied Fluid Ounces value to US Cups
447 /// # Arguments
448 /// * `value` - The Fluid Ounces input value
449 pub fn to_u_s_cups(value: f64) -> f64 {
450 return value / 8.3267384046639071232;
451 }
452 /// Converts the supplied Fluid Ounces value to Cubic Metres
453 /// # Arguments
454 /// * `value` - The Fluid Ounces input value
455 pub fn to_cubic_metres(value: f64) -> f64 {
456 return value / 35195.1;
457 }
458 /// Converts the supplied Fluid Ounces value to Cubic Feet
459 /// # Arguments
460 /// * `value` - The Fluid Ounces input value
461 pub fn to_cubic_feet(value: f64) -> f64 {
462 return value / 996.614;
463 }
464 /// Converts the supplied Fluid Ounces value to Cubic Inches
465 /// # Arguments
466 /// * `value` - The Fluid Ounces input value
467 pub fn to_cubic_inches(value: f64) -> f64 {
468 return value * 1.73387;
469 }
470 /// Converts the supplied Fluid Ounces value to Oil Barrels
471 /// # Arguments
472 /// * `value` - The Fluid Ounces input value
473 pub fn to_oil_barrels(value: f64) -> f64 {
474 return value / 5595.57;
475 }
476}
477/// Gallons conversion functions
478pub mod gallons {
479 /// Converts the supplied Gallons value to Millilitres
480 /// # Arguments
481 /// * `value` - The Gallons input value
482 pub fn to_millilitres(value: f64) -> f64 {
483 return value * 4546.091879;
484 }
485 /// Converts the supplied Gallons value to Litres
486 /// # Arguments
487 /// * `value` - The Gallons input value
488 pub fn to_litres(value: f64) -> f64 {
489 return value * 4.546091879;
490 }
491 /// Converts the supplied Gallons value to Kilolitres
492 /// # Arguments
493 /// * `value` - The Gallons input value
494 pub fn to_kilolitres(value: f64) -> f64 {
495 return value * 0.0045460918799;
496 }
497 /// Converts the supplied Gallons value to Teaspoons
498 /// # Arguments
499 /// * `value` - The Gallons input value
500 pub fn to_teaspoons(value: f64) -> f64 {
501 return value * 768.0;
502 }
503 /// Converts the supplied Gallons value to Tablespoons
504 /// # Arguments
505 /// * `value` - The Gallons input value
506 pub fn to_tablespoons(value: f64) -> f64 {
507 return value * 256.0;
508 }
509 /// Converts the supplied Gallons value to Quarts
510 /// # Arguments
511 /// * `value` - The Gallons input value
512 pub fn to_quarts(value: f64) -> f64 {
513 return value * 4.0;
514 }
515 /// Converts the supplied Gallons value to Pints
516 /// # Arguments
517 /// * `value` - The Gallons input value
518 pub fn to_pints(value: f64) -> f64 {
519 return value * 8.0;
520 }
521 /// Converts the supplied Gallons value to Fluid Ounces
522 /// # Arguments
523 /// * `value` - The Gallons input value
524 pub fn to_fluid_ounces(value: f64) -> f64 {
525 return value * 160.0;
526 }
527 /// Converts the supplied Gallons value to US Teaspoons
528 /// # Arguments
529 /// * `value` - The Gallons input value
530 pub fn to_u_s_teaspoons(value: f64) -> f64 {
531 return value / 0.00108421072977394606;
532 }
533 /// Converts the supplied Gallons value to US Tablespoons
534 /// # Arguments
535 /// * `value` - The Gallons input value
536 pub fn to_u_s_tablespoons(value: f64) -> f64 {
537 return value / 0.003252632189321838592;
538 }
539 /// Converts the supplied Gallons value to US Quarts
540 /// # Arguments
541 /// * `value` - The Gallons input value
542 pub fn to_u_s_quarts(value: f64) -> f64 {
543 return value / 0.20816846011659767808;
544 }
545 /// Converts the supplied Gallons value to US Pints
546 /// # Arguments
547 /// * `value` - The Gallons input value
548 pub fn to_u_s_pints(value: f64) -> f64 {
549 return value / 0.10408423005829883904;
550 }
551 /// Converts the supplied Gallons value to US Gallons
552 /// # Arguments
553 /// * `value` - The Gallons input value
554 pub fn to_u_s_gallons(value: f64) -> f64 {
555 return value / 0.83267384046639071232;
556 }
557 /// Converts the supplied Gallons value to US Fluid Ounces
558 /// # Arguments
559 /// * `value` - The Gallons input value
560 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
561 return value / 0.006505264378643677184;
562 }
563 /// Converts the supplied Gallons value to US Cups
564 /// # Arguments
565 /// * `value` - The Gallons input value
566 pub fn to_u_s_cups(value: f64) -> f64 {
567 return value / 0.052042115029149417472;
568 }
569 /// Converts the supplied Gallons value to Cubic Metres
570 /// # Arguments
571 /// * `value` - The Gallons input value
572 pub fn to_cubic_metres(value: f64) -> f64 {
573 return value / 219.969;
574 }
575 /// Converts the supplied Gallons value to Cubic Feet
576 /// # Arguments
577 /// * `value` - The Gallons input value
578 pub fn to_cubic_feet(value: f64) -> f64 {
579 return value / 6.22884;
580 }
581 /// Converts the supplied Gallons value to Cubic Inches
582 /// # Arguments
583 /// * `value` - The Gallons input value
584 pub fn to_cubic_inches(value: f64) -> f64 {
585 return value * 277.419;
586 }
587 /// Converts the supplied Gallons value to Oil Barrels
588 /// # Arguments
589 /// * `value` - The Gallons input value
590 pub fn to_oil_barrels(value: f64) -> f64 {
591 return value / 34.9723;
592 }
593}
594/// Kilolitres conversion functions
595pub mod kilolitres {
596 /// Converts the supplied Kilolitres value to Millilitres
597 /// # Arguments
598 /// * `value` - The Kilolitres input value
599 pub fn to_millilitres(value: f64) -> f64 {
600 return value * 1000000.0;
601 }
602 /// Converts the supplied Kilolitres value to Litres
603 /// # Arguments
604 /// * `value` - The Kilolitres input value
605 pub fn to_litres(value: f64) -> f64 {
606 return value * 1000.0;
607 }
608 /// Converts the supplied Kilolitres value to Teaspoons
609 /// # Arguments
610 /// * `value` - The Kilolitres input value
611 pub fn to_teaspoons(value: f64) -> f64 {
612 return value / 0.000005919390467447916;
613 }
614 /// Converts the supplied Kilolitres value to Tablespoons
615 /// # Arguments
616 /// * `value` - The Kilolitres input value
617 pub fn to_tablespoons(value: f64) -> f64 {
618 return value / 0.000017758171402343747;
619 }
620 /// Converts the supplied Kilolitres value to Quarts
621 /// # Arguments
622 /// * `value` - The Kilolitres input value
623 pub fn to_quarts(value: f64) -> f64 {
624 return value / 0.00113652296975;
625 }
626 /// Converts the supplied Kilolitres value to Pints
627 /// # Arguments
628 /// * `value` - The Kilolitres input value
629 pub fn to_pints(value: f64) -> f64 {
630 return value / 0.000568261484874999889;
631 }
632 /// Converts the supplied Kilolitres value to Gallons
633 /// # Arguments
634 /// * `value` - The Kilolitres input value
635 pub fn to_gallons(value: f64) -> f64 {
636 return value / 0.0045460918799;
637 }
638 /// Converts the supplied Kilolitres value to Fluid Ounces
639 /// # Arguments
640 /// * `value` - The Kilolitres input value
641 pub fn to_fluid_ounces(value: f64) -> f64 {
642 return value / 0.0000284130742437499946;
643 }
644 /// Converts the supplied Kilolitres value to US Teaspoons
645 /// # Arguments
646 /// * `value` - The Kilolitres input value
647 pub fn to_u_s_teaspoons(value: f64) -> f64 {
648 return value / 0.000004928921593749999;
649 }
650 /// Converts the supplied Kilolitres value to US Tablespoons
651 /// # Arguments
652 /// * `value` - The Kilolitres input value
653 pub fn to_u_s_tablespoons(value: f64) -> f64 {
654 return value / 0.000014786764781249998;
655 }
656 /// Converts the supplied Kilolitres value to US Quarts
657 /// # Arguments
658 /// * `value` - The Kilolitres input value
659 pub fn to_u_s_quarts(value: f64) -> f64 {
660 return value / 0.000946352945999999959;
661 }
662 /// Converts the supplied Kilolitres value to US Pints
663 /// # Arguments
664 /// * `value` - The Kilolitres input value
665 pub fn to_u_s_pints(value: f64) -> f64 {
666 return value / 0.000473176472999999979;
667 }
668 /// Converts the supplied Kilolitres value to US Gallons
669 /// # Arguments
670 /// * `value` - The Kilolitres input value
671 pub fn to_u_s_gallons(value: f64) -> f64 {
672 return value / 0.003785411784;
673 }
674 /// Converts the supplied Kilolitres value to US Fluid Ounces
675 /// # Arguments
676 /// * `value` - The Kilolitres input value
677 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
678 return value / 0.0000295735296;
679 }
680 /// Converts the supplied Kilolitres value to US Cups
681 /// # Arguments
682 /// * `value` - The Kilolitres input value
683 pub fn to_u_s_cups(value: f64) -> f64 {
684 return value / 0.000236588236499999989;
685 }
686 /// Converts the supplied Kilolitres value to Cubic Metres
687 /// # Arguments
688 /// * `value` - The Kilolitres input value
689 pub fn to_cubic_metres(value: f64) -> f64 {
690 return value * 1.0;
691 }
692 /// Converts the supplied Kilolitres value to Cubic Feet
693 /// # Arguments
694 /// * `value` - The Kilolitres input value
695 pub fn to_cubic_feet(value: f64) -> f64 {
696 return value * 35.3147;
697 }
698 /// Converts the supplied Kilolitres value to Cubic Inches
699 /// # Arguments
700 /// * `value` - The Kilolitres input value
701 pub fn to_cubic_inches(value: f64) -> f64 {
702 return value * 61023.7;
703 }
704 /// Converts the supplied Kilolitres value to Oil Barrels
705 /// # Arguments
706 /// * `value` - The Kilolitres input value
707 pub fn to_oil_barrels(value: f64) -> f64 {
708 return value * 6.28981;
709 }
710}
711/// Litres conversion functions
712pub mod litres {
713 /// Converts the supplied Litres value to Millilitres
714 /// # Arguments
715 /// * `value` - The Litres input value
716 pub fn to_millilitres(value: f64) -> f64 {
717 return value * 1000.0;
718 }
719 /// Converts the supplied Litres value to Kilolitres
720 /// # Arguments
721 /// * `value` - The Litres input value
722 pub fn to_kilolitres(value: f64) -> f64 {
723 return value / 1000.0;
724 }
725 /// Converts the supplied Litres value to Teaspoons
726 /// # Arguments
727 /// * `value` - The Litres input value
728 pub fn to_teaspoons(value: f64) -> f64 {
729 return value / 0.005919390467447916134;
730 }
731 /// Converts the supplied Litres value to Tablespoons
732 /// # Arguments
733 /// * `value` - The Litres input value
734 pub fn to_tablespoons(value: f64) -> f64 {
735 return value / 0.017758171402343747584;
736 }
737 /// Converts the supplied Litres value to Quarts
738 /// # Arguments
739 /// * `value` - The Litres input value
740 pub fn to_quarts(value: f64) -> f64 {
741 return value / 1.13652296975;
742 }
743 /// Converts the supplied Litres value to Pints
744 /// # Arguments
745 /// * `value` - The Litres input value
746 pub fn to_pints(value: f64) -> f64 {
747 return value / 0.56826148487499988992;
748 }
749 /// Converts the supplied Litres value to Gallons
750 /// # Arguments
751 /// * `value` - The Litres input value
752 pub fn to_gallons(value: f64) -> f64 {
753 return value / 4.546091879;
754 }
755 /// Converts the supplied Litres value to Fluid Ounces
756 /// # Arguments
757 /// * `value` - The Litres input value
758 pub fn to_fluid_ounces(value: f64) -> f64 {
759 return value / 0.028413074243749994496;
760 }
761 /// Converts the supplied Litres value to US Teaspoons
762 /// # Arguments
763 /// * `value` - The Litres input value
764 pub fn to_u_s_teaspoons(value: f64) -> f64 {
765 return value / 0.004928921593749999616;
766 }
767 /// Converts the supplied Litres value to US Tablespoons
768 /// # Arguments
769 /// * `value` - The Litres input value
770 pub fn to_u_s_tablespoons(value: f64) -> f64 {
771 return value / 0.014786764781249998848;
772 }
773 /// Converts the supplied Litres value to US Quarts
774 /// # Arguments
775 /// * `value` - The Litres input value
776 pub fn to_u_s_quarts(value: f64) -> f64 {
777 return value / 0.94635294599999995904;
778 }
779 /// Converts the supplied Litres value to US Pints
780 /// # Arguments
781 /// * `value` - The Litres input value
782 pub fn to_u_s_pints(value: f64) -> f64 {
783 return value / 0.47317647299999997952;
784 }
785 /// Converts the supplied Litres value to US Gallons
786 /// # Arguments
787 /// * `value` - The Litres input value
788 pub fn to_u_s_gallons(value: f64) -> f64 {
789 return value / 3.785411784;
790 }
791 /// Converts the supplied Litres value to US Fluid Ounces
792 /// # Arguments
793 /// * `value` - The Litres input value
794 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
795 return value / 0.029573529562499997696;
796 }
797 /// Converts the supplied Litres value to US Cups
798 /// # Arguments
799 /// * `value` - The Litres input value
800 pub fn to_u_s_cups(value: f64) -> f64 {
801 return value / 0.23658823649999998976;
802 }
803 /// Converts the supplied Litres value to Cubic Metres
804 /// # Arguments
805 /// * `value` - The Litres input value
806 pub fn to_cubic_metres(value: f64) -> f64 {
807 return value / 1000.0;
808 }
809 /// Converts the supplied Litres value to Cubic Feet
810 /// # Arguments
811 /// * `value` - The Litres input value
812 pub fn to_cubic_feet(value: f64) -> f64 {
813 return value / 28.3168;
814 }
815 /// Converts the supplied Litres value to Cubic Inches
816 /// # Arguments
817 /// * `value` - The Litres input value
818 pub fn to_cubic_inches(value: f64) -> f64 {
819 return value * 61.0237;
820 }
821 /// Converts the supplied Litres value to Oil Barrels
822 /// # Arguments
823 /// * `value` - The Litres input value
824 pub fn to_oil_barrels(value: f64) -> f64 {
825 return value / 158.987;
826 }
827}
828/// Millilitres conversion functions
829pub mod millilitres {
830 /// Converts the supplied Millilitres value to Litres
831 /// # Arguments
832 /// * `value` - The Millilitres input value
833 pub fn to_litres(value: f64) -> f64 {
834 return value / 1000.0;
835 }
836 /// Converts the supplied Millilitres value to Kilolitres
837 /// # Arguments
838 /// * `value` - The Millilitres input value
839 pub fn to_kilolitres(value: f64) -> f64 {
840 return value / 1000000.0;
841 }
842 /// Converts the supplied Millilitres value to Teaspoons
843 /// # Arguments
844 /// * `value` - The Millilitres input value
845 pub fn to_teaspoons(value: f64) -> f64 {
846 return value / 5.9193904674479161344;
847 }
848 /// Converts the supplied Millilitres value to Tablespoons
849 /// # Arguments
850 /// * `value` - The Millilitres input value
851 pub fn to_tablespoons(value: f64) -> f64 {
852 return value / 17.758171402343747584;
853 }
854 /// Converts the supplied Millilitres value to Quarts
855 /// # Arguments
856 /// * `value` - The Millilitres input value
857 pub fn to_quarts(value: f64) -> f64 {
858 return value / 1136.52296975;
859 }
860 /// Converts the supplied Millilitres value to Pints
861 /// # Arguments
862 /// * `value` - The Millilitres input value
863 pub fn to_pints(value: f64) -> f64 {
864 return value / 568.26148487499988992;
865 }
866 /// Converts the supplied Millilitres value to Gallons
867 /// # Arguments
868 /// * `value` - The Millilitres input value
869 pub fn to_gallons(value: f64) -> f64 {
870 return value / 4546.091879;
871 }
872 /// Converts the supplied Millilitres value to Fluid Ounces
873 /// # Arguments
874 /// * `value` - The Millilitres input value
875 pub fn to_fluid_ounces(value: f64) -> f64 {
876 return value / 28.413074243749994496;
877 }
878 /// Converts the supplied Millilitres value to US Teaspoons
879 /// # Arguments
880 /// * `value` - The Millilitres input value
881 pub fn to_u_s_teaspoons(value: f64) -> f64 {
882 return value / 4.928921593749999616;
883 }
884 /// Converts the supplied Millilitres value to US Tablespoons
885 /// # Arguments
886 /// * `value` - The Millilitres input value
887 pub fn to_u_s_tablespoons(value: f64) -> f64 {
888 return value / 14.786764781249998848;
889 }
890 /// Converts the supplied Millilitres value to US Quarts
891 /// # Arguments
892 /// * `value` - The Millilitres input value
893 pub fn to_u_s_quarts(value: f64) -> f64 {
894 return value / 946.35294599999995904;
895 }
896 /// Converts the supplied Millilitres value to US Pints
897 /// # Arguments
898 /// * `value` - The Millilitres input value
899 pub fn to_u_s_pints(value: f64) -> f64 {
900 return value / 473.17647299999997952;
901 }
902 /// Converts the supplied Millilitres value to US Gallons
903 /// # Arguments
904 /// * `value` - The Millilitres input value
905 pub fn to_u_s_gallons(value: f64) -> f64 {
906 return value / 3785.411784;
907 }
908 /// Converts the supplied Millilitres value to US Fluid Ounces
909 /// # Arguments
910 /// * `value` - The Millilitres input value
911 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
912 return value / 29.573529562499997696;
913 }
914 /// Converts the supplied Millilitres value to US Cups
915 /// # Arguments
916 /// * `value` - The Millilitres input value
917 pub fn to_u_s_cups(value: f64) -> f64 {
918 return value / 236.58823649999998976;
919 }
920 /// Converts the supplied Millilitres value to Cubic Metres
921 /// # Arguments
922 /// * `value` - The Millilitres input value
923 pub fn to_cubic_metres(value: f64) -> f64 {
924 return value / 1000000.0;
925 }
926 /// Converts the supplied Millilitres value to Cubic Feet
927 /// # Arguments
928 /// * `value` - The Millilitres input value
929 pub fn to_cubic_feet(value: f64) -> f64 {
930 return value / 28316.8;
931 }
932 /// Converts the supplied Millilitres value to Cubic Inches
933 /// # Arguments
934 /// * `value` - The Millilitres input value
935 pub fn to_cubic_inches(value: f64) -> f64 {
936 return value / 16.3871;
937 }
938 /// Converts the supplied Millilitres value to Oil Barrels
939 /// # Arguments
940 /// * `value` - The Millilitres input value
941 pub fn to_oil_barrels(value: f64) -> f64 {
942 return value / 158987.0;
943 }
944}
945/// Oil Barrels conversion functions
946pub mod oil_barrels {
947 /// Converts the supplied Oil Barrels value to Millilitres
948 /// # Arguments
949 /// * `value` - The Oil Barrels input value
950 pub fn to_millilitres(value: f64) -> f64 {
951 return value * 158987.0;
952 }
953 /// Converts the supplied Oil Barrels value to Litres
954 /// # Arguments
955 /// * `value` - The Oil Barrels input value
956 pub fn to_litres(value: f64) -> f64 {
957 return value * 158.987;
958 }
959 /// Converts the supplied Oil Barrels value to Kilolitres
960 /// # Arguments
961 /// * `value` - The Oil Barrels input value
962 pub fn to_kilolitres(value: f64) -> f64 {
963 return value / 6.28981;
964 }
965 /// Converts the supplied Oil Barrels value to Teaspoons
966 /// # Arguments
967 /// * `value` - The Oil Barrels input value
968 pub fn to_teaspoons(value: f64) -> f64 {
969 return value * 26858.7;
970 }
971 /// Converts the supplied Oil Barrels value to Tablespoons
972 /// # Arguments
973 /// * `value` - The Oil Barrels input value
974 pub fn to_tablespoons(value: f64) -> f64 {
975 return value * 8952.91;
976 }
977 /// Converts the supplied Oil Barrels value to Quarts
978 /// # Arguments
979 /// * `value` - The Oil Barrels input value
980 pub fn to_quarts(value: f64) -> f64 {
981 return value * 139.889;
982 }
983 /// Converts the supplied Oil Barrels value to Pints
984 /// # Arguments
985 /// * `value` - The Oil Barrels input value
986 pub fn to_pints(value: f64) -> f64 {
987 return value * 279.779;
988 }
989 /// Converts the supplied Oil Barrels value to Gallons
990 /// # Arguments
991 /// * `value` - The Oil Barrels input value
992 pub fn to_gallons(value: f64) -> f64 {
993 return value * 34.9723;
994 }
995 /// Converts the supplied Oil Barrels value to Fluid Ounces
996 /// # Arguments
997 /// * `value` - The Oil Barrels input value
998 pub fn to_fluid_ounces(value: f64) -> f64 {
999 return value * 5595.57;
1000 }
1001 /// Converts the supplied Oil Barrels value to US Teaspoons
1002 /// # Arguments
1003 /// * `value` - The Oil Barrels input value
1004 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1005 return value * 32256.0;
1006 }
1007 /// Converts the supplied Oil Barrels value to US Tablespoons
1008 /// # Arguments
1009 /// * `value` - The Oil Barrels input value
1010 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1011 return value * 10752.0;
1012 }
1013 /// Converts the supplied Oil Barrels value to US Quarts
1014 /// # Arguments
1015 /// * `value` - The Oil Barrels input value
1016 pub fn to_u_s_quarts(value: f64) -> f64 {
1017 return value * 168.0;
1018 }
1019 /// Converts the supplied Oil Barrels value to US Pints
1020 /// # Arguments
1021 /// * `value` - The Oil Barrels input value
1022 pub fn to_u_s_pints(value: f64) -> f64 {
1023 return value * 336.0;
1024 }
1025 /// Converts the supplied Oil Barrels value to US Gallons
1026 /// # Arguments
1027 /// * `value` - The Oil Barrels input value
1028 pub fn to_u_s_gallons(value: f64) -> f64 {
1029 return value * 42.0;
1030 }
1031 /// Converts the supplied Oil Barrels value to US Fluid Ounces
1032 /// # Arguments
1033 /// * `value` - The Oil Barrels input value
1034 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1035 return value * 5376.0;
1036 }
1037 /// Converts the supplied Oil Barrels value to US Cups
1038 /// # Arguments
1039 /// * `value` - The Oil Barrels input value
1040 pub fn to_u_s_cups(value: f64) -> f64 {
1041 return value * 662.447;
1042 }
1043 /// Converts the supplied Oil Barrels value to Cubic Metres
1044 /// # Arguments
1045 /// * `value` - The Oil Barrels input value
1046 pub fn to_cubic_metres(value: f64) -> f64 {
1047 return value / 6.28981;
1048 }
1049 /// Converts the supplied Oil Barrels value to Cubic Feet
1050 /// # Arguments
1051 /// * `value` - The Oil Barrels input value
1052 pub fn to_cubic_feet(value: f64) -> f64 {
1053 return value * 5.61458;
1054 }
1055 /// Converts the supplied Oil Barrels value to Cubic Inches
1056 /// # Arguments
1057 /// * `value` - The Oil Barrels input value
1058 pub fn to_cubic_inches(value: f64) -> f64 {
1059 return value * 9702.0;
1060 }
1061}
1062/// Pints conversion functions
1063pub mod pints {
1064 /// Converts the supplied Pints value to Millilitres
1065 /// # Arguments
1066 /// * `value` - The Pints input value
1067 pub fn to_millilitres(value: f64) -> f64 {
1068 return value * 568.26148487499988992;
1069 }
1070 /// Converts the supplied Pints value to Litres
1071 /// # Arguments
1072 /// * `value` - The Pints input value
1073 pub fn to_litres(value: f64) -> f64 {
1074 return value * 0.56826148487499988992;
1075 }
1076 /// Converts the supplied Pints value to Kilolitres
1077 /// # Arguments
1078 /// * `value` - The Pints input value
1079 pub fn to_kilolitres(value: f64) -> f64 {
1080 return value * 0.000568261484874999889;
1081 }
1082 /// Converts the supplied Pints value to Teaspoons
1083 /// # Arguments
1084 /// * `value` - The Pints input value
1085 pub fn to_teaspoons(value: f64) -> f64 {
1086 return value * 96.0;
1087 }
1088 /// Converts the supplied Pints value to Tablespoons
1089 /// # Arguments
1090 /// * `value` - The Pints input value
1091 pub fn to_tablespoons(value: f64) -> f64 {
1092 return value * 32.0;
1093 }
1094 /// Converts the supplied Pints value to Quarts
1095 /// # Arguments
1096 /// * `value` - The Pints input value
1097 pub fn to_quarts(value: f64) -> f64 {
1098 return value / 2.0;
1099 }
1100 /// Converts the supplied Pints value to Gallons
1101 /// # Arguments
1102 /// * `value` - The Pints input value
1103 pub fn to_gallons(value: f64) -> f64 {
1104 return value / 8.0;
1105 }
1106 /// Converts the supplied Pints value to Fluid Ounces
1107 /// # Arguments
1108 /// * `value` - The Pints input value
1109 pub fn to_fluid_ounces(value: f64) -> f64 {
1110 return value * 20.0;
1111 }
1112 /// Converts the supplied Pints value to US Teaspoons
1113 /// # Arguments
1114 /// * `value` - The Pints input value
1115 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1116 return value / 0.008673685838191568486;
1117 }
1118 /// Converts the supplied Pints value to US Tablespoons
1119 /// # Arguments
1120 /// * `value` - The Pints input value
1121 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1122 return value / 0.026021057514574708736;
1123 }
1124 /// Converts the supplied Pints value to US Quarts
1125 /// # Arguments
1126 /// * `value` - The Pints input value
1127 pub fn to_u_s_quarts(value: f64) -> f64 {
1128 return value / 1.6653476809327814656;
1129 }
1130 /// Converts the supplied Pints value to US Pints
1131 /// # Arguments
1132 /// * `value` - The Pints input value
1133 pub fn to_u_s_pints(value: f64) -> f64 {
1134 return value / 0.83267384046639071232;
1135 }
1136 /// Converts the supplied Pints value to US Gallons
1137 /// # Arguments
1138 /// * `value` - The Pints input value
1139 pub fn to_u_s_gallons(value: f64) -> f64 {
1140 return value / 6.6613907237311258624;
1141 }
1142 /// Converts the supplied Pints value to US Fluid Ounces
1143 /// # Arguments
1144 /// * `value` - The Pints input value
1145 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1146 return value / 0.052042115029149417472;
1147 }
1148 /// Converts the supplied Pints value to US Cups
1149 /// # Arguments
1150 /// * `value` - The Pints input value
1151 pub fn to_u_s_cups(value: f64) -> f64 {
1152 return value / 0.41633692023319535616;
1153 }
1154 /// Converts the supplied Pints value to Cubic Metres
1155 /// # Arguments
1156 /// * `value` - The Pints input value
1157 pub fn to_cubic_metres(value: f64) -> f64 {
1158 return value / 1759.75;
1159 }
1160 /// Converts the supplied Pints value to Cubic Feet
1161 /// # Arguments
1162 /// * `value` - The Pints input value
1163 pub fn to_cubic_feet(value: f64) -> f64 {
1164 return value / 49.8307;
1165 }
1166 /// Converts the supplied Pints value to Cubic Inches
1167 /// # Arguments
1168 /// * `value` - The Pints input value
1169 pub fn to_cubic_inches(value: f64) -> f64 {
1170 return value * 34.6774;
1171 }
1172 /// Converts the supplied Pints value to Oil Barrels
1173 /// # Arguments
1174 /// * `value` - The Pints input value
1175 pub fn to_oil_barrels(value: f64) -> f64 {
1176 return value / 279.779;
1177 }
1178}
1179/// Quarts conversion functions
1180pub mod quarts {
1181 /// Converts the supplied Quarts value to Millilitres
1182 /// # Arguments
1183 /// * `value` - The Quarts input value
1184 pub fn to_millilitres(value: f64) -> f64 {
1185 return value * 1136.52296975;
1186 }
1187 /// Converts the supplied Quarts value to Litres
1188 /// # Arguments
1189 /// * `value` - The Quarts input value
1190 pub fn to_litres(value: f64) -> f64 {
1191 return value * 1.13652296975;
1192 }
1193 /// Converts the supplied Quarts value to Kilolitres
1194 /// # Arguments
1195 /// * `value` - The Quarts input value
1196 pub fn to_kilolitres(value: f64) -> f64 {
1197 return value * 0.00113652296975;
1198 }
1199 /// Converts the supplied Quarts value to Teaspoons
1200 /// # Arguments
1201 /// * `value` - The Quarts input value
1202 pub fn to_teaspoons(value: f64) -> f64 {
1203 return value * 192.0;
1204 }
1205 /// Converts the supplied Quarts value to Tablespoons
1206 /// # Arguments
1207 /// * `value` - The Quarts input value
1208 pub fn to_tablespoons(value: f64) -> f64 {
1209 return value * 64.0;
1210 }
1211 /// Converts the supplied Quarts value to Pints
1212 /// # Arguments
1213 /// * `value` - The Quarts input value
1214 pub fn to_pints(value: f64) -> f64 {
1215 return value * 2.0;
1216 }
1217 /// Converts the supplied Quarts value to Gallons
1218 /// # Arguments
1219 /// * `value` - The Quarts input value
1220 pub fn to_gallons(value: f64) -> f64 {
1221 return value / 4.0;
1222 }
1223 /// Converts the supplied Quarts value to Fluid Ounces
1224 /// # Arguments
1225 /// * `value` - The Quarts input value
1226 pub fn to_fluid_ounces(value: f64) -> f64 {
1227 return value * 40.0;
1228 }
1229 /// Converts the supplied Quarts value to US Teaspoons
1230 /// # Arguments
1231 /// * `value` - The Quarts input value
1232 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1233 return value / 0.004336842919095784243;
1234 }
1235 /// Converts the supplied Quarts value to US Tablespoons
1236 /// # Arguments
1237 /// * `value` - The Quarts input value
1238 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1239 return value / 0.013010528757287354368;
1240 }
1241 /// Converts the supplied Quarts value to US Quarts
1242 /// # Arguments
1243 /// * `value` - The Quarts input value
1244 pub fn to_u_s_quarts(value: f64) -> f64 {
1245 return value / 0.83267384046639071232;
1246 }
1247 /// Converts the supplied Quarts value to US Pints
1248 /// # Arguments
1249 /// * `value` - The Quarts input value
1250 pub fn to_u_s_pints(value: f64) -> f64 {
1251 return value / 0.41633692023319535616;
1252 }
1253 /// Converts the supplied Quarts value to US Gallons
1254 /// # Arguments
1255 /// * `value` - The Quarts input value
1256 pub fn to_u_s_gallons(value: f64) -> f64 {
1257 return value / 3.3306953618655629312;
1258 }
1259 /// Converts the supplied Quarts value to US Fluid Ounces
1260 /// # Arguments
1261 /// * `value` - The Quarts input value
1262 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1263 return value / 0.026021057514574708736;
1264 }
1265 /// Converts the supplied Quarts value to US Cups
1266 /// # Arguments
1267 /// * `value` - The Quarts input value
1268 pub fn to_u_s_cups(value: f64) -> f64 {
1269 return value / 0.20816846011659767808;
1270 }
1271 /// Converts the supplied Quarts value to Cubic Metres
1272 /// # Arguments
1273 /// * `value` - The Quarts input value
1274 pub fn to_cubic_metres(value: f64) -> f64 {
1275 return value / 879.877;
1276 }
1277 /// Converts the supplied Quarts value to Cubic Feet
1278 /// # Arguments
1279 /// * `value` - The Quarts input value
1280 pub fn to_cubic_feet(value: f64) -> f64 {
1281 return value / 24.9153;
1282 }
1283 /// Converts the supplied Quarts value to Cubic Inches
1284 /// # Arguments
1285 /// * `value` - The Quarts input value
1286 pub fn to_cubic_inches(value: f64) -> f64 {
1287 return value * 69.3549;
1288 }
1289 /// Converts the supplied Quarts value to Oil Barrels
1290 /// # Arguments
1291 /// * `value` - The Quarts input value
1292 pub fn to_oil_barrels(value: f64) -> f64 {
1293 return value / 139.889;
1294 }
1295}
1296/// Tablespoons conversion functions
1297pub mod tablespoons {
1298 /// Converts the supplied Tablespoons value to Millilitres
1299 /// # Arguments
1300 /// * `value` - The Tablespoons input value
1301 pub fn to_millilitres(value: f64) -> f64 {
1302 return value * 17.758171402343747584;
1303 }
1304 /// Converts the supplied Tablespoons value to Litres
1305 /// # Arguments
1306 /// * `value` - The Tablespoons input value
1307 pub fn to_litres(value: f64) -> f64 {
1308 return value * 0.017758171402343747584;
1309 }
1310 /// Converts the supplied Tablespoons value to Kilolitres
1311 /// # Arguments
1312 /// * `value` - The Tablespoons input value
1313 pub fn to_kilolitres(value: f64) -> f64 {
1314 return value * 0.000017758171402343747;
1315 }
1316 /// Converts the supplied Tablespoons value to Teaspoons
1317 /// # Arguments
1318 /// * `value` - The Tablespoons input value
1319 pub fn to_teaspoons(value: f64) -> f64 {
1320 return value * 3.0;
1321 }
1322 /// Converts the supplied Tablespoons value to Quarts
1323 /// # Arguments
1324 /// * `value` - The Tablespoons input value
1325 pub fn to_quarts(value: f64) -> f64 {
1326 return value / 64.0;
1327 }
1328 /// Converts the supplied Tablespoons value to Pints
1329 /// # Arguments
1330 /// * `value` - The Tablespoons input value
1331 pub fn to_pints(value: f64) -> f64 {
1332 return value / 32.0;
1333 }
1334 /// Converts the supplied Tablespoons value to Gallons
1335 /// # Arguments
1336 /// * `value` - The Tablespoons input value
1337 pub fn to_gallons(value: f64) -> f64 {
1338 return value / 256.0;
1339 }
1340 /// Converts the supplied Tablespoons value to Fluid Ounces
1341 /// # Arguments
1342 /// * `value` - The Tablespoons input value
1343 pub fn to_fluid_ounces(value: f64) -> f64 {
1344 return value / 1.6;
1345 }
1346 /// Converts the supplied Tablespoons value to US Teaspoons
1347 /// # Arguments
1348 /// * `value` - The Tablespoons input value
1349 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1350 return value / 0.27755794682213023744;
1351 }
1352 /// Converts the supplied Tablespoons value to US Tablespoons
1353 /// # Arguments
1354 /// * `value` - The Tablespoons input value
1355 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1356 return value / 0.83267384046639071232;
1357 }
1358 /// Converts the supplied Tablespoons value to US Quarts
1359 /// # Arguments
1360 /// * `value` - The Tablespoons input value
1361 pub fn to_u_s_quarts(value: f64) -> f64 {
1362 return value / 53.291125789849001984;
1363 }
1364 /// Converts the supplied Tablespoons value to US Pints
1365 /// # Arguments
1366 /// * `value` - The Tablespoons input value
1367 pub fn to_u_s_pints(value: f64) -> f64 {
1368 return value / 26.645562894924500992;
1369 }
1370 /// Converts the supplied Tablespoons value to US Gallons
1371 /// # Arguments
1372 /// * `value` - The Tablespoons input value
1373 pub fn to_u_s_gallons(value: f64) -> f64 {
1374 return value / 213.16450315939602432;
1375 }
1376 /// Converts the supplied Tablespoons value to US Fluid Ounces
1377 /// # Arguments
1378 /// * `value` - The Tablespoons input value
1379 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1380 return value / 1.6653476809327814656;
1381 }
1382 /// Converts the supplied Tablespoons value to US Cups
1383 /// # Arguments
1384 /// * `value` - The Tablespoons input value
1385 pub fn to_u_s_cups(value: f64) -> f64 {
1386 return value / 13.322781447462250496;
1387 }
1388 /// Converts the supplied Tablespoons value to Cubic Metres
1389 /// # Arguments
1390 /// * `value` - The Tablespoons input value
1391 pub fn to_cubic_metres(value: f64) -> f64 {
1392 return value / 56312.1;
1393 }
1394 /// Converts the supplied Tablespoons value to Cubic Feet
1395 /// # Arguments
1396 /// * `value` - The Tablespoons input value
1397 pub fn to_cubic_feet(value: f64) -> f64 {
1398 return value / 1594.58;
1399 }
1400 /// Converts the supplied Tablespoons value to Cubic Inches
1401 /// # Arguments
1402 /// * `value` - The Tablespoons input value
1403 pub fn to_cubic_inches(value: f64) -> f64 {
1404 return value * 1.08367;
1405 }
1406 /// Converts the supplied Tablespoons value to Oil Barrels
1407 /// # Arguments
1408 /// * `value` - The Tablespoons input value
1409 pub fn to_oil_barrels(value: f64) -> f64 {
1410 return value / 8952.91;
1411 }
1412}
1413/// Teaspoons conversion functions
1414pub mod teaspoons {
1415 /// Converts the supplied Teaspoons value to Millilitres
1416 /// # Arguments
1417 /// * `value` - The Teaspoons input value
1418 pub fn to_millilitres(value: f64) -> f64 {
1419 return value * 5.9193904674479161344;
1420 }
1421 /// Converts the supplied Teaspoons value to Litres
1422 /// # Arguments
1423 /// * `value` - The Teaspoons input value
1424 pub fn to_litres(value: f64) -> f64 {
1425 return value * 0.005919390467447916134;
1426 }
1427 /// Converts the supplied Teaspoons value to Kilolitres
1428 /// # Arguments
1429 /// * `value` - The Teaspoons input value
1430 pub fn to_kilolitres(value: f64) -> f64 {
1431 return value * 0.000005919390467447916;
1432 }
1433 /// Converts the supplied Teaspoons value to Tablespoons
1434 /// # Arguments
1435 /// * `value` - The Teaspoons input value
1436 pub fn to_tablespoons(value: f64) -> f64 {
1437 return value / 3.0;
1438 }
1439 /// Converts the supplied Teaspoons value to Quarts
1440 /// # Arguments
1441 /// * `value` - The Teaspoons input value
1442 pub fn to_quarts(value: f64) -> f64 {
1443 return value / 192.0;
1444 }
1445 /// Converts the supplied Teaspoons value to Pints
1446 /// # Arguments
1447 /// * `value` - The Teaspoons input value
1448 pub fn to_pints(value: f64) -> f64 {
1449 return value / 96.0;
1450 }
1451 /// Converts the supplied Teaspoons value to Gallons
1452 /// # Arguments
1453 /// * `value` - The Teaspoons input value
1454 pub fn to_gallons(value: f64) -> f64 {
1455 return value / 768.0;
1456 }
1457 /// Converts the supplied Teaspoons value to Fluid Ounces
1458 /// # Arguments
1459 /// * `value` - The Teaspoons input value
1460 pub fn to_fluid_ounces(value: f64) -> f64 {
1461 return value / 4.8;
1462 }
1463 /// Converts the supplied Teaspoons value to US Teaspoons
1464 /// # Arguments
1465 /// * `value` - The Teaspoons input value
1466 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1467 return value / 0.83267384046639071232;
1468 }
1469 /// Converts the supplied Teaspoons value to US Tablespoons
1470 /// # Arguments
1471 /// * `value` - The Teaspoons input value
1472 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1473 return value / 2.4980215213991718912;
1474 }
1475 /// Converts the supplied Teaspoons value to US Quarts
1476 /// # Arguments
1477 /// * `value` - The Teaspoons input value
1478 pub fn to_u_s_quarts(value: f64) -> f64 {
1479 return value / 159.87337736954701824;
1480 }
1481 /// Converts the supplied Teaspoons value to US Pints
1482 /// # Arguments
1483 /// * `value` - The Teaspoons input value
1484 pub fn to_u_s_pints(value: f64) -> f64 {
1485 return value / 79.936688684773507072;
1486 }
1487 /// Converts the supplied Teaspoons value to US Gallons
1488 /// # Arguments
1489 /// * `value` - The Teaspoons input value
1490 pub fn to_u_s_gallons(value: f64) -> f64 {
1491 return value / 639.49350947818807296;
1492 }
1493 /// Converts the supplied Teaspoons value to US Fluid Ounces
1494 /// # Arguments
1495 /// * `value` - The Teaspoons input value
1496 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1497 return value / 4.9960430427983437824;
1498 }
1499 /// Converts the supplied Teaspoons value to US Cups
1500 /// # Arguments
1501 /// * `value` - The Teaspoons input value
1502 pub fn to_u_s_cups(value: f64) -> f64 {
1503 return value / 39.968344342386753536;
1504 }
1505 /// Converts the supplied Teaspoons value to Cubic Metres
1506 /// # Arguments
1507 /// * `value` - The Teaspoons input value
1508 pub fn to_cubic_metres(value: f64) -> f64 {
1509 return value / 168936.0;
1510 }
1511 /// Converts the supplied Teaspoons value to Cubic Feet
1512 /// # Arguments
1513 /// * `value` - The Teaspoons input value
1514 pub fn to_cubic_feet(value: f64) -> f64 {
1515 return value / 4783.74;
1516 }
1517 /// Converts the supplied Teaspoons value to Cubic Inches
1518 /// # Arguments
1519 /// * `value` - The Teaspoons input value
1520 pub fn to_cubic_inches(value: f64) -> f64 {
1521 return value / 2.76837;
1522 }
1523 /// Converts the supplied Teaspoons value to Oil Barrels
1524 /// # Arguments
1525 /// * `value` - The Teaspoons input value
1526 pub fn to_oil_barrels(value: f64) -> f64 {
1527 return value / 26858.7;
1528 }
1529}
1530/// US Cups conversion functions
1531pub mod u_s_cups {
1532 /// Converts the supplied US Cups value to Millilitres
1533 /// # Arguments
1534 /// * `value` - The US Cups input value
1535 pub fn to_millilitres(value: f64) -> f64 {
1536 return value * 236.58823649999998976;
1537 }
1538 /// Converts the supplied US Cups value to Litres
1539 /// # Arguments
1540 /// * `value` - The US Cups input value
1541 pub fn to_litres(value: f64) -> f64 {
1542 return value * 0.23658823649999998976;
1543 }
1544 /// Converts the supplied US Cups value to Kilolitres
1545 /// # Arguments
1546 /// * `value` - The US Cups input value
1547 pub fn to_kilolitres(value: f64) -> f64 {
1548 return value * 0.000236588236499999989;
1549 }
1550 /// Converts the supplied US Cups value to Teaspoons
1551 /// # Arguments
1552 /// * `value` - The US Cups input value
1553 pub fn to_teaspoons(value: f64) -> f64 {
1554 return value * 39.968344342386753536;
1555 }
1556 /// Converts the supplied US Cups value to Tablespoons
1557 /// # Arguments
1558 /// * `value` - The US Cups input value
1559 pub fn to_tablespoons(value: f64) -> f64 {
1560 return value * 13.322781447462250496;
1561 }
1562 /// Converts the supplied US Cups value to Quarts
1563 /// # Arguments
1564 /// * `value` - The US Cups input value
1565 pub fn to_quarts(value: f64) -> f64 {
1566 return value * 0.20816846011659767808;
1567 }
1568 /// Converts the supplied US Cups value to Pints
1569 /// # Arguments
1570 /// * `value` - The US Cups input value
1571 pub fn to_pints(value: f64) -> f64 {
1572 return value * 0.41633692023319535616;
1573 }
1574 /// Converts the supplied US Cups value to Gallons
1575 /// # Arguments
1576 /// * `value` - The US Cups input value
1577 pub fn to_gallons(value: f64) -> f64 {
1578 return value * 0.052042115029149417472;
1579 }
1580 /// Converts the supplied US Cups value to Fluid Ounces
1581 /// # Arguments
1582 /// * `value` - The US Cups input value
1583 pub fn to_fluid_ounces(value: f64) -> f64 {
1584 return value * 8.3267384046639071232;
1585 }
1586 /// Converts the supplied US Cups value to US Teaspoons
1587 /// # Arguments
1588 /// * `value` - The US Cups input value
1589 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1590 return value * 48.0;
1591 }
1592 /// Converts the supplied US Cups value to US Tablespoons
1593 /// # Arguments
1594 /// * `value` - The US Cups input value
1595 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1596 return value * 16.0;
1597 }
1598 /// Converts the supplied US Cups value to US Quarts
1599 /// # Arguments
1600 /// * `value` - The US Cups input value
1601 pub fn to_u_s_quarts(value: f64) -> f64 {
1602 return value / 4.0;
1603 }
1604 /// Converts the supplied US Cups value to US Pints
1605 /// # Arguments
1606 /// * `value` - The US Cups input value
1607 pub fn to_u_s_pints(value: f64) -> f64 {
1608 return value / 2.0;
1609 }
1610 /// Converts the supplied US Cups value to US Gallons
1611 /// # Arguments
1612 /// * `value` - The US Cups input value
1613 pub fn to_u_s_gallons(value: f64) -> f64 {
1614 return value / 16.0;
1615 }
1616 /// Converts the supplied US Cups value to US Fluid Ounces
1617 /// # Arguments
1618 /// * `value` - The US Cups input value
1619 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1620 return value * 8.0;
1621 }
1622 /// Converts the supplied US Cups value to Cubic Metres
1623 /// # Arguments
1624 /// * `value` - The US Cups input value
1625 pub fn to_cubic_metres(value: f64) -> f64 {
1626 return value / 4166.67;
1627 }
1628 /// Converts the supplied US Cups value to Cubic Feet
1629 /// # Arguments
1630 /// * `value` - The US Cups input value
1631 pub fn to_cubic_feet(value: f64) -> f64 {
1632 return value / 117.987;
1633 }
1634 /// Converts the supplied US Cups value to Cubic Inches
1635 /// # Arguments
1636 /// * `value` - The US Cups input value
1637 pub fn to_cubic_inches(value: f64) -> f64 {
1638 return value * 14.6457;
1639 }
1640 /// Converts the supplied US Cups value to Oil Barrels
1641 /// # Arguments
1642 /// * `value` - The US Cups input value
1643 pub fn to_oil_barrels(value: f64) -> f64 {
1644 return value / 662.447;
1645 }
1646}
1647/// US Fluid Ounces conversion functions
1648pub mod u_s_fluid_ounces {
1649 /// Converts the supplied US Fluid Ounces value to Millilitres
1650 /// # Arguments
1651 /// * `value` - The US Fluid Ounces input value
1652 pub fn to_millilitres(value: f64) -> f64 {
1653 return value * 29.573529562499997696;
1654 }
1655 /// Converts the supplied US Fluid Ounces value to Litres
1656 /// # Arguments
1657 /// * `value` - The US Fluid Ounces input value
1658 pub fn to_litres(value: f64) -> f64 {
1659 return value * 0.029573529562499997696;
1660 }
1661 /// Converts the supplied US Fluid Ounces value to Kilolitres
1662 /// # Arguments
1663 /// * `value` - The US Fluid Ounces input value
1664 pub fn to_kilolitres(value: f64) -> f64 {
1665 return value * 0.0000295735296;
1666 }
1667 /// Converts the supplied US Fluid Ounces value to Teaspoons
1668 /// # Arguments
1669 /// * `value` - The US Fluid Ounces input value
1670 pub fn to_teaspoons(value: f64) -> f64 {
1671 return value * 4.9960430427983437824;
1672 }
1673 /// Converts the supplied US Fluid Ounces value to Tablespoons
1674 /// # Arguments
1675 /// * `value` - The US Fluid Ounces input value
1676 pub fn to_tablespoons(value: f64) -> f64 {
1677 return value * 1.6653476809327814656;
1678 }
1679 /// Converts the supplied US Fluid Ounces value to Quarts
1680 /// # Arguments
1681 /// * `value` - The US Fluid Ounces input value
1682 pub fn to_quarts(value: f64) -> f64 {
1683 return value * 0.026021057514574708736;
1684 }
1685 /// Converts the supplied US Fluid Ounces value to Pints
1686 /// # Arguments
1687 /// * `value` - The US Fluid Ounces input value
1688 pub fn to_pints(value: f64) -> f64 {
1689 return value * 0.052042115029149417472;
1690 }
1691 /// Converts the supplied US Fluid Ounces value to Gallons
1692 /// # Arguments
1693 /// * `value` - The US Fluid Ounces input value
1694 pub fn to_gallons(value: f64) -> f64 {
1695 return value * 0.006505264378643677184;
1696 }
1697 /// Converts the supplied US Fluid Ounces value to Fluid Ounces
1698 /// # Arguments
1699 /// * `value` - The US Fluid Ounces input value
1700 pub fn to_fluid_ounces(value: f64) -> f64 {
1701 return value * 1.0408423005829883904;
1702 }
1703 /// Converts the supplied US Fluid Ounces value to US Teaspoons
1704 /// # Arguments
1705 /// * `value` - The US Fluid Ounces input value
1706 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1707 return value * 6.0;
1708 }
1709 /// Converts the supplied US Fluid Ounces value to US Tablespoons
1710 /// # Arguments
1711 /// * `value` - The US Fluid Ounces input value
1712 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1713 return value * 2.0;
1714 }
1715 /// Converts the supplied US Fluid Ounces value to US Quarts
1716 /// # Arguments
1717 /// * `value` - The US Fluid Ounces input value
1718 pub fn to_u_s_quarts(value: f64) -> f64 {
1719 return value / 32.0;
1720 }
1721 /// Converts the supplied US Fluid Ounces value to US Pints
1722 /// # Arguments
1723 /// * `value` - The US Fluid Ounces input value
1724 pub fn to_u_s_pints(value: f64) -> f64 {
1725 return value / 16.0;
1726 }
1727 /// Converts the supplied US Fluid Ounces value to US Gallons
1728 /// # Arguments
1729 /// * `value` - The US Fluid Ounces input value
1730 pub fn to_u_s_gallons(value: f64) -> f64 {
1731 return value / 128.0;
1732 }
1733 /// Converts the supplied US Fluid Ounces value to US Cups
1734 /// # Arguments
1735 /// * `value` - The US Fluid Ounces input value
1736 pub fn to_u_s_cups(value: f64) -> f64 {
1737 return value / 8.0;
1738 }
1739 /// Converts the supplied US Fluid Ounces value to Cubic Metres
1740 /// # Arguments
1741 /// * `value` - The US Fluid Ounces input value
1742 pub fn to_cubic_metres(value: f64) -> f64 {
1743 return value / 33814.0;
1744 }
1745 /// Converts the supplied US Fluid Ounces value to Cubic Feet
1746 /// # Arguments
1747 /// * `value` - The US Fluid Ounces input value
1748 pub fn to_cubic_feet(value: f64) -> f64 {
1749 return value / 957.506;
1750 }
1751 /// Converts the supplied US Fluid Ounces value to Cubic Inches
1752 /// # Arguments
1753 /// * `value` - The US Fluid Ounces input value
1754 pub fn to_cubic_inches(value: f64) -> f64 {
1755 return value * 1.80469;
1756 }
1757 /// Converts the supplied US Fluid Ounces value to Oil Barrels
1758 /// # Arguments
1759 /// * `value` - The US Fluid Ounces input value
1760 pub fn to_oil_barrels(value: f64) -> f64 {
1761 return value / 5376.0;
1762 }
1763}
1764/// US Gallons conversion functions
1765pub mod u_s_gallons {
1766 /// Converts the supplied US Gallons value to Millilitres
1767 /// # Arguments
1768 /// * `value` - The US Gallons input value
1769 pub fn to_millilitres(value: f64) -> f64 {
1770 return value * 3785.411784;
1771 }
1772 /// Converts the supplied US Gallons value to Litres
1773 /// # Arguments
1774 /// * `value` - The US Gallons input value
1775 pub fn to_litres(value: f64) -> f64 {
1776 return value * 3.785411784;
1777 }
1778 /// Converts the supplied US Gallons value to Kilolitres
1779 /// # Arguments
1780 /// * `value` - The US Gallons input value
1781 pub fn to_kilolitres(value: f64) -> f64 {
1782 return value * 0.003785411784;
1783 }
1784 /// Converts the supplied US Gallons value to Teaspoons
1785 /// # Arguments
1786 /// * `value` - The US Gallons input value
1787 pub fn to_teaspoons(value: f64) -> f64 {
1788 return value * 639.49350947818807296;
1789 }
1790 /// Converts the supplied US Gallons value to Tablespoons
1791 /// # Arguments
1792 /// * `value` - The US Gallons input value
1793 pub fn to_tablespoons(value: f64) -> f64 {
1794 return value * 213.16450315939602432;
1795 }
1796 /// Converts the supplied US Gallons value to Quarts
1797 /// # Arguments
1798 /// * `value` - The US Gallons input value
1799 pub fn to_quarts(value: f64) -> f64 {
1800 return value * 3.3306953618655629312;
1801 }
1802 /// Converts the supplied US Gallons value to Pints
1803 /// # Arguments
1804 /// * `value` - The US Gallons input value
1805 pub fn to_pints(value: f64) -> f64 {
1806 return value * 6.6613907237311258624;
1807 }
1808 /// Converts the supplied US Gallons value to Gallons
1809 /// # Arguments
1810 /// * `value` - The US Gallons input value
1811 pub fn to_gallons(value: f64) -> f64 {
1812 return value * 0.83267384046639071232;
1813 }
1814 /// Converts the supplied US Gallons value to Fluid Ounces
1815 /// # Arguments
1816 /// * `value` - The US Gallons input value
1817 pub fn to_fluid_ounces(value: f64) -> f64 {
1818 return value * 133.22781447462252544;
1819 }
1820 /// Converts the supplied US Gallons value to US Teaspoons
1821 /// # Arguments
1822 /// * `value` - The US Gallons input value
1823 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1824 return value * 768.0;
1825 }
1826 /// Converts the supplied US Gallons value to US Tablespoons
1827 /// # Arguments
1828 /// * `value` - The US Gallons input value
1829 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1830 return value * 256.0;
1831 }
1832 /// Converts the supplied US Gallons value to US Quarts
1833 /// # Arguments
1834 /// * `value` - The US Gallons input value
1835 pub fn to_u_s_quarts(value: f64) -> f64 {
1836 return value * 4.0;
1837 }
1838 /// Converts the supplied US Gallons value to US Pints
1839 /// # Arguments
1840 /// * `value` - The US Gallons input value
1841 pub fn to_u_s_pints(value: f64) -> f64 {
1842 return value * 8.0;
1843 }
1844 /// Converts the supplied US Gallons value to US Fluid Ounces
1845 /// # Arguments
1846 /// * `value` - The US Gallons input value
1847 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1848 return value * 128.0;
1849 }
1850 /// Converts the supplied US Gallons value to US Cups
1851 /// # Arguments
1852 /// * `value` - The US Gallons input value
1853 pub fn to_u_s_cups(value: f64) -> f64 {
1854 return value * 16.0;
1855 }
1856 /// Converts the supplied US Gallons value to Cubic Metres
1857 /// # Arguments
1858 /// * `value` - The US Gallons input value
1859 pub fn to_cubic_metres(value: f64) -> f64 {
1860 return value / 264.172;
1861 }
1862 /// Converts the supplied US Gallons value to Cubic Feet
1863 /// # Arguments
1864 /// * `value` - The US Gallons input value
1865 pub fn to_cubic_feet(value: f64) -> f64 {
1866 return value / 7.48052;
1867 }
1868 /// Converts the supplied US Gallons value to Cubic Inches
1869 /// # Arguments
1870 /// * `value` - The US Gallons input value
1871 pub fn to_cubic_inches(value: f64) -> f64 {
1872 return value * 231.0;
1873 }
1874 /// Converts the supplied US Gallons value to Oil Barrels
1875 /// # Arguments
1876 /// * `value` - The US Gallons input value
1877 pub fn to_oil_barrels(value: f64) -> f64 {
1878 return value / 42.0;
1879 }
1880}
1881/// US Pints conversion functions
1882pub mod u_s_pints {
1883 /// Converts the supplied US Pints value to Millilitres
1884 /// # Arguments
1885 /// * `value` - The US Pints input value
1886 pub fn to_millilitres(value: f64) -> f64 {
1887 return value * 473.17647299999997952;
1888 }
1889 /// Converts the supplied US Pints value to Litres
1890 /// # Arguments
1891 /// * `value` - The US Pints input value
1892 pub fn to_litres(value: f64) -> f64 {
1893 return value * 0.47317647299999997952;
1894 }
1895 /// Converts the supplied US Pints value to Kilolitres
1896 /// # Arguments
1897 /// * `value` - The US Pints input value
1898 pub fn to_kilolitres(value: f64) -> f64 {
1899 return value * 0.000473176472999999979;
1900 }
1901 /// Converts the supplied US Pints value to Teaspoons
1902 /// # Arguments
1903 /// * `value` - The US Pints input value
1904 pub fn to_teaspoons(value: f64) -> f64 {
1905 return value * 79.936688684773507072;
1906 }
1907 /// Converts the supplied US Pints value to Tablespoons
1908 /// # Arguments
1909 /// * `value` - The US Pints input value
1910 pub fn to_tablespoons(value: f64) -> f64 {
1911 return value * 26.645562894924500992;
1912 }
1913 /// Converts the supplied US Pints value to Quarts
1914 /// # Arguments
1915 /// * `value` - The US Pints input value
1916 pub fn to_quarts(value: f64) -> f64 {
1917 return value * 0.41633692023319535616;
1918 }
1919 /// Converts the supplied US Pints value to Pints
1920 /// # Arguments
1921 /// * `value` - The US Pints input value
1922 pub fn to_pints(value: f64) -> f64 {
1923 return value * 0.83267384046639071232;
1924 }
1925 /// Converts the supplied US Pints value to Gallons
1926 /// # Arguments
1927 /// * `value` - The US Pints input value
1928 pub fn to_gallons(value: f64) -> f64 {
1929 return value * 0.10408423005829883904;
1930 }
1931 /// Converts the supplied US Pints value to Fluid Ounces
1932 /// # Arguments
1933 /// * `value` - The US Pints input value
1934 pub fn to_fluid_ounces(value: f64) -> f64 {
1935 return value * 16.653476809327814656;
1936 }
1937 /// Converts the supplied US Pints value to US Teaspoons
1938 /// # Arguments
1939 /// * `value` - The US Pints input value
1940 pub fn to_u_s_teaspoons(value: f64) -> f64 {
1941 return value * 96.0;
1942 }
1943 /// Converts the supplied US Pints value to US Tablespoons
1944 /// # Arguments
1945 /// * `value` - The US Pints input value
1946 pub fn to_u_s_tablespoons(value: f64) -> f64 {
1947 return value * 32.0;
1948 }
1949 /// Converts the supplied US Pints value to US Quarts
1950 /// # Arguments
1951 /// * `value` - The US Pints input value
1952 pub fn to_u_s_quarts(value: f64) -> f64 {
1953 return value / 2.0;
1954 }
1955 /// Converts the supplied US Pints value to US Gallons
1956 /// # Arguments
1957 /// * `value` - The US Pints input value
1958 pub fn to_u_s_gallons(value: f64) -> f64 {
1959 return value / 8.0;
1960 }
1961 /// Converts the supplied US Pints value to US Fluid Ounces
1962 /// # Arguments
1963 /// * `value` - The US Pints input value
1964 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
1965 return value * 16.0;
1966 }
1967 /// Converts the supplied US Pints value to US Cups
1968 /// # Arguments
1969 /// * `value` - The US Pints input value
1970 pub fn to_u_s_cups(value: f64) -> f64 {
1971 return value * 2.0;
1972 }
1973 /// Converts the supplied US Pints value to Cubic Metres
1974 /// # Arguments
1975 /// * `value` - The US Pints input value
1976 pub fn to_cubic_metres(value: f64) -> f64 {
1977 return value / 2113.38;
1978 }
1979 /// Converts the supplied US Pints value to Cubic Feet
1980 /// # Arguments
1981 /// * `value` - The US Pints input value
1982 pub fn to_cubic_feet(value: f64) -> f64 {
1983 return value / 59.8442;
1984 }
1985 /// Converts the supplied US Pints value to Cubic Inches
1986 /// # Arguments
1987 /// * `value` - The US Pints input value
1988 pub fn to_cubic_inches(value: f64) -> f64 {
1989 return value * 28.875;
1990 }
1991 /// Converts the supplied US Pints value to Oil Barrels
1992 /// # Arguments
1993 /// * `value` - The US Pints input value
1994 pub fn to_oil_barrels(value: f64) -> f64 {
1995 return value / 336.0;
1996 }
1997}
1998/// US Quarts conversion functions
1999pub mod u_s_quarts {
2000 /// Converts the supplied US Quarts value to Millilitres
2001 /// # Arguments
2002 /// * `value` - The US Quarts input value
2003 pub fn to_millilitres(value: f64) -> f64 {
2004 return value * 946.35294599999995904;
2005 }
2006 /// Converts the supplied US Quarts value to Litres
2007 /// # Arguments
2008 /// * `value` - The US Quarts input value
2009 pub fn to_litres(value: f64) -> f64 {
2010 return value * 0.94635294599999995904;
2011 }
2012 /// Converts the supplied US Quarts value to Kilolitres
2013 /// # Arguments
2014 /// * `value` - The US Quarts input value
2015 pub fn to_kilolitres(value: f64) -> f64 {
2016 return value * 0.000946352945999999959;
2017 }
2018 /// Converts the supplied US Quarts value to Teaspoons
2019 /// # Arguments
2020 /// * `value` - The US Quarts input value
2021 pub fn to_teaspoons(value: f64) -> f64 {
2022 return value * 159.87337736954701824;
2023 }
2024 /// Converts the supplied US Quarts value to Tablespoons
2025 /// # Arguments
2026 /// * `value` - The US Quarts input value
2027 pub fn to_tablespoons(value: f64) -> f64 {
2028 return value * 53.291125789849001984;
2029 }
2030 /// Converts the supplied US Quarts value to Quarts
2031 /// # Arguments
2032 /// * `value` - The US Quarts input value
2033 pub fn to_quarts(value: f64) -> f64 {
2034 return value * 0.83267384046639071232;
2035 }
2036 /// Converts the supplied US Quarts value to Pints
2037 /// # Arguments
2038 /// * `value` - The US Quarts input value
2039 pub fn to_pints(value: f64) -> f64 {
2040 return value * 1.6653476809327814656;
2041 }
2042 /// Converts the supplied US Quarts value to Gallons
2043 /// # Arguments
2044 /// * `value` - The US Quarts input value
2045 pub fn to_gallons(value: f64) -> f64 {
2046 return value * 0.20816846011659767808;
2047 }
2048 /// Converts the supplied US Quarts value to Fluid Ounces
2049 /// # Arguments
2050 /// * `value` - The US Quarts input value
2051 pub fn to_fluid_ounces(value: f64) -> f64 {
2052 return value * 33.306953618655629312;
2053 }
2054 /// Converts the supplied US Quarts value to US Teaspoons
2055 /// # Arguments
2056 /// * `value` - The US Quarts input value
2057 pub fn to_u_s_teaspoons(value: f64) -> f64 {
2058 return value * 192.0;
2059 }
2060 /// Converts the supplied US Quarts value to US Tablespoons
2061 /// # Arguments
2062 /// * `value` - The US Quarts input value
2063 pub fn to_u_s_tablespoons(value: f64) -> f64 {
2064 return value * 64.0;
2065 }
2066 /// Converts the supplied US Quarts value to US Pints
2067 /// # Arguments
2068 /// * `value` - The US Quarts input value
2069 pub fn to_u_s_pints(value: f64) -> f64 {
2070 return value * 2.0;
2071 }
2072 /// Converts the supplied US Quarts value to US Gallons
2073 /// # Arguments
2074 /// * `value` - The US Quarts input value
2075 pub fn to_u_s_gallons(value: f64) -> f64 {
2076 return value / 4.0;
2077 }
2078 /// Converts the supplied US Quarts value to US Fluid Ounces
2079 /// # Arguments
2080 /// * `value` - The US Quarts input value
2081 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
2082 return value * 32.0;
2083 }
2084 /// Converts the supplied US Quarts value to US Cups
2085 /// # Arguments
2086 /// * `value` - The US Quarts input value
2087 pub fn to_u_s_cups(value: f64) -> f64 {
2088 return value * 4.0;
2089 }
2090 /// Converts the supplied US Quarts value to Cubic Metres
2091 /// # Arguments
2092 /// * `value` - The US Quarts input value
2093 pub fn to_cubic_metres(value: f64) -> f64 {
2094 return value / 1056.69;
2095 }
2096 /// Converts the supplied US Quarts value to Cubic Feet
2097 /// # Arguments
2098 /// * `value` - The US Quarts input value
2099 pub fn to_cubic_feet(value: f64) -> f64 {
2100 return value / 29.9221;
2101 }
2102 /// Converts the supplied US Quarts value to Cubic Inches
2103 /// # Arguments
2104 /// * `value` - The US Quarts input value
2105 pub fn to_cubic_inches(value: f64) -> f64 {
2106 return value * 57.75;
2107 }
2108 /// Converts the supplied US Quarts value to Oil Barrels
2109 /// # Arguments
2110 /// * `value` - The US Quarts input value
2111 pub fn to_oil_barrels(value: f64) -> f64 {
2112 return value / 168.0;
2113 }
2114}
2115/// US Tablespoons conversion functions
2116pub mod u_s_tablespoons {
2117 /// Converts the supplied US Tablespoons value to Millilitres
2118 /// # Arguments
2119 /// * `value` - The US Tablespoons input value
2120 pub fn to_millilitres(value: f64) -> f64 {
2121 return value * 14.786764781249998848;
2122 }
2123 /// Converts the supplied US Tablespoons value to Litres
2124 /// # Arguments
2125 /// * `value` - The US Tablespoons input value
2126 pub fn to_litres(value: f64) -> f64 {
2127 return value * 0.014786764781249998848;
2128 }
2129 /// Converts the supplied US Tablespoons value to Kilolitres
2130 /// # Arguments
2131 /// * `value` - The US Tablespoons input value
2132 pub fn to_kilolitres(value: f64) -> f64 {
2133 return value * 0.000014786764781249998;
2134 }
2135 /// Converts the supplied US Tablespoons value to Teaspoons
2136 /// # Arguments
2137 /// * `value` - The US Tablespoons input value
2138 pub fn to_teaspoons(value: f64) -> f64 {
2139 return value * 2.4980215213991718912;
2140 }
2141 /// Converts the supplied US Tablespoons value to Tablespoons
2142 /// # Arguments
2143 /// * `value` - The US Tablespoons input value
2144 pub fn to_tablespoons(value: f64) -> f64 {
2145 return value * 0.83267384046639071232;
2146 }
2147 /// Converts the supplied US Tablespoons value to Quarts
2148 /// # Arguments
2149 /// * `value` - The US Tablespoons input value
2150 pub fn to_quarts(value: f64) -> f64 {
2151 return value * 0.013010528757287354368;
2152 }
2153 /// Converts the supplied US Tablespoons value to Pints
2154 /// # Arguments
2155 /// * `value` - The US Tablespoons input value
2156 pub fn to_pints(value: f64) -> f64 {
2157 return value * 0.026021057514574708736;
2158 }
2159 /// Converts the supplied US Tablespoons value to Gallons
2160 /// # Arguments
2161 /// * `value` - The US Tablespoons input value
2162 pub fn to_gallons(value: f64) -> f64 {
2163 return value * 0.003252632189321838592;
2164 }
2165 /// Converts the supplied US Tablespoons value to Fluid Ounces
2166 /// # Arguments
2167 /// * `value` - The US Tablespoons input value
2168 pub fn to_fluid_ounces(value: f64) -> f64 {
2169 return value * 0.52042115029149417472;
2170 }
2171 /// Converts the supplied US Tablespoons value to US Teaspoons
2172 /// # Arguments
2173 /// * `value` - The US Tablespoons input value
2174 pub fn to_u_s_teaspoons(value: f64) -> f64 {
2175 return value * 3.0;
2176 }
2177 /// Converts the supplied US Tablespoons value to US Quarts
2178 /// # Arguments
2179 /// * `value` - The US Tablespoons input value
2180 pub fn to_u_s_quarts(value: f64) -> f64 {
2181 return value / 64.0;
2182 }
2183 /// Converts the supplied US Tablespoons value to US Pints
2184 /// # Arguments
2185 /// * `value` - The US Tablespoons input value
2186 pub fn to_u_s_pints(value: f64) -> f64 {
2187 return value / 32.0;
2188 }
2189 /// Converts the supplied US Tablespoons value to US Gallons
2190 /// # Arguments
2191 /// * `value` - The US Tablespoons input value
2192 pub fn to_u_s_gallons(value: f64) -> f64 {
2193 return value / 256.0;
2194 }
2195 /// Converts the supplied US Tablespoons value to US Fluid Ounces
2196 /// # Arguments
2197 /// * `value` - The US Tablespoons input value
2198 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
2199 return value / 2.0;
2200 }
2201 /// Converts the supplied US Tablespoons value to US Cups
2202 /// # Arguments
2203 /// * `value` - The US Tablespoons input value
2204 pub fn to_u_s_cups(value: f64) -> f64 {
2205 return value / 16.0;
2206 }
2207 /// Converts the supplied US Tablespoons value to Cubic Metres
2208 /// # Arguments
2209 /// * `value` - The US Tablespoons input value
2210 pub fn to_cubic_metres(value: f64) -> f64 {
2211 return value / 67628.0;
2212 }
2213 /// Converts the supplied US Tablespoons value to Cubic Feet
2214 /// # Arguments
2215 /// * `value` - The US Tablespoons input value
2216 pub fn to_cubic_feet(value: f64) -> f64 {
2217 return value / 1915.01;
2218 }
2219 /// Converts the supplied US Tablespoons value to Cubic Inches
2220 /// # Arguments
2221 /// * `value` - The US Tablespoons input value
2222 pub fn to_cubic_inches(value: f64) -> f64 {
2223 return value / 1.10823;
2224 }
2225 /// Converts the supplied US Tablespoons value to Oil Barrels
2226 /// # Arguments
2227 /// * `value` - The US Tablespoons input value
2228 pub fn to_oil_barrels(value: f64) -> f64 {
2229 return value / 10752.0;
2230 }
2231}
2232/// US Teaspoons conversion functions
2233pub mod u_s_teaspoons {
2234 /// Converts the supplied US Teaspoons value to Millilitres
2235 /// # Arguments
2236 /// * `value` - The US Teaspoons input value
2237 pub fn to_millilitres(value: f64) -> f64 {
2238 return value * 4.928921593749999616;
2239 }
2240 /// Converts the supplied US Teaspoons value to Litres
2241 /// # Arguments
2242 /// * `value` - The US Teaspoons input value
2243 pub fn to_litres(value: f64) -> f64 {
2244 return value * 0.004928921593749999616;
2245 }
2246 /// Converts the supplied US Teaspoons value to Kilolitres
2247 /// # Arguments
2248 /// * `value` - The US Teaspoons input value
2249 pub fn to_kilolitres(value: f64) -> f64 {
2250 return value * 0.000004928921593749999;
2251 }
2252 /// Converts the supplied US Teaspoons value to Teaspoons
2253 /// # Arguments
2254 /// * `value` - The US Teaspoons input value
2255 pub fn to_teaspoons(value: f64) -> f64 {
2256 return value * 0.83267384046639071232;
2257 }
2258 /// Converts the supplied US Teaspoons value to Tablespoons
2259 /// # Arguments
2260 /// * `value` - The US Teaspoons input value
2261 pub fn to_tablespoons(value: f64) -> f64 {
2262 return value * 0.27755794682213023744;
2263 }
2264 /// Converts the supplied US Teaspoons value to Quarts
2265 /// # Arguments
2266 /// * `value` - The US Teaspoons input value
2267 pub fn to_quarts(value: f64) -> f64 {
2268 return value * 0.004336842919095784243;
2269 }
2270 /// Converts the supplied US Teaspoons value to Pints
2271 /// # Arguments
2272 /// * `value` - The US Teaspoons input value
2273 pub fn to_pints(value: f64) -> f64 {
2274 return value * 0.008673685838191568486;
2275 }
2276 /// Converts the supplied US Teaspoons value to Gallons
2277 /// # Arguments
2278 /// * `value` - The US Teaspoons input value
2279 pub fn to_gallons(value: f64) -> f64 {
2280 return value * 0.00108421072977394606;
2281 }
2282 /// Converts the supplied US Teaspoons value to Fluid Ounces
2283 /// # Arguments
2284 /// * `value` - The US Teaspoons input value
2285 pub fn to_fluid_ounces(value: f64) -> f64 {
2286 return value * 0.1734737167638313984;
2287 }
2288 /// Converts the supplied US Teaspoons value to US Tablespoons
2289 /// # Arguments
2290 /// * `value` - The US Teaspoons input value
2291 pub fn to_u_s_tablespoons(value: f64) -> f64 {
2292 return value / 3.0;
2293 }
2294 /// Converts the supplied US Teaspoons value to US Quarts
2295 /// # Arguments
2296 /// * `value` - The US Teaspoons input value
2297 pub fn to_u_s_quarts(value: f64) -> f64 {
2298 return value / 192.0;
2299 }
2300 /// Converts the supplied US Teaspoons value to US Pints
2301 /// # Arguments
2302 /// * `value` - The US Teaspoons input value
2303 pub fn to_u_s_pints(value: f64) -> f64 {
2304 return value / 96.0;
2305 }
2306 /// Converts the supplied US Teaspoons value to US Gallons
2307 /// # Arguments
2308 /// * `value` - The US Teaspoons input value
2309 pub fn to_u_s_gallons(value: f64) -> f64 {
2310 return value / 768.0;
2311 }
2312 /// Converts the supplied US Teaspoons value to US Fluid Ounces
2313 /// # Arguments
2314 /// * `value` - The US Teaspoons input value
2315 pub fn to_u_s_fluid_ounces(value: f64) -> f64 {
2316 return value / 6.0;
2317 }
2318 /// Converts the supplied US Teaspoons value to US Cups
2319 /// # Arguments
2320 /// * `value` - The US Teaspoons input value
2321 pub fn to_u_s_cups(value: f64) -> f64 {
2322 return value / 48.0;
2323 }
2324 /// Converts the supplied US Teaspoons value to Cubic Metres
2325 /// # Arguments
2326 /// * `value` - The US Teaspoons input value
2327 pub fn to_cubic_metres(value: f64) -> f64 {
2328 return value / 202884.0;
2329 }
2330 /// Converts the supplied US Teaspoons value to Cubic Feet
2331 /// # Arguments
2332 /// * `value` - The US Teaspoons input value
2333 pub fn to_cubic_feet(value: f64) -> f64 {
2334 return value / 5745.04;
2335 }
2336 /// Converts the supplied US Teaspoons value to Cubic Inches
2337 /// # Arguments
2338 /// * `value` - The US Teaspoons input value
2339 pub fn to_cubic_inches(value: f64) -> f64 {
2340 return value / 3.32468;
2341 }
2342 /// Converts the supplied US Teaspoons value to Oil Barrels
2343 /// # Arguments
2344 /// * `value` - The US Teaspoons input value
2345 pub fn to_oil_barrels(value: f64) -> f64 {
2346 return value / 32256.0;
2347 }
2348}