1891 lines
414 KiB
HTML
1891 lines
414 KiB
HTML
<!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="This trait provides methods common to all fixed-point numbers."><title>Fixed in fixed::traits - 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-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="fixed" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.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 trait"><!--[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><a class="logo-container" href="../../fixed/index.html"><img src="data:image/svg+xml;base64,
|
||
PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMzMuODY3IDMzLjg2NyIgeG1s
|
||
bnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImIiPjxjaXJjbGUgY3g9IjE2LjkzMyIg
|
||
Y3k9IjI4MC4wNyIgcj0iMTYuOTMzIiBmaWxsPSIjMDA3MmIyIi8+PC9jbGlwUGF0aD48Y2xpcFBhdGggaWQ9ImEiPjxjaXJjbGUg
|
||
Y3g9IjE2LjkzMyIgY3k9IjI4MC4wNyIgcj0iMTYuOTMzIiBmaWxsPSIjMDA3MmIyIi8+PC9jbGlwUGF0aD48L2RlZnM+PGcgdHJh
|
||
bnNmb3JtPSJ0cmFuc2xhdGUoMCAtMjYzLjEzKSI+PGNpcmNsZSBjeD0iMTYuOTMzIiBjeT0iMjgwLjA3IiByPSIxNi45MzMiIGZp
|
||
bGw9IiNmN2YxYTEiLz48ZyBmaWxsPSIjMDA3MmIyIj48cGF0aCBkPSJtMTUuMzQ2IDI4My41MWgzLjE3NXMwIDAuNzkzNzYgMC41
|
||
MjkxNyAxLjg1MjFoLTQuMjMzM2MwLjUyOTE2LTEuMDU4MyAwLjUyOTE2LTEuODUyMSAwLjUyOTE2LTEuODUyMXoiIHN0cm9rZS13
|
||
aWR0aD0iLjUyOTE3Ii8+PHBhdGggZD0ibTM0LjExMiAyODUuNTRjMi4yODYgMCAzLjgxLTEuMjg2OSAzLjgxLTIuOTgwMyAwLTEu
|
||
NDIyNC0wLjgyOTczLTIuMjUyMS0xLjg2MjctMi44MTA5di0wLjA2NzdjMC43NDUwNy0wLjQ5MTA3IDEuNDA1NS0xLjMyMDggMS40
|
||
MDU1LTIuMzUzNyAwLTEuNzc4LTEuMzAzOS0yLjk0NjQtMy4yNjgxLTIuOTQ2NC0xLjk5ODEgMC0zLjQzNzUgMS4xMzQ1LTMuNDM3
|
||
NSAyLjk2MzMgMCAxLjEzNDUgMC42MDk2IDEuOTEzNSAxLjQzOTMgMi41NHYwLjA2NzdjLTEuMDE2IDAuNTQxODctMS44Mjg4IDEu
|
||
MzM3Ny0xLjgyODggMi42NDE2IDAgMS43NDQxIDEuNTkxNyAyLjk0NjQgMy43NDIzIDIuOTQ2NHptMC42NzczMy02LjQ2ODVjLTEu
|
||
MTAwNy0wLjQyMzMzLTEuODQ1Ny0wLjg0NjY3LTEuODQ1Ny0xLjcyNzIgMC0wLjgyOTczIDAuNTQxODctMS4yMzYxIDEuMjAyMy0x
|
||
LjIzNjEgMC44MTI4IDAgMS4zMDM5IDAuNTU4OCAxLjMwMzkgMS4zODg1IDAgMC41NTg4LTAuMjM3MDcgMS4wODM3LTAuNjYwNCAx
|
||
LjU3NDh6bS0wLjYyNjUzIDQuNzQxM2MtMC44OTc0NiAwLTEuNjU5NS0wLjU1ODgtMS42NTk1LTEuNTA3MSAwLTAuNjYwNCAwLjM1
|
||
NTYtMS4yNyAwLjgyOTczLTEuNzEwMyAxLjM1NDcgMC41NzU3MyAyLjI2OTEgMC45MzEzMyAyLjI2OTEgMS44Nzk2IDAgMC44OTc0
|
||
Ny0wLjYwOTYgMS4zMzc3LTEuNDM5MyAxLjMzNzd6IiBjbGlwLXBhdGg9InVybCgjYikiLz48cGF0aCBkPSJtMjEuMzQ0IDI4NS4z
|
||
NGg3LjU2OTJ2LTIuMDk5N2gtMi40MDQ1Yy0wLjQ5MTA3IDAtMS4yMzYxIDAuMDY3Ny0xLjc5NDkgMC4xMzU0NyAxLjkxMzUtMS44
|
||
Nzk2IDMuNjc0NS0zLjY0MDcgMy42NzQ1LTUuNTg4IDAtMi4wNDg5LTEuNDM5My0zLjQwMzYtMy41NTYtMy40MDM2LTEuNTA3MSAw
|
||
LTIuNTIzMSAwLjU5MjY3LTMuNTU2IDEuNzYxMWwxLjMwMzkgMS4yODY5YzAuNTQxODctMC41NzU3MyAxLjEzNDUtMS4xMDA3IDEu
|
||
OTEzNS0xLjEwMDcgMC45MzEzMyAwIDEuNTI0IDAuNTc1NzQgMS41MjQgMS42MjU2IDAgMS41MDcxLTEuOTY0MyAzLjQzNzUtNC42
|
||
NzM2IDUuODQyeiIvPjxwYXRoIGQ9Im0xNi45MzMgMjg0LjE2YzEuNzI3MiAwIDMuMDE0MS0xLjM1NDcgMy4wMTQxLTMuMTE1NyAw
|
||
LTEuNzk0OS0xLjI4NjktMy4xNDk2LTMuMDE0MS0zLjE0OTYtMS43MjcyIDAtMy4wMTQxIDEuMzU0Ny0zLjAxNDEgMy4xNDk2IDAg
|
||
MS43NjExIDEuMjg2OSAzLjExNTcgMy4wMTQxIDMuMTE1N3oiLz48cGF0aCBkPSJtOC45MTU0IDI4MC4zOGMwLjgxMjggMCAxLjQw
|
||
NTUgMC40MjMzNCAxLjQwNTUgMS41NTc5IDAgMS4yMTkyLTAuNjA5NiAxLjc0NDEtMS4zNTQ3IDEuNzQ0MXMtMS40NTYzLTAuNTQx
|
||
ODYtMS42NzY0LTIuMjM1MmMwLjQ0MDI3LTAuNzYyIDEuMDY2OC0xLjA2NjggMS42MjU2LTEuMDY2OHptMC4xMDE2IDUuMTY0N2Mx
|
||
Ljk0NzMgMCAzLjU3MjktMS4zNzE2IDMuNTcyOS0zLjYwNjggMC0yLjI2OTEtMS4zNTQ3LTMuMzE4OS0zLjIwMDQtMy4zMTg5LTAu
|
||
NjYwNCAwLTEuNTkxNyAwLjQyMzMzLTIuMTUwNSAxLjEzNDUgMC4wODQ2NjctMi41MDYxIDEuMDMyOS0zLjM1MjggMi4yMTgzLTMu
|
||
MzUyOCAwLjYyNjUzIDAgMS4zMDM5IDAuMzU1NiAxLjY3NjQgMC43NjJsMS4zMDM5LTEuNDkwMWMtMC42NzczMy0wLjY5NDI3LTEu
|
||
NzEwMy0xLjI4NjktMy4xMzI3LTEuMjg2OS0yLjI2OTEgMC00LjM1MTkgMS44MTE5LTQuMzUxOSA1LjgyNTEgMCAzLjc3NjEgMS45
|
||
ODEyIDUuMzM0IDQuMDY0IDUuMzM0eiIvPjxwYXRoIGQ9Im0tMC4yMTE2NyAyODUuNTRjMi4zMDI5IDAgMy44NDM5LTEuOTY0MyAz
|
||
Ljg0MzktNS42MjE5cy0xLjU0MDktNS41MzcyLTMuODQzOS01LjUzNzJjLTIuMzAyOSAwLTMuODQzOSAxLjg3OTYtMy44NDM5IDUu
|
||
NTM3MnMxLjU0MDkgNS42MjE5IDMuODQzOSA1LjYyMTl6bTAtMS45MzA0Yy0wLjgyOTczIDAtMS40OTAxLTAuNzYyLTEuNDkwMS0z
|
||
LjY5MTUgMC0yLjk0NjQgMC42NjA0LTMuNjA2OCAxLjQ5MDEtMy42MDY4IDAuODQ2NjcgMCAxLjQ5MDEgMC42NjA0IDEuNDkwMSAz
|
||
LjYwNjggMCAyLjkyOTUtMC42NDM0NyAzLjY5MTUtMS40OTAxIDMuNjkxNXoiIGNsaXAtcGF0aD0idXJsKCNhKSIvPjwvZz48L2c+
|
||
PC9zdmc+Cg==
|
||
" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../fixed/index.html"><img src="data:image/svg+xml;base64,
|
||
PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMzMuODY3IDMzLjg2NyIgeG1s
|
||
bnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImIiPjxjaXJjbGUgY3g9IjE2LjkzMyIg
|
||
Y3k9IjI4MC4wNyIgcj0iMTYuOTMzIiBmaWxsPSIjMDA3MmIyIi8+PC9jbGlwUGF0aD48Y2xpcFBhdGggaWQ9ImEiPjxjaXJjbGUg
|
||
Y3g9IjE2LjkzMyIgY3k9IjI4MC4wNyIgcj0iMTYuOTMzIiBmaWxsPSIjMDA3MmIyIi8+PC9jbGlwUGF0aD48L2RlZnM+PGcgdHJh
|
||
bnNmb3JtPSJ0cmFuc2xhdGUoMCAtMjYzLjEzKSI+PGNpcmNsZSBjeD0iMTYuOTMzIiBjeT0iMjgwLjA3IiByPSIxNi45MzMiIGZp
|
||
bGw9IiNmN2YxYTEiLz48ZyBmaWxsPSIjMDA3MmIyIj48cGF0aCBkPSJtMTUuMzQ2IDI4My41MWgzLjE3NXMwIDAuNzkzNzYgMC41
|
||
MjkxNyAxLjg1MjFoLTQuMjMzM2MwLjUyOTE2LTEuMDU4MyAwLjUyOTE2LTEuODUyMSAwLjUyOTE2LTEuODUyMXoiIHN0cm9rZS13
|
||
aWR0aD0iLjUyOTE3Ii8+PHBhdGggZD0ibTM0LjExMiAyODUuNTRjMi4yODYgMCAzLjgxLTEuMjg2OSAzLjgxLTIuOTgwMyAwLTEu
|
||
NDIyNC0wLjgyOTczLTIuMjUyMS0xLjg2MjctMi44MTA5di0wLjA2NzdjMC43NDUwNy0wLjQ5MTA3IDEuNDA1NS0xLjMyMDggMS40
|
||
MDU1LTIuMzUzNyAwLTEuNzc4LTEuMzAzOS0yLjk0NjQtMy4yNjgxLTIuOTQ2NC0xLjk5ODEgMC0zLjQzNzUgMS4xMzQ1LTMuNDM3
|
||
NSAyLjk2MzMgMCAxLjEzNDUgMC42MDk2IDEuOTEzNSAxLjQzOTMgMi41NHYwLjA2NzdjLTEuMDE2IDAuNTQxODctMS44Mjg4IDEu
|
||
MzM3Ny0xLjgyODggMi42NDE2IDAgMS43NDQxIDEuNTkxNyAyLjk0NjQgMy43NDIzIDIuOTQ2NHptMC42NzczMy02LjQ2ODVjLTEu
|
||
MTAwNy0wLjQyMzMzLTEuODQ1Ny0wLjg0NjY3LTEuODQ1Ny0xLjcyNzIgMC0wLjgyOTczIDAuNTQxODctMS4yMzYxIDEuMjAyMy0x
|
||
LjIzNjEgMC44MTI4IDAgMS4zMDM5IDAuNTU4OCAxLjMwMzkgMS4zODg1IDAgMC41NTg4LTAuMjM3MDcgMS4wODM3LTAuNjYwNCAx
|
||
LjU3NDh6bS0wLjYyNjUzIDQuNzQxM2MtMC44OTc0NiAwLTEuNjU5NS0wLjU1ODgtMS42NTk1LTEuNTA3MSAwLTAuNjYwNCAwLjM1
|
||
NTYtMS4yNyAwLjgyOTczLTEuNzEwMyAxLjM1NDcgMC41NzU3MyAyLjI2OTEgMC45MzEzMyAyLjI2OTEgMS44Nzk2IDAgMC44OTc0
|
||
Ny0wLjYwOTYgMS4zMzc3LTEuNDM5MyAxLjMzNzd6IiBjbGlwLXBhdGg9InVybCgjYikiLz48cGF0aCBkPSJtMjEuMzQ0IDI4NS4z
|
||
NGg3LjU2OTJ2LTIuMDk5N2gtMi40MDQ1Yy0wLjQ5MTA3IDAtMS4yMzYxIDAuMDY3Ny0xLjc5NDkgMC4xMzU0NyAxLjkxMzUtMS44
|
||
Nzk2IDMuNjc0NS0zLjY0MDcgMy42NzQ1LTUuNTg4IDAtMi4wNDg5LTEuNDM5My0zLjQwMzYtMy41NTYtMy40MDM2LTEuNTA3MSAw
|
||
LTIuNTIzMSAwLjU5MjY3LTMuNTU2IDEuNzYxMWwxLjMwMzkgMS4yODY5YzAuNTQxODctMC41NzU3MyAxLjEzNDUtMS4xMDA3IDEu
|
||
OTEzNS0xLjEwMDcgMC45MzEzMyAwIDEuNTI0IDAuNTc1NzQgMS41MjQgMS42MjU2IDAgMS41MDcxLTEuOTY0MyAzLjQzNzUtNC42
|
||
NzM2IDUuODQyeiIvPjxwYXRoIGQ9Im0xNi45MzMgMjg0LjE2YzEuNzI3MiAwIDMuMDE0MS0xLjM1NDcgMy4wMTQxLTMuMTE1NyAw
|
||
LTEuNzk0OS0xLjI4NjktMy4xNDk2LTMuMDE0MS0zLjE0OTYtMS43MjcyIDAtMy4wMTQxIDEuMzU0Ny0zLjAxNDEgMy4xNDk2IDAg
|
||
MS43NjExIDEuMjg2OSAzLjExNTcgMy4wMTQxIDMuMTE1N3oiLz48cGF0aCBkPSJtOC45MTU0IDI4MC4zOGMwLjgxMjggMCAxLjQw
|
||
NTUgMC40MjMzNCAxLjQwNTUgMS41NTc5IDAgMS4yMTkyLTAuNjA5NiAxLjc0NDEtMS4zNTQ3IDEuNzQ0MXMtMS40NTYzLTAuNTQx
|
||
ODYtMS42NzY0LTIuMjM1MmMwLjQ0MDI3LTAuNzYyIDEuMDY2OC0xLjA2NjggMS42MjU2LTEuMDY2OHptMC4xMDE2IDUuMTY0N2Mx
|
||
Ljk0NzMgMCAzLjU3MjktMS4zNzE2IDMuNTcyOS0zLjYwNjggMC0yLjI2OTEtMS4zNTQ3LTMuMzE4OS0zLjIwMDQtMy4zMTg5LTAu
|
||
NjYwNCAwLTEuNTkxNyAwLjQyMzMzLTIuMTUwNSAxLjEzNDUgMC4wODQ2NjctMi41MDYxIDEuMDMyOS0zLjM1MjggMi4yMTgzLTMu
|
||
MzUyOCAwLjYyNjUzIDAgMS4zMDM5IDAuMzU1NiAxLjY3NjQgMC43NjJsMS4zMDM5LTEuNDkwMWMtMC42NzczMy0wLjY5NDI3LTEu
|
||
NzEwMy0xLjI4NjktMy4xMzI3LTEuMjg2OS0yLjI2OTEgMC00LjM1MTkgMS44MTE5LTQuMzUxOSA1LjgyNTEgMCAzLjc3NjEgMS45
|
||
ODEyIDUuMzM0IDQuMDY0IDUuMzM0eiIvPjxwYXRoIGQ9Im0tMC4yMTE2NyAyODUuNTRjMi4zMDI5IDAgMy44NDM5LTEuOTY0MyAz
|
||
Ljg0MzktNS42MjE5cy0xLjU0MDktNS41MzcyLTMuODQzOS01LjUzNzJjLTIuMzAyOSAwLTMuODQzOSAxLjg3OTYtMy44NDM5IDUu
|
||
NTM3MnMxLjU0MDkgNS42MjE5IDMuODQzOSA1LjYyMTl6bTAtMS45MzA0Yy0wLjgyOTczIDAtMS40OTAxLTAuNzYyLTEuNDkwMS0z
|
||
LjY5MTUgMC0yLjk0NjQgMC42NjA0LTMuNjA2OCAxLjQ5MDEtMy42MDY4IDAuODQ2NjcgMCAxLjQ5MDEgMC42NjA0IDEuNDkwMSAz
|
||
LjYwNjggMCAyLjkyOTUtMC42NDM0NyAzLjY5MTUtMS40OTAxIDMuNjkxNXoiIGNsaXAtcGF0aD0idXJsKCNhKSIvPjwvZz48L2c+
|
||
PC9zdmc+Cg==
|
||
" alt="logo"></a><h2><a href="../../fixed/index.html">fixed</a><span class="version">1.28.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Fixed</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.DELTA" title="DELTA">DELTA</a></li><li><a href="#associatedconstant.FRAC_NBITS" title="FRAC_NBITS">FRAC_NBITS</a></li><li><a href="#associatedconstant.INT_NBITS" title="INT_NBITS">INT_NBITS</a></li><li><a href="#associatedconstant.IS_SIGNED" title="IS_SIGNED">IS_SIGNED</a></li><li><a href="#associatedconstant.MAX" title="MAX">MAX</a></li><li><a href="#associatedconstant.MIN" title="MIN">MIN</a></li><li><a href="#associatedconstant.TRY_ONE" title="TRY_ONE">TRY_ONE</a></li><li><a href="#associatedconstant.ZERO" title="ZERO">ZERO</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Bits" title="Bits">Bits</a></li><li><a href="#associatedtype.Bytes" title="Bytes">Bytes</a></li><li><a href="#associatedtype.Frac" title="Frac">Frac</a></li><li><a href="#associatedtype.NonZeroBits" title="NonZeroBits">NonZeroBits</a></li><li><a href="#associatedtype.Signed" title="Signed">Signed</a></li><li><a href="#associatedtype.Unsigned" title="Unsigned">Unsigned</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.abs_diff" title="abs_diff">abs_diff</a></li><li><a href="#tymethod.add_prod" title="add_prod">add_prod</a></li><li><a href="#tymethod.ceil" title="ceil">ceil</a></li><li><a href="#tymethod.checked_add" title="checked_add">checked_add</a></li><li><a href="#tymethod.checked_add_prod" title="checked_add_prod">checked_add_prod</a></li><li><a href="#tymethod.checked_ceil" title="checked_ceil">checked_ceil</a></li><li><a href="#tymethod.checked_dist" title="checked_dist">checked_dist</a></li><li><a href="#tymethod.checked_div" title="checked_div">checked_div</a></li><li><a href="#tymethod.checked_div_euclid" title="checked_div_euclid">checked_div_euclid</a></li><li><a href="#tymethod.checked_div_euclid_int" title="checked_div_euclid_int">checked_div_euclid_int</a></li><li><a href="#tymethod.checked_div_int" title="checked_div_int">checked_div_int</a></li><li><a href="#tymethod.checked_floor" title="checked_floor">checked_floor</a></li><li><a href="#tymethod.checked_from_num" title="checked_from_num">checked_from_num</a></li><li><a href="#tymethod.checked_hypot" title="checked_hypot">checked_hypot</a></li><li><a href="#tymethod.checked_int_log" title="checked_int_log">checked_int_log</a></li><li><a href="#tymethod.checked_int_log10" title="checked_int_log10">checked_int_log10</a></li><li><a href="#tymethod.checked_int_log2" title="checked_int_log2">checked_int_log2</a></li><li><a href="#tymethod.checked_inv_lerp" title="checked_inv_lerp">checked_inv_lerp</a></li><li><a href="#tymethod.checked_lerp" title="checked_lerp">checked_lerp</a></li><li><a href="#tymethod.checked_mul" title="checked_mul">checked_mul</a></li><li><a href="#tymethod.checked_mul_acc" title="checked_mul_acc">checked_mul_acc</a></li><li><a href="#tymethod.checked_mul_add" title="checked_mul_add">checked_mul_add</a></li><li><a href="#tymethod.checked_mul_int" title="checked_mul_int">checked_mul_int</a></li><li><a href="#tymethod.checked_neg" title="checked_neg">checked_neg</a></li><li><a href="#tymethod.checked_next_multiple_of" title="checked_next_multiple_of">checked_next_multiple_of</a></li><li><a href="#tymethod.checked_recip" title="checked_recip">checked_recip</a></li><li><a href="#tymethod.checked_rem" title="checked_rem">checked_rem</a></li><li><a href="#tymethod.checked_rem_euclid" title="checked_rem_euclid">checked_rem_euclid</a></li><li><a href="#tymethod.checked_rem_euclid_int" title="checked_rem_euclid_int">checked_rem_euclid_int</a></li><li><a href="#tymethod.checked_rem_int" title="checked_rem_int">checked_rem_int</a></li><li><a href="#tymethod.checked_round" title="checked_round">checked_round</a></li><li><a href="#tymethod.checked_round_ties_even" title="checked_round_ties_even">checked_round_ties_even</a></li><li><a href="#tymethod.checked_shl" title="checked_shl">checked_shl</a></li><li><a href="#tymethod.checked_shr" title="checked_shr">checked_shr</a></li><li><a href="#tymethod.checked_sqrt" title="checked_sqrt">checked_sqrt</a></li><li><a href="#tymethod.checked_sub" title="checked_sub">checked_sub</a></li><li><a href="#tymethod.checked_to_num" title="checked_to_num">checked_to_num</a></li><li><a href="#tymethod.count_ones" title="count_ones">count_ones</a></li><li><a href="#tymethod.count_zeros" title="count_zeros">count_zeros</a></li><li><a href="#tymethod.dist" title="dist">dist</a></li><li><a href="#tymethod.div_euclid" title="div_euclid">div_euclid</a></li><li><a href="#tymethod.div_euclid_int" title="div_euclid_int">div_euclid_int</a></li><li><a href="#tymethod.floor" title="floor">floor</a></li><li><a href="#tymethod.frac" title="frac">frac</a></li><li><a href="#tymethod.from_be" title="from_be">from_be</a></li><li><a href="#tymethod.from_be_bytes" title="from_be_bytes">from_be_bytes</a></li><li><a href="#tymethod.from_bits" title="from_bits">from_bits</a></li><li><a href="#tymethod.from_le" title="from_le">from_le</a></li><li><a href="#tymethod.from_le_bytes" title="from_le_bytes">from_le_bytes</a></li><li><a href="#tymethod.from_ne_bytes" title="from_ne_bytes">from_ne_bytes</a></li><li><a href="#tymethod.from_num" title="from_num">from_num</a></li><li><a href="#tymethod.from_str_binary" title="from_str_binary">from_str_binary</a></li><li><a href="#tymethod.from_str_hex" title="from_str_hex">from_str_hex</a></li><li><a href="#tymethod.from_str_octal" title="from_str_octal">from_str_octal</a></li><li><a href="#tymethod.hypot" title="hypot">hypot</a></li><li><a href="#tymethod.int" title="int">int</a></li><li><a href="#tymethod.int_log" title="int_log">int_log</a></li><li><a href="#tymethod.int_log10" title="int_log10">int_log10</a></li><li><a href="#tymethod.int_log2" title="int_log2">int_log2</a></li><li><a href="#tymethod.inv_lerp" title="inv_lerp">inv_lerp</a></li><li><a href="#tymethod.is_zero" title="is_zero">is_zero</a></li><li><a href="#tymethod.leading_ones" title="leading_ones">leading_ones</a></li><li><a href="#tymethod.leading_zeros" title="leading_zeros">leading_zeros</a></li><li><a href="#tymethod.lerp" title="lerp">lerp</a></li><li><a href="#tymethod.mean" title="mean">mean</a></li><li><a href="#tymethod.mul_acc" title="mul_acc">mul_acc</a></li><li><a href="#tymethod.mul_add" title="mul_add">mul_add</a></li><li><a href="#tymethod.next_multiple_of" title="next_multiple_of">next_multiple_of</a></li><li><a href="#tymethod.overflowing_add" title="overflowing_add">overflowing_add</a></li><li><a href="#tymethod.overflowing_add_prod" title="overflowing_add_prod">overflowing_add_prod</a></li><li><a href="#tymethod.overflowing_ceil" title="overflowing_ceil">overflowing_ceil</a></li><li><a href="#tymethod.overflowing_dist" title="overflowing_dist">overflowing_dist</a></li><li><a href="#tymethod.overflowing_div" title="overflowing_div">overflowing_div</a></li><li><a href="#tymethod.overflowing_div_euclid" title="overflowing_div_euclid">overflowing_div_euclid</a></li><li><a href="#tymethod.overflowing_div_euclid_int" title="overflowing_div_euclid_int">overflowing_div_euclid_int</a></li><li><a href="#tymethod.overflowing_div_int" title="overflowing_div_int">overflowing_div_int</a></li><li><a href="#tymethod.overflowing_floor" title="overflowing_floor">overflowing_floor</a></li><li><a href="#tymethod.overflowing_from_num" title="overflowing_from_num">overflowing_from_num</a></li><li><a href="#tymethod.overflowing_from_str" title="overflowing_from_str">overflowing_from_str</a></li><li><a href="#tymethod.overflowing_from_str_binary" title="overflowing_from_str_binary">overflowing_from_str_binary</a></li><li><a href="#tymethod.overflowing_from_str_hex" title="overflowing_from_str_hex">overflowing_from_str_hex</a></li><li><a href="#tymethod.overflowing_from_str_octal" title="overflowing_from_str_octal">overflowing_from_str_octal</a></li><li><a href="#tymethod.overflowing_hypot" title="overflowing_hypot">overflowing_hypot</a></li><li><a href="#tymethod.overflowing_inv_lerp" title="overflowing_inv_lerp">overflowing_inv_lerp</a></li><li><a href="#tymethod.overflowing_lerp" title="overflowing_lerp">overflowing_lerp</a></li><li><a href="#tymethod.overflowing_mul" title="overflowing_mul">overflowing_mul</a></li><li><a href="#tymethod.overflowing_mul_acc" title="overflowing_mul_acc">overflowing_mul_acc</a></li><li><a href="#tymethod.overflowing_mul_add" title="overflowing_mul_add">overflowing_mul_add</a></li><li><a href="#tymethod.overflowing_mul_int" title="overflowing_mul_int">overflowing_mul_int</a></li><li><a href="#tymethod.overflowing_neg" title="overflowing_neg">overflowing_neg</a></li><li><a href="#tymethod.overflowing_next_multiple_of" title="overflowing_next_multiple_of">overflowing_next_multiple_of</a></li><li><a href="#tymethod.overflowing_recip" title="overflowing_recip">overflowing_recip</a></li><li><a href="#tymethod.overflowing_rem_euclid_int" title="overflowing_rem_euclid_int">overflowing_rem_euclid_int</a></li><li><a href="#tymethod.overflowing_round" title="overflowing_round">overflowing_round</a></li><li><a href="#tymethod.overflowing_round_ties_even" title="overflowing_round_ties_even">overflowing_round_ties_even</a></li><li><a href="#tymethod.overflowing_shl" title="overflowing_shl">overflowing_shl</a></li><li><a href="#tymethod.overflowing_shr" title="overflowing_shr">overflowing_shr</a></li><li><a href="#tymethod.overflowing_sqrt" title="overflowing_sqrt">overflowing_sqrt</a></li><li><a href="#tymethod.overflowing_sub" title="overflowing_sub">overflowing_sub</a></li><li><a href="#tymethod.overflowing_to_num" title="overflowing_to_num">overflowing_to_num</a></li><li><a href="#tymethod.recip" title="recip">recip</a></li><li><a href="#tymethod.rem_euclid" title="rem_euclid">rem_euclid</a></li><li><a href="#tymethod.rem_euclid_int" title="rem_euclid_int">rem_euclid_int</a></li><li><a href="#tymethod.reverse_bits" title="reverse_bits">reverse_bits</a></li><li><a href="#tymethod.rotate_left" title="rotate_left">rotate_left</a></li><li><a href="#tymethod.rotate_right" title="rotate_right">rotate_right</a></li><li><a href="#tymethod.round" title="round">round</a></li><li><a href="#tymethod.round_ties_even" title="round_ties_even">round_ties_even</a></li><li><a href="#tymethod.round_to_zero" title="round_to_zero">round_to_zero</a></li><li><a href="#tymethod.saturating_add" title="saturating_add">saturating_add</a></li><li><a href="#tymethod.saturating_add_prod" title="saturating_add_prod">saturating_add_prod</a></li><li><a href="#tymethod.saturating_ceil" title="saturating_ceil">saturating_ceil</a></li><li><a href="#tymethod.saturating_dist" title="saturating_dist">saturating_dist</a></li><li><a href="#tymethod.saturating_div" title="saturating_div">saturating_div</a></li><li><a href="#tymethod.saturating_div_euclid" title="saturating_div_euclid">saturating_div_euclid</a></li><li><a href="#tymethod.saturating_div_euclid_int" title="saturating_div_euclid_int">saturating_div_euclid_int</a></li><li><a href="#tymethod.saturating_div_int" title="saturating_div_int">saturating_div_int</a></li><li><a href="#tymethod.saturating_floor" title="saturating_floor">saturating_floor</a></li><li><a href="#tymethod.saturating_from_num" title="saturating_from_num">saturating_from_num</a></li><li><a href="#tymethod.saturating_from_str" title="saturating_from_str">saturating_from_str</a></li><li><a href="#tymethod.saturating_from_str_binary" title="saturating_from_str_binary">saturating_from_str_binary</a></li><li><a href="#tymethod.saturating_from_str_hex" title="saturating_from_str_hex">saturating_from_str_hex</a></li><li><a href="#tymethod.saturating_from_str_octal" title="saturating_from_str_octal">saturating_from_str_octal</a></li><li><a href="#tymethod.saturating_hypot" title="saturating_hypot">saturating_hypot</a></li><li><a href="#tymethod.saturating_inv_lerp" title="saturating_inv_lerp">saturating_inv_lerp</a></li><li><a href="#tymethod.saturating_lerp" title="saturating_lerp">saturating_lerp</a></li><li><a href="#tymethod.saturating_mul" title="saturating_mul">saturating_mul</a></li><li><a href="#tymethod.saturating_mul_acc" title="saturating_mul_acc">saturating_mul_acc</a></li><li><a href="#tymethod.saturating_mul_add" title="saturating_mul_add">saturating_mul_add</a></li><li><a href="#tymethod.saturating_mul_int" title="saturating_mul_int">saturating_mul_int</a></li><li><a href="#tymethod.saturating_neg" title="saturating_neg">saturating_neg</a></li><li><a href="#tymethod.saturating_next_multiple_of" title="saturating_next_multiple_of">saturating_next_multiple_of</a></li><li><a href="#tymethod.saturating_recip" title="saturating_recip">saturating_recip</a></li><li><a href="#tymethod.saturating_rem_euclid_int" title="saturating_rem_euclid_int">saturating_rem_euclid_int</a></li><li><a href="#tymethod.saturating_round" title="saturating_round">saturating_round</a></li><li><a href="#tymethod.saturating_round_ties_even" title="saturating_round_ties_even">saturating_round_ties_even</a></li><li><a href="#tymethod.saturating_sqrt" title="saturating_sqrt">saturating_sqrt</a></li><li><a href="#tymethod.saturating_sub" title="saturating_sub">saturating_sub</a></li><li><a href="#tymethod.saturating_to_num" title="saturating_to_num">saturating_to_num</a></li><li><a href="#tymethod.sqrt" title="sqrt">sqrt</a></li><li><a href="#tymethod.swap_bytes" title="swap_bytes">swap_bytes</a></li><li><a href="#tymethod.to_be" title="to_be">to_be</a></li><li><a href="#tymethod.to_be_bytes" title="to_be_bytes">to_be_bytes</a></li><li><a href="#tymethod.to_bits" title="to_bits">to_bits</a></li><li><a href="#tymethod.to_le" title="to_le">to_le</a></li><li><a href="#tymethod.to_le_bytes" title="to_le_bytes">to_le_bytes</a></li><li><a href="#tymethod.to_ne_bytes" title="to_ne_bytes">to_ne_bytes</a></li><li><a href="#tymethod.to_num" title="to_num">to_num</a></li><li><a href="#tymethod.trailing_ones" title="trailing_ones">trailing_ones</a></li><li><a href="#tymethod.trailing_zeros" title="trailing_zeros">trailing_zeros</a></li><li><a href="#tymethod.unchecked_add" title="unchecked_add">unchecked_add</a></li><li><a href="#tymethod.unchecked_mul_int" title="unchecked_mul_int">unchecked_mul_int</a></li><li><a href="#tymethod.unchecked_sub" title="unchecked_sub">unchecked_sub</a></li><li><a href="#tymethod.unwrapped_add" title="unwrapped_add">unwrapped_add</a></li><li><a href="#tymethod.unwrapped_add_prod" title="unwrapped_add_prod">unwrapped_add_prod</a></li><li><a href="#tymethod.unwrapped_ceil" title="unwrapped_ceil">unwrapped_ceil</a></li><li><a href="#tymethod.unwrapped_dist" title="unwrapped_dist">unwrapped_dist</a></li><li><a href="#tymethod.unwrapped_div" title="unwrapped_div">unwrapped_div</a></li><li><a href="#tymethod.unwrapped_div_euclid" title="unwrapped_div_euclid">unwrapped_div_euclid</a></li><li><a href="#tymethod.unwrapped_div_euclid_int" title="unwrapped_div_euclid_int">unwrapped_div_euclid_int</a></li><li><a href="#tymethod.unwrapped_div_int" title="unwrapped_div_int">unwrapped_div_int</a></li><li><a href="#tymethod.unwrapped_floor" title="unwrapped_floor">unwrapped_floor</a></li><li><a href="#tymethod.unwrapped_from_num" title="unwrapped_from_num">unwrapped_from_num</a></li><li><a href="#tymethod.unwrapped_from_str" title="unwrapped_from_str">unwrapped_from_str</a></li><li><a href="#tymethod.unwrapped_from_str_binary" title="unwrapped_from_str_binary">unwrapped_from_str_binary</a></li><li><a href="#tymethod.unwrapped_from_str_hex" title="unwrapped_from_str_hex">unwrapped_from_str_hex</a></li><li><a href="#tymethod.unwrapped_from_str_octal" title="unwrapped_from_str_octal">unwrapped_from_str_octal</a></li><li><a href="#tymethod.unwrapped_hypot" title="unwrapped_hypot">unwrapped_hypot</a></li><li><a href="#tymethod.unwrapped_inv_lerp" title="unwrapped_inv_lerp">unwrapped_inv_lerp</a></li><li><a href="#tymethod.unwrapped_lerp" title="unwrapped_lerp">unwrapped_lerp</a></li><li><a href="#tymethod.unwrapped_mul" title="unwrapped_mul">unwrapped_mul</a></li><li><a href="#tymethod.unwrapped_mul_acc" title="unwrapped_mul_acc">unwrapped_mul_acc</a></li><li><a href="#tymethod.unwrapped_mul_add" title="unwrapped_mul_add">unwrapped_mul_add</a></li><li><a href="#tymethod.unwrapped_mul_int" title="unwrapped_mul_int">unwrapped_mul_int</a></li><li><a href="#tymethod.unwrapped_neg" title="unwrapped_neg">unwrapped_neg</a></li><li><a href="#tymethod.unwrapped_next_multiple_of" title="unwrapped_next_multiple_of">unwrapped_next_multiple_of</a></li><li><a href="#tymethod.unwrapped_recip" title="unwrapped_recip">unwrapped_recip</a></li><li><a href="#tymethod.unwrapped_rem" title="unwrapped_rem">unwrapped_rem</a></li><li><a href="#tymethod.unwrapped_rem_euclid" title="unwrapped_rem_euclid">unwrapped_rem_euclid</a></li><li><a href="#tymethod.unwrapped_rem_euclid_int" title="unwrapped_rem_euclid_int">unwrapped_rem_euclid_int</a></li><li><a href="#tymethod.unwrapped_rem_int" title="unwrapped_rem_int">unwrapped_rem_int</a></li><li><a href="#tymethod.unwrapped_round" title="unwrapped_round">unwrapped_round</a></li><li><a href="#tymethod.unwrapped_round_ties_even" title="unwrapped_round_ties_even">unwrapped_round_ties_even</a></li><li><a href="#tymethod.unwrapped_shl" title="unwrapped_shl">unwrapped_shl</a></li><li><a href="#tymethod.unwrapped_shr" title="unwrapped_shr">unwrapped_shr</a></li><li><a href="#tymethod.unwrapped_sqrt" title="unwrapped_sqrt">unwrapped_sqrt</a></li><li><a href="#tymethod.unwrapped_sub" title="unwrapped_sub">unwrapped_sub</a></li><li><a href="#tymethod.unwrapped_to_num" title="unwrapped_to_num">unwrapped_to_num</a></li><li><a href="#tymethod.wrapping_add" title="wrapping_add">wrapping_add</a></li><li><a href="#tymethod.wrapping_add_prod" title="wrapping_add_prod">wrapping_add_prod</a></li><li><a href="#tymethod.wrapping_ceil" title="wrapping_ceil">wrapping_ceil</a></li><li><a href="#tymethod.wrapping_dist" title="wrapping_dist">wrapping_dist</a></li><li><a href="#tymethod.wrapping_div" title="wrapping_div">wrapping_div</a></li><li><a href="#tymethod.wrapping_div_euclid" title="wrapping_div_euclid">wrapping_div_euclid</a></li><li><a href="#tymethod.wrapping_div_euclid_int" title="wrapping_div_euclid_int">wrapping_div_euclid_int</a></li><li><a href="#tymethod.wrapping_div_int" title="wrapping_div_int">wrapping_div_int</a></li><li><a href="#tymethod.wrapping_floor" title="wrapping_floor">wrapping_floor</a></li><li><a href="#tymethod.wrapping_from_num" title="wrapping_from_num">wrapping_from_num</a></li><li><a href="#tymethod.wrapping_from_str" title="wrapping_from_str">wrapping_from_str</a></li><li><a href="#tymethod.wrapping_from_str_binary" title="wrapping_from_str_binary">wrapping_from_str_binary</a></li><li><a href="#tymethod.wrapping_from_str_hex" title="wrapping_from_str_hex">wrapping_from_str_hex</a></li><li><a href="#tymethod.wrapping_from_str_octal" title="wrapping_from_str_octal">wrapping_from_str_octal</a></li><li><a href="#tymethod.wrapping_hypot" title="wrapping_hypot">wrapping_hypot</a></li><li><a href="#tymethod.wrapping_inv_lerp" title="wrapping_inv_lerp">wrapping_inv_lerp</a></li><li><a href="#tymethod.wrapping_lerp" title="wrapping_lerp">wrapping_lerp</a></li><li><a href="#tymethod.wrapping_mul" title="wrapping_mul">wrapping_mul</a></li><li><a href="#tymethod.wrapping_mul_acc" title="wrapping_mul_acc">wrapping_mul_acc</a></li><li><a href="#tymethod.wrapping_mul_add" title="wrapping_mul_add">wrapping_mul_add</a></li><li><a href="#tymethod.wrapping_mul_int" title="wrapping_mul_int">wrapping_mul_int</a></li><li><a href="#tymethod.wrapping_neg" title="wrapping_neg">wrapping_neg</a></li><li><a href="#tymethod.wrapping_next_multiple_of" title="wrapping_next_multiple_of">wrapping_next_multiple_of</a></li><li><a href="#tymethod.wrapping_recip" title="wrapping_recip">wrapping_recip</a></li><li><a href="#tymethod.wrapping_rem_euclid_int" title="wrapping_rem_euclid_int">wrapping_rem_euclid_int</a></li><li><a href="#tymethod.wrapping_round" title="wrapping_round">wrapping_round</a></li><li><a href="#tymethod.wrapping_round_ties_even" title="wrapping_round_ties_even">wrapping_round_ties_even</a></li><li><a href="#tymethod.wrapping_shl" title="wrapping_shl">wrapping_shl</a></li><li><a href="#tymethod.wrapping_shr" title="wrapping_shr">wrapping_shr</a></li><li><a href="#tymethod.wrapping_sqrt" title="wrapping_sqrt">wrapping_sqrt</a></li><li><a href="#tymethod.wrapping_sub" title="wrapping_sub">wrapping_sub</a></li><li><a href="#tymethod.wrapping_to_num" title="wrapping_to_num">wrapping_to_num</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.checked_round_ties_to_even" title="checked_round_ties_to_even">checked_round_ties_to_even</a></li><li><a href="#method.get_signed" title="get_signed">get_signed</a></li><li><a href="#method.get_signed_mut" title="get_signed_mut">get_signed_mut</a></li><li><a href="#method.get_unsigned" title="get_unsigned">get_unsigned</a></li><li><a href="#method.get_unsigned_mut" title="get_unsigned_mut">get_unsigned_mut</a></li><li><a href="#method.overflowing_round_ties_to_even" title="overflowing_round_ties_to_even">overflowing_round_ties_to_even</a></li><li><a href="#method.round_ties_to_even" title="round_ties_to_even">round_ties_to_even</a></li><li><a href="#method.saturating_round_ties_to_even" title="saturating_round_ties_to_even">saturating_round_ties_to_even</a></li><li><a href="#method.unwrapped_round_ties_to_even" title="unwrapped_round_ties_to_even">unwrapped_round_ties_to_even</a></li><li><a href="#method.wrapping_round_ties_to_even" title="wrapping_round_ties_to_even">wrapping_round_ties_to_even</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In fixed::<wbr>traits</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">fixed</a>::<wbr><a href="index.html">traits</a></span><h1>Trait <span class="trait">Fixed</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/fixed/traits.rs.html#400-3133">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Fixed<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="../../bytemuck/contiguous/trait.Contiguous.html" title="trait bytemuck::contiguous::Contiguous">Contiguous</a> + <a class="trait" href="../../bytemuck/pod/trait.Pod.html" title="trait bytemuck::pod::Pod">Pod</a> + <a class="trait" href="../../bytemuck/transparent/trait.TransparentWrapper.html" title="trait bytemuck::transparent::TransparentWrapper">TransparentWrapper</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/str/traits/trait.FromStr.html" title="trait core::str::traits::FromStr">FromStr</a><Err = <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>> + <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a> + <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>, Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>, Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.DivAssign.html" title="trait core::ops::arith::DivAssign">DivAssign</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>, Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Rem.html" title="trait core::ops::arith::Rem">Rem</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.NonZeroBits" title="type fixed::traits::Fixed::NonZeroBits">NonZeroBits</a>, Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.RemAssign.html" title="trait core::ops::arith::RemAssign">RemAssign</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.NonZeroBits" title="type fixed::traits::Fixed::NonZeroBits">NonZeroBits</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.Not.html" title="trait core::ops::bit::Not">Not</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.BitAndAssign.html" title="trait core::ops::bit::BitAndAssign">BitAndAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.BitOrAssign.html" title="trait core::ops::bit::BitOrAssign">BitOrAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a><Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.BitXorAssign.html" title="trait core::ops::bit::BitXorAssign">BitXorAssign</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.Shl.html" title="trait core::ops::bit::Shl">Shl</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>, Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.ShlAssign.html" title="trait core::ops::bit::ShlAssign">ShlAssign</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.Shr.html" title="trait core::ops::bit::Shr">Shr</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>, Output = Self> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/bit/trait.ShrAssign.html" title="trait core::ops::bit::ShrAssign">ShrAssign</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../../half/binary16/struct.f16.html" title="struct half::binary16::f16">f16</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../../half/bfloat/struct.bf16.html" title="struct half::bfloat::bf16">bf16</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.f32.html">f32</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.f64.html">f64</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../struct.F128.html" title="struct fixed::F128">F128</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../struct.F128Bits.html" title="struct fixed::F128Bits">F128Bits</a>> + <a class="trait" href="trait.FixedOptionalFeatures.html" title="trait fixed::traits::FixedOptionalFeatures">FixedOptionalFeatures</a> + Sealed,</div>{
|
||
type <a href="#associatedtype.Bits" class="associatedtype">Bits</a>: <a class="trait" href="trait.FixedBits.html" title="trait fixed::traits::FixedBits">FixedBits</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.NonZeroBits" title="type fixed::traits::Fixed::NonZeroBits">NonZeroBits</a>>;
|
||
type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>, Error = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a>>;
|
||
type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a>;
|
||
type <a href="#associatedtype.Frac" class="associatedtype">Frac</a>: <a class="trait" href="../types/extra/trait.Unsigned.html" title="trait fixed::types::extra::Unsigned">Unsigned</a>;
|
||
type <a href="#associatedtype.Signed" class="associatedtype">Signed</a>: <a class="trait" href="trait.FixedSigned.html" title="trait fixed::traits::FixedSigned">FixedSigned</a>;
|
||
type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a>: <a class="trait" href="trait.FixedUnsigned.html" title="trait fixed::traits::FixedUnsigned">FixedUnsigned</a>;
|
||
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 8 associated constants and 230 methods</span></summary>
|
||
const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self;
|
||
const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self;
|
||
const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self;
|
||
const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self;
|
||
const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>;
|
||
const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
|
||
// Required methods
|
||
fn <a href="#tymethod.from_bits" class="fn">from_bits</a>(bits: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_bits" class="fn">to_bits</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_be" class="fn">from_be</a>(fixed: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_le" class="fn">from_le</a>(fixed: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_be" class="fn">to_be</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_le" class="fn">to_le</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.swap_bytes" class="fn">swap_bytes</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_be_bytes" class="fn">from_be_bytes</a>(bytes: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_le_bytes" class="fn">from_le_bytes</a>(bytes: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_ne_bytes" class="fn">from_ne_bytes</a>(bytes: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_be_bytes" class="fn">to_be_bytes</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_le_bytes" class="fn">to_le_bytes</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_ne_bytes" class="fn">to_ne_bytes</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_num" class="fn">from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.to_num" class="fn">to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_from_num" class="fn">checked_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_to_num" class="fn">checked_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Dst>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_from_num" class="fn">saturating_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_to_num" class="fn">saturating_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_from_num" class="fn">wrapping_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_to_num" class="fn">wrapping_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_from_num" class="fn">unwrapped_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_to_num" class="fn">unwrapped_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_from_num" class="fn">overflowing_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_to_num" class="fn">overflowing_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> (Dst, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_str_binary" class="fn">from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_str_octal" class="fn">from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.from_str_hex" class="fn">from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_from_str" class="fn">saturating_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_from_str_binary" class="fn">saturating_from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_from_str_octal" class="fn">saturating_from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_from_str_hex" class="fn">saturating_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_from_str" class="fn">wrapping_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_from_str_binary" class="fn">wrapping_from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_from_str_octal" class="fn">wrapping_from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_from_str_hex" class="fn">wrapping_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_from_str" class="fn">unwrapped_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_from_str_binary" class="fn">unwrapped_from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_from_str_octal" class="fn">unwrapped_from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_from_str_hex" class="fn">unwrapped_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_from_str" class="fn">overflowing_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_from_str_binary" class="fn">overflowing_from_str_binary</a>(
|
||
src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_from_str_octal" class="fn">overflowing_from_str_octal</a>(
|
||
src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_from_str_hex" class="fn">overflowing_from_str_hex</a>(
|
||
src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.int" class="fn">int</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.frac" class="fn">frac</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.round_to_zero" class="fn">round_to_zero</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.ceil" class="fn">ceil</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.floor" class="fn">floor</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.round" class="fn">round</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.round_ties_even" class="fn">round_ties_even</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_ceil" class="fn">checked_ceil</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_floor" class="fn">checked_floor</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_round" class="fn">checked_round</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_round_ties_even" class="fn">checked_round_ties_even</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_ceil" class="fn">saturating_ceil</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_floor" class="fn">saturating_floor</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_round" class="fn">saturating_round</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_round_ties_even" class="fn">saturating_round_ties_even</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_ceil" class="fn">wrapping_ceil</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_floor" class="fn">wrapping_floor</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_round" class="fn">wrapping_round</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_round_ties_even" class="fn">wrapping_round_ties_even</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_ceil" class="fn">unwrapped_ceil</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_floor" class="fn">unwrapped_floor</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_round" class="fn">unwrapped_round</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_round_ties_even" class="fn">unwrapped_round_ties_even</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_ceil" class="fn">overflowing_ceil</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_floor" class="fn">overflowing_floor</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_round" class="fn">overflowing_round</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_round_ties_even" class="fn">overflowing_round_ties_even</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.count_ones" class="fn">count_ones</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.count_zeros" class="fn">count_zeros</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.leading_ones" class="fn">leading_ones</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.leading_zeros" class="fn">leading_zeros</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.trailing_ones" class="fn">trailing_ones</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.trailing_zeros" class="fn">trailing_zeros</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.int_log2" class="fn">int_log2</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.int_log10" class="fn">int_log10</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.int_log" class="fn">int_log</a>(self, base: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_int_log2" class="fn">checked_int_log2</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_int_log10" class="fn">checked_int_log10</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_int_log" class="fn">checked_int_log</a>(self, base: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.reverse_bits" class="fn">reverse_bits</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.rotate_left" class="fn">rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.rotate_right" class="fn">rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.is_zero" class="fn">is_zero</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.dist" class="fn">dist</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.abs_diff" class="fn">abs_diff</a>(self, other: Self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Unsigned" title="type fixed::traits::Fixed::Unsigned">Unsigned</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.mean" class="fn">mean</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.hypot" class="fn">hypot</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.recip" class="fn">recip</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.next_multiple_of" class="fn">next_multiple_of</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.mul_add" class="fn">mul_add</a>(self, mul: Self, add: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.add_prod" class="fn">add_prod</a>(self, a: Self, b: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.mul_acc" class="fn">mul_acc</a>(&mut self, a: Self, b: Self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.div_euclid" class="fn">div_euclid</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.rem_euclid" class="fn">rem_euclid</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.div_euclid_int" class="fn">div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.rem_euclid_int" class="fn">rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.sqrt" class="fn">sqrt</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.lerp" class="fn">lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.inv_lerp" class="fn">inv_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_neg" class="fn">checked_neg</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_add" class="fn">checked_add</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_sub" class="fn">checked_sub</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_mul" class="fn">checked_mul</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_div" class="fn">checked_div</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_rem" class="fn">checked_rem</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_recip" class="fn">checked_recip</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_next_multiple_of" class="fn">checked_next_multiple_of</a>(self, other: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_mul_add" class="fn">checked_mul_add</a>(self, mul: Self, add: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_add_prod" class="fn">checked_add_prod</a>(self, a: Self, b: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_mul_acc" class="fn">checked_mul_acc</a>(&mut self, a: Self, b: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_div_euclid" class="fn">checked_div_euclid</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_rem_euclid" class="fn">checked_rem_euclid</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_mul_int" class="fn">checked_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_div_int" class="fn">checked_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_rem_int" class="fn">checked_rem_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_div_euclid_int" class="fn">checked_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_rem_euclid_int" class="fn">checked_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_shl" class="fn">checked_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_shr" class="fn">checked_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_dist" class="fn">checked_dist</a>(self, other: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_hypot" class="fn">checked_hypot</a>(self, other: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_sqrt" class="fn">checked_sqrt</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_lerp" class="fn">checked_lerp</a>(self, start: Self, end: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.checked_inv_lerp" class="fn">checked_inv_lerp</a>(self, start: Self, end: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_neg" class="fn">saturating_neg</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_add" class="fn">saturating_add</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_sub" class="fn">saturating_sub</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_mul" class="fn">saturating_mul</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_div" class="fn">saturating_div</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_recip" class="fn">saturating_recip</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_next_multiple_of" class="fn">saturating_next_multiple_of</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_mul_add" class="fn">saturating_mul_add</a>(self, mul: Self, add: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_add_prod" class="fn">saturating_add_prod</a>(self, a: Self, b: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_mul_acc" class="fn">saturating_mul_acc</a>(&mut self, a: Self, b: Self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_div_euclid" class="fn">saturating_div_euclid</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_mul_int" class="fn">saturating_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_div_int" class="fn">saturating_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_div_euclid_int" class="fn">saturating_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_rem_euclid_int" class="fn">saturating_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_dist" class="fn">saturating_dist</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_hypot" class="fn">saturating_hypot</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_sqrt" class="fn">saturating_sqrt</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_lerp" class="fn">saturating_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.saturating_inv_lerp" class="fn">saturating_inv_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_neg" class="fn">wrapping_neg</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_add" class="fn">wrapping_add</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_sub" class="fn">wrapping_sub</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_mul" class="fn">wrapping_mul</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_div" class="fn">wrapping_div</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_recip" class="fn">wrapping_recip</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_next_multiple_of" class="fn">wrapping_next_multiple_of</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_mul_add" class="fn">wrapping_mul_add</a>(self, mul: Self, add: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_add_prod" class="fn">wrapping_add_prod</a>(self, a: Self, b: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_mul_acc" class="fn">wrapping_mul_acc</a>(&mut self, a: Self, b: Self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_div_euclid" class="fn">wrapping_div_euclid</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_mul_int" class="fn">wrapping_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_div_int" class="fn">wrapping_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_div_euclid_int" class="fn">wrapping_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_rem_euclid_int" class="fn">wrapping_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_shl" class="fn">wrapping_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_shr" class="fn">wrapping_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_dist" class="fn">wrapping_dist</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_hypot" class="fn">wrapping_hypot</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_sqrt" class="fn">wrapping_sqrt</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_lerp" class="fn">wrapping_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.wrapping_inv_lerp" class="fn">wrapping_inv_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_neg" class="fn">unwrapped_neg</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_add" class="fn">unwrapped_add</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_sub" class="fn">unwrapped_sub</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_mul" class="fn">unwrapped_mul</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_div" class="fn">unwrapped_div</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_rem" class="fn">unwrapped_rem</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_recip" class="fn">unwrapped_recip</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_next_multiple_of" class="fn">unwrapped_next_multiple_of</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_mul_add" class="fn">unwrapped_mul_add</a>(self, mul: Self, add: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_add_prod" class="fn">unwrapped_add_prod</a>(self, a: Self, b: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_mul_acc" class="fn">unwrapped_mul_acc</a>(&mut self, a: Self, b: Self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_div_euclid" class="fn">unwrapped_div_euclid</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_rem_euclid" class="fn">unwrapped_rem_euclid</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_mul_int" class="fn">unwrapped_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_div_int" class="fn">unwrapped_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_rem_int" class="fn">unwrapped_rem_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_div_euclid_int" class="fn">unwrapped_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_rem_euclid_int" class="fn">unwrapped_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_shl" class="fn">unwrapped_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_shr" class="fn">unwrapped_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_dist" class="fn">unwrapped_dist</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_hypot" class="fn">unwrapped_hypot</a>(self, other: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_sqrt" class="fn">unwrapped_sqrt</a>(self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_lerp" class="fn">unwrapped_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.unwrapped_inv_lerp" class="fn">unwrapped_inv_lerp</a>(self, start: Self, end: Self) -> Self;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_neg" class="fn">overflowing_neg</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_add" class="fn">overflowing_add</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_sub" class="fn">overflowing_sub</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_mul" class="fn">overflowing_mul</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_div" class="fn">overflowing_div</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_recip" class="fn">overflowing_recip</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_next_multiple_of" class="fn">overflowing_next_multiple_of</a>(self, other: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_mul_add" class="fn">overflowing_mul_add</a>(self, mul: Self, add: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_add_prod" class="fn">overflowing_add_prod</a>(self, a: Self, b: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_mul_acc" class="fn">overflowing_mul_acc</a>(&mut self, a: Self, b: Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_div_euclid" class="fn">overflowing_div_euclid</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_mul_int" class="fn">overflowing_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_div_int" class="fn">overflowing_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_div_euclid_int" class="fn">overflowing_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_rem_euclid_int" class="fn">overflowing_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_shl" class="fn">overflowing_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_shr" class="fn">overflowing_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_dist" class="fn">overflowing_dist</a>(self, other: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_hypot" class="fn">overflowing_hypot</a>(self, other: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_sqrt" class="fn">overflowing_sqrt</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_lerp" class="fn">overflowing_lerp</a>(self, start: Self, end: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.overflowing_inv_lerp" class="fn">overflowing_inv_lerp</a>(self, start: Self, end: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> unsafe fn <a href="#tymethod.unchecked_add" class="fn">unchecked_add</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> unsafe fn <a href="#tymethod.unchecked_sub" class="fn">unchecked_sub</a>(self, rhs: Self) -> Self;
|
||
<span class="item-spacer"></span> unsafe fn <a href="#tymethod.unchecked_mul_int" class="fn">unchecked_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self;
|
||
|
||
// Provided methods
|
||
fn <a href="#method.get_signed" class="fn">get_signed</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Signed" title="type fixed::traits::Fixed::Signed">Signed</a>> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.get_unsigned" class="fn">get_unsigned</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Unsigned" title="type fixed::traits::Fixed::Unsigned">Unsigned</a>> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.get_signed_mut" class="fn">get_signed_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Signed" title="type fixed::traits::Fixed::Signed">Signed</a>> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.get_unsigned_mut" class="fn">get_unsigned_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Unsigned" title="type fixed::traits::Fixed::Unsigned">Unsigned</a>> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.round_ties_to_even" class="fn">round_ties_to_even</a>(self) -> Self { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.checked_round_ties_to_even" class="fn">checked_round_ties_to_even</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.saturating_round_ties_to_even" class="fn">saturating_round_ties_to_even</a>(self) -> Self { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.wrapping_round_ties_to_even" class="fn">wrapping_round_ties_to_even</a>(self) -> Self { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.unwrapped_round_ties_to_even" class="fn">unwrapped_round_ties_to_even</a>(self) -> Self { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.overflowing_round_ties_to_even" class="fn">overflowing_round_ties_to_even</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>) { ... }
|
||
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait provides methods common to all fixed-point numbers.</p>
|
||
<p>It can be helpful when writing generic code that makes use of
|
||
fixed-point numbers. For methods only available on signed
|
||
fixed-point numbers, use the <a href="trait.FixedSigned.html" title="trait fixed::traits::FixedSigned"><code>FixedSigned</code></a> trait instead, and
|
||
for methods only available on unsigned fixed-point numbers, use
|
||
<a href="trait.FixedUnsigned.html" title="trait fixed::traits::FixedUnsigned"><code>FixedUnsigned</code></a>.</p>
|
||
<p>This trait is sealed and cannot be implemented for more types; it
|
||
is implemented for <a href="../struct.FixedI8.html" title="struct fixed::FixedI8"><code>FixedI8</code></a>, <a href="../struct.FixedI16.html" title="struct fixed::FixedI16"><code>FixedI16</code></a>, <a href="../struct.FixedI32.html" title="struct fixed::FixedI32"><code>FixedI32</code></a>,
|
||
<a href="../struct.FixedI64.html" title="struct fixed::FixedI64"><code>FixedI64</code></a>, <a href="../struct.FixedI128.html" title="struct fixed::FixedI128"><code>FixedI128</code></a>, <a href="../struct.FixedU8.html" title="struct fixed::FixedU8"><code>FixedU8</code></a>, <a href="../struct.FixedU16.html" title="struct fixed::FixedU16"><code>FixedU16</code></a>,
|
||
<a href="../struct.FixedU32.html" title="struct fixed::FixedU32"><code>FixedU32</code></a>, <a href="../struct.FixedU64.html" title="struct fixed::FixedU64"><code>FixedU64</code></a>, and <a href="../struct.FixedU128.html" title="struct fixed::FixedU128"><code>FixedU128</code></a>.</p>
|
||
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>fixed::{
|
||
traits::Fixed,
|
||
types::{I8F8, I16F16},
|
||
};
|
||
|
||
<span class="kw">fn </span>checked_add_twice<F: Fixed>(lhs: F, rhs: F) -> <span class="prelude-ty">Option</span><F> {
|
||
lhs.checked_add(rhs)<span class="question-mark">?</span>.checked_add(rhs)
|
||
}
|
||
|
||
<span class="kw">let </span>val1 = checked_add_twice(I8F8::from_num(<span class="number">5</span>), Fixed::from_num(<span class="number">1.75</span>));
|
||
<span class="macro">assert_eq!</span>(val1, <span class="prelude-val">Some</span>(Fixed::from_num(<span class="number">8.5</span>)));
|
||
<span class="comment">// can use with different fixed-point type
|
||
</span><span class="kw">let </span>val2 = checked_add_twice(I16F16::from_num(<span class="number">5</span>), Fixed::from_num(<span class="number">1.75</span>));
|
||
<span class="macro">assert_eq!</span>(val2, <span class="prelude-val">Some</span>(Fixed::from_num(<span class="number">8.5</span>)));</code></pre></div>
|
||
<p>The following example fails to compile, since the compiler cannot
|
||
infer that 500 in the <code>checked_mul_int</code> call is of type <code>F::Bits</code>.</p>
|
||
|
||
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>fixed::traits::Fixed;
|
||
|
||
<span class="kw">fn </span>checked_add_times_500<F: Fixed>(lhs: F, rhs: F) -> <span class="prelude-ty">Option</span><F> {
|
||
rhs.checked_mul_int(<span class="number">500</span>)<span class="question-mark">?</span>.checked_add(lhs)
|
||
}</code></pre></div>
|
||
<p>One way to fix this is to add a trait bound indicating that any
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html" title="primitive u16"><code>u16</code></a> (which can represent 500) can be converted into <code>F::Bits</code>.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>fixed::{traits::Fixed, types::U12F4};
|
||
|
||
<span class="kw">fn </span>checked_add_times_500<F: Fixed>(lhs: F, rhs: F) -> <span class="prelude-ty">Option</span><F>
|
||
<span class="kw">where
|
||
</span>u16: Into<F::Bits>,
|
||
{
|
||
rhs.checked_mul_int(<span class="number">500</span>.into())<span class="question-mark">?</span>.checked_add(lhs)
|
||
}
|
||
|
||
<span class="kw">let </span>val = checked_add_times_500(U12F4::from_num(<span class="number">0.25</span>), Fixed::from_num(<span class="number">1.5</span>));
|
||
<span class="macro">assert_eq!</span>(val, <span class="prelude-val">Some</span>(Fixed::from_num(<span class="number">750.25</span>)));</code></pre></div>
|
||
<p>While this works in most cases, <a href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html" title="primitive u16"><code>u16</code></a> cannot be converted to
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html" title="primitive i16"><code>i16</code></a>, even if the value 500 does fit in <a href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html" title="primitive i16"><code>i16</code></a>, so that the
|
||
following example would fail to compile.</p>
|
||
|
||
<div class="example-wrap compile_fail"><a href="#" class="tooltip" title="This example deliberately fails to compile">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>fixed::{traits::Fixed, types::I12F4};
|
||
|
||
<span class="kw">fn </span>checked_add_times_500<F: Fixed>(lhs: F, rhs: F) -> <span class="prelude-ty">Option</span><F>
|
||
<span class="kw">where
|
||
</span>u16: Into<F::Bits>,
|
||
{
|
||
rhs.checked_mul_int(<span class="number">500</span>.into())<span class="question-mark">?</span>.checked_add(lhs)
|
||
}
|
||
|
||
<span class="comment">// I12F4::Bits is i16, and u16 does not implement Into<i16>
|
||
</span><span class="kw">let </span>val = checked_add_times_500(I12F4::from_num(<span class="number">0.25</span>), Fixed::from_num(<span class="number">1.5</span>));</code></pre></div>
|
||
<p>We can use <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom"><code>TryFrom</code></a> to fix this, as we know that
|
||
<code>F::Bits::try_from(500_u16)</code> will work for both <a href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html" title="primitive u16"><code>u16</code></a> and
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html" title="primitive i16"><code>i16</code></a>. (The function will always return <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> when <code>F::Bits</code>
|
||
is <a href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html" title="primitive u8"><code>u8</code></a> or <a href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html" title="primitive i8"><code>i8</code></a>.)</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>fixed::{traits::Fixed, types::I12F4};
|
||
|
||
<span class="kw">fn </span>checked_add_times_500<F: Fixed>(lhs: F, rhs: F) -> <span class="prelude-ty">Option</span><F>
|
||
<span class="kw">where
|
||
</span>u16: TryInto<F::Bits>,
|
||
{
|
||
rhs.checked_mul_int(<span class="number">500</span>.try_into().ok()<span class="question-mark">?</span>)<span class="question-mark">?</span>.checked_add(lhs)
|
||
}
|
||
|
||
<span class="kw">let </span>val = checked_add_times_500(I12F4::from_num(<span class="number">0.25</span>), Fixed::from_num(<span class="number">1.5</span>));
|
||
<span class="macro">assert_eq!</span>(val, <span class="prelude-val">Some</span>(Fixed::from_num(<span class="number">750.25</span>)));</code></pre></div>
|
||
</div></details><h2 id="required-associated-consts" class="section-header">Required Associated Constants<a href="#required-associated-consts" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedconstant.ZERO" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#674">Source</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self</h4></section></summary><div class="docblock"><p>Zero.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.ZERO" title="associated constant fixed::FixedI32::ZERO">ZERO</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.ZERO" title="associated constant fixed::FixedU32::ZERO">ZERO</a></code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.TRY_ONE" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#677">Source</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>One if the fixed-point number can represent it, otherwise <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.DELTA" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#683">Source</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self</h4></section></summary><div class="docblock"><p>The difference between any two successive representable numbers, <i>Δ</i>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.DELTA" title="associated constant fixed::FixedI32::DELTA">DELTA</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.DELTA" title="associated constant fixed::FixedU32::DELTA">DELTA</a></code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#689">Source</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self</h4></section></summary><div class="docblock"><p>The smallest value that can be represented.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.MIN" title="associated constant fixed::FixedI32::MIN">MIN</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.MIN" title="associated constant fixed::FixedU32::MIN">MIN</a></code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.MAX" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#695">Source</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self</h4></section></summary><div class="docblock"><p>The largest value that can be represented.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.MAX" title="associated constant fixed::FixedI32::MAX">MAX</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.MAX" title="associated constant fixed::FixedU32::MAX">MAX</a></code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.IS_SIGNED" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#701">Source</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p><a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>true</code></a> if the type is signed.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.IS_SIGNED" title="associated constant fixed::FixedI32::IS_SIGNED">IS_SIGNED</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.IS_SIGNED" title="associated constant fixed::FixedU32::IS_SIGNED">IS_SIGNED</a></code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.INT_NBITS" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#707">Source</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>The number of integer bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.INT_NBITS" title="associated constant fixed::FixedI32::INT_NBITS">INT_NBITS</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.INT_NBITS" title="associated constant fixed::FixedU32::INT_NBITS">INT_NBITS</a></code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.FRAC_NBITS" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#713">Source</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>The number of fractional bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#associatedconstant.FRAC_NBITS" title="associated constant fixed::FixedI32::FRAC_NBITS">FRAC_NBITS</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#associatedconstant.FRAC_NBITS" title="associated constant fixed::FixedU32::FRAC_NBITS">FRAC_NBITS</a></code>.</p>
|
||
</div></details></div><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Bits" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#445">Source</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a>: <a class="trait" href="trait.FixedBits.html" title="trait fixed::traits::FixedBits">FixedBits</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.NonZeroBits" title="type fixed::traits::Fixed::NonZeroBits">NonZeroBits</a>></h4></section></summary><div class="docblock"><p>The primitive integer underlying type.</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">use </span>fixed::{traits::Fixed, types::I16F16};
|
||
<span class="comment">// 32-bit DELTA is 0x0000_0001_i32
|
||
</span><span class="kw">const </span>DELTA_BITS: <I16F16 <span class="kw">as </span>Fixed>::Bits = I16F16::DELTA.to_bits();
|
||
<span class="macro">assert_eq!</span>(DELTA_BITS, <span class="number">1i32</span>);</code></pre></div>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.NonZeroBits" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#459">Source</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>, Error = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/error/struct.TryFromIntError.html" title="struct core::num::error::TryFromIntError">TryFromIntError</a>></h4></section></summary><div class="docblock"><p>The non-zero wrapped version of <a href="trait.Fixed.html#associatedtype.Bits" title="associated type fixed::traits::Fixed::Bits"><code>Bits</code></a>.</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">use </span>fixed::{traits::Fixed, types::I16F16};
|
||
<span class="kw">let </span>val = I16F16::from_num(<span class="number">31</span>);
|
||
<span class="kw">let </span>non_zero_5 = <I16F16 <span class="kw">as </span>Fixed>::NonZeroBits::new(<span class="number">5</span>).unwrap();
|
||
<span class="macro">assert_eq!</span>(val % non_zero_5, val % <span class="number">5</span>);</code></pre></div>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#471">Source</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a></h4></section></summary><div class="docblock"><p>A byte array with the same size as the type.</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">use </span>fixed::{traits::Fixed, types::I16F16};
|
||
<span class="comment">// 32-bit DELTA is 0x0000_0001_i32
|
||
</span><span class="kw">const </span>DELTA_LE_BYTES: <I16F16 <span class="kw">as </span>Fixed>::Bytes = I16F16::DELTA.to_le_bytes();
|
||
<span class="macro">assert_eq!</span>(DELTA_LE_BYTES, <span class="number">1i32</span>.to_le_bytes());</code></pre></div>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Frac" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#496">Source</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a>: <a class="trait" href="../types/extra/trait.Unsigned.html" title="trait fixed::types::extra::Unsigned">Unsigned</a></h4></section></summary><div class="docblock"><p>The number of fractional bits as a compile-time <a href="../types/extra/trait.Unsigned.html" title="trait fixed::types::extra::Unsigned"><code>Unsigned</code></a> as provided
|
||
by the <a href="https://crates.io/crates/typenum"><em>typenum</em> crate</a>.</p>
|
||
<p><code><F as <a href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a>>::Frac::<a href="../types/extra/trait.Unsigned.html#associatedconstant.U32" title="associated constant fixed::types::extra::Unsigned::U32">U32</a></code> is equivalent to
|
||
<code><F as <a href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a>>::<a href="trait.Fixed.html#associatedconstant.FRAC_NBITS" title="associated constant fixed::traits::Fixed::FRAC_NBITS">FRAC_NBITS</a></code>.</p>
|
||
<p><code>Frac</code> can be used as the generic parameter of fixed-point number types.</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">use </span>fixed::{traits::Fixed, types::extra::U16, FixedI32, FixedI64};
|
||
<span class="kw">type </span>Fix1 = FixedI32::<U16>;
|
||
<span class="macro">assert_eq!</span>(Fix1::FRAC_NBITS, <span class="number">16</span>);
|
||
<span class="macro">assert_eq!</span>(Fix1::INT_NBITS, <span class="number">32 </span>- <span class="number">16</span>);
|
||
<span class="kw">type </span>Fix2 = FixedI64::<<Fix1 <span class="kw">as </span>Fixed>::Frac>;
|
||
<span class="macro">assert_eq!</span>(Fix2::FRAC_NBITS, <span class="number">16</span>);
|
||
<span class="macro">assert_eq!</span>(Fix2::INT_NBITS, <span class="number">64 </span>- <span class="number">16</span>);</code></pre></div>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Signed" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#523">Source</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a>: <a class="trait" href="trait.FixedSigned.html" title="trait fixed::traits::FixedSigned">FixedSigned</a></h4></section></summary><div class="docblock"><p>A signed fixed-point number type with the same number of integer and
|
||
fractional bits as <code>Self</code>.</p>
|
||
<p>If <code>Self</code> is signed, then <code>Self::Signed</code> is the same as <code>Self</code>.</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">use </span>fixed::{
|
||
traits::Fixed,
|
||
types::{I16F16, U16F16},
|
||
};
|
||
<span class="comment">// I16F16::Signed is I16F16
|
||
</span><span class="macro">assert_eq!</span>(<I16F16 <span class="kw">as </span>Fixed>::Signed::FRAC_NBITS, I16F16::FRAC_NBITS);
|
||
<span class="macro">assert_eq!</span>(<I16F16 <span class="kw">as </span>Fixed>::Signed::INT_NBITS, I16F16::INT_NBITS);
|
||
<span class="macro">assert_eq!</span>(<I16F16 <span class="kw">as </span>Fixed>::Signed::IS_SIGNED, I16F16::IS_SIGNED);
|
||
<span class="comment">// U16F16::Signed is I16F16
|
||
</span><span class="macro">assert_eq!</span>(<U16F16 <span class="kw">as </span>Fixed>::Signed::FRAC_NBITS, I16F16::FRAC_NBITS);
|
||
<span class="macro">assert_eq!</span>(<U16F16 <span class="kw">as </span>Fixed>::Signed::INT_NBITS, I16F16::INT_NBITS);
|
||
<span class="macro">assert_eq!</span>(<U16F16 <span class="kw">as </span>Fixed>::Signed::IS_SIGNED, I16F16::IS_SIGNED);</code></pre></div>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Unsigned" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#550">Source</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a>: <a class="trait" href="trait.FixedUnsigned.html" title="trait fixed::traits::FixedUnsigned">FixedUnsigned</a></h4></section></summary><div class="docblock"><p>An unsigned fixed-point number type with the same number of integer and
|
||
fractional bits as <code>Self</code>.</p>
|
||
<p>If <code>Self</code> is unsigned, then <code>Self::Unsigned</code> is the same as <code>Self</code>.</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">use </span>fixed::{
|
||
traits::Fixed,
|
||
types::{I16F16, U16F16},
|
||
};
|
||
<span class="comment">// I16F16::Unsigned is U16F16
|
||
</span><span class="macro">assert_eq!</span>(<I16F16 <span class="kw">as </span>Fixed>::Unsigned::FRAC_NBITS, U16F16::FRAC_NBITS);
|
||
<span class="macro">assert_eq!</span>(<I16F16 <span class="kw">as </span>Fixed>::Unsigned::INT_NBITS, U16F16::INT_NBITS);
|
||
<span class="macro">assert_eq!</span>(<I16F16 <span class="kw">as </span>Fixed>::Unsigned::IS_SIGNED, U16F16::IS_SIGNED);
|
||
<span class="comment">// U16F16::Unsigned is U16F16
|
||
</span><span class="macro">assert_eq!</span>(<U16F16 <span class="kw">as </span>Fixed>::Unsigned::FRAC_NBITS, U16F16::FRAC_NBITS);
|
||
<span class="macro">assert_eq!</span>(<U16F16 <span class="kw">as </span>Fixed>::Unsigned::INT_NBITS, U16F16::INT_NBITS);
|
||
<span class="macro">assert_eq!</span>(<U16F16 <span class="kw">as </span>Fixed>::Unsigned::IS_SIGNED, U16F16::IS_SIGNED);</code></pre></div>
|
||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.from_bits" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#720">Source</a><h4 class="code-header">fn <a href="#tymethod.from_bits" class="fn">from_bits</a>(bits: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number that has a bitwise representation
|
||
identical to the given integer.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.from_bits" title="associated function fixed::FixedI32::from_bits">from_bits</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_bits" title="associated function fixed::FixedU32::from_bits">from_bits</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_bits" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#727">Source</a><h4 class="code-header">fn <a href="#tymethod.to_bits" class="fn">to_bits</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a></h4></section></summary><div class="docblock"><p>Creates an integer that has a bitwise representation identical
|
||
to the given fixed-point number.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_bits" title="method fixed::FixedI32::to_bits">to_bits</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.to_bits" title="method fixed::FixedU32::to_bits">to_bits</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_be" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#733">Source</a><h4 class="code-header">fn <a href="#tymethod.from_be" class="fn">from_be</a>(fixed: Self) -> Self</h4></section></summary><div class="docblock"><p>Converts a fixed-point number from big endian to the target’s endianness.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.from_be" title="associated function fixed::FixedI32::from_be">from_be</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_be" title="associated function fixed::FixedU32::from_be">from_be</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_le" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#739">Source</a><h4 class="code-header">fn <a href="#tymethod.from_le" class="fn">from_le</a>(fixed: Self) -> Self</h4></section></summary><div class="docblock"><p>Converts a fixed-point number from little endian to the target’s endianness.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.from_le" title="associated function fixed::FixedI32::from_le">from_le</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_le" title="associated function fixed::FixedU32::from_le">from_le</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_be" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#746">Source</a><h4 class="code-header">fn <a href="#tymethod.to_be" class="fn">to_be</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Converts this fixed-point number to big endian from the target’s endianness.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_be" title="method fixed::FixedI32::to_be">to_be</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.to_be" title="method fixed::FixedU32::to_be">to_be</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_le" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#753">Source</a><h4 class="code-header">fn <a href="#tymethod.to_le" class="fn">to_le</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Converts this fixed-point number to little endian from the target’s endianness.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_le" title="method fixed::FixedI32::to_le">to_le</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.to_le" title="method fixed::FixedU32::to_le">to_le</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.swap_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#760">Source</a><h4 class="code-header">fn <a href="#tymethod.swap_bytes" class="fn">swap_bytes</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Reverses the byte order of the fixed-point number.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.swap_bytes" title="method fixed::FixedI32::swap_bytes">swap_bytes</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.swap_bytes" title="method fixed::FixedU32::swap_bytes">swap_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_be_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#768">Source</a><h4 class="code-header">fn <a href="#tymethod.from_be_bytes" class="fn">from_be_bytes</a>(bytes: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from its representation as a byte
|
||
array in big endian.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.from_be_bytes" title="associated function fixed::FixedI32::from_be_bytes">from_be_bytes</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_be_bytes" title="associated function fixed::FixedU32::from_be_bytes">from_be_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_le_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#776">Source</a><h4 class="code-header">fn <a href="#tymethod.from_le_bytes" class="fn">from_le_bytes</a>(bytes: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from its representation as a byte
|
||
array in little endian.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.from_le_bytes" title="associated function fixed::FixedI32::from_le_bytes">from_le_bytes</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_le_bytes" title="associated function fixed::FixedU32::from_le_bytes">from_le_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_ne_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#784">Source</a><h4 class="code-header">fn <a href="#tymethod.from_ne_bytes" class="fn">from_ne_bytes</a>(bytes: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a>) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from its representation as a byte
|
||
array in native endian.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.from_ne_bytes" title="associated function fixed::FixedI32::from_ne_bytes">from_ne_bytes</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_ne_bytes" title="associated function fixed::FixedU32::from_ne_bytes">from_ne_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_be_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#791">Source</a><h4 class="code-header">fn <a href="#tymethod.to_be_bytes" class="fn">to_be_bytes</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a></h4></section></summary><div class="docblock"><p>Returns the memory representation of this fixed-point number
|
||
as a byte array in big-endian byte order.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_be_bytes" title="method fixed::FixedI32::to_be_bytes">to_be_bytes</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.to_be_bytes" title="method fixed::FixedU32::to_be_bytes">to_be_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_le_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#798">Source</a><h4 class="code-header">fn <a href="#tymethod.to_le_bytes" class="fn">to_le_bytes</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a></h4></section></summary><div class="docblock"><p>Returns the memory representation of this fixed-point number
|
||
as a byte array in little-endian byte order.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_le_bytes" title="method fixed::FixedI32::to_le_bytes">to_le_bytes</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.to_le_bytes" title="method fixed::FixedU32::to_le_bytes">to_le_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_ne_bytes" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#805">Source</a><h4 class="code-header">fn <a href="#tymethod.to_ne_bytes" class="fn">to_ne_bytes</a>(self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bytes" title="type fixed::traits::Fixed::Bytes">Bytes</a></h4></section></summary><div class="docblock"><p>Returns the memory representation of this fixed-point number
|
||
as a byte array in native byte order.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_ne_bytes" title="method fixed::FixedI32::to_ne_bytes">to_ne_bytes</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.to_ne_bytes" title="method fixed::FixedU32::to_ne_bytes">to_ne_bytes</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#814">Source</a><h4 class="code-header">fn <a href="#tymethod.from_num" class="fn">from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from another number.</p>
|
||
<p>Returns the same value as
|
||
<code>src.<a href="trait.ToFixed.html#tymethod.to_fixed" title="method fixed::traits::ToFixed::to_fixed">to_fixed</a>()</code>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.from_num" title="associated function fixed::FixedI32::from_num">from_num</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_num" title="associated function fixed::FixedU32::from_num">from_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.to_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#823">Source</a><h4 class="code-header">fn <a href="#tymethod.to_num" class="fn">to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst</h4></section></summary><div class="docblock"><p>Converts a fixed-point number to another number.</p>
|
||
<p>Returns the same value as
|
||
<code>Dst::<a href="trait.FromFixed.html#tymethod.from_fixed" title="associated function fixed::traits::FromFixed::from_fixed">from_fixed</a>(self)</code>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.to_num" title="method fixed::FixedI32::to_num">to_num</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.to_num" title="method fixed::FixedU32::to_num">to_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_from_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#835">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_from_num" class="fn">checked_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Creates a fixed-point number from another number if it fits,
|
||
otherwise returns <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>.</p>
|
||
<p>Returns the same value as
|
||
<code>src.<a href="trait.ToFixed.html#tymethod.checked_to_fixed" title="method fixed::traits::ToFixed::checked_to_fixed">checked_to_fixed</a>()</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_from_num" title="associated function fixed::FixedI32::checked_from_num">checked_from_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_from_num" title="associated function fixed::FixedU32::checked_from_num">checked_from_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_to_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#846">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_to_num" class="fn">checked_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Dst></h4></section></summary><div class="docblock"><p>Converts a fixed-point number to another number if it fits,
|
||
otherwise returns <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>.</p>
|
||
<p>Returns the same value as
|
||
<code>Dst::<a href="trait.FromFixed.html#tymethod.checked_from_fixed" title="associated function fixed::traits::FromFixed::checked_from_fixed">checked_from_fixed</a>(self)</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_to_num" title="method fixed::FixedI32::checked_to_num">checked_to_num</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_to_num" title="method fixed::FixedU32::checked_to_num">checked_to_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_from_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#858">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_from_num" class="fn">saturating_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from another number, saturating the
|
||
value if it does not fit.</p>
|
||
<p>Returns the same value as
|
||
<code>src.<a href="trait.ToFixed.html#tymethod.saturating_to_fixed" title="method fixed::traits::ToFixed::saturating_to_fixed">saturating_to_fixed</a>()</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_from_num" title="associated function fixed::FixedI32::saturating_from_num">saturating_from_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_from_num" title="associated function fixed::FixedU32::saturating_from_num">saturating_from_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_to_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#870">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_to_num" class="fn">saturating_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst</h4></section></summary><div class="docblock"><p>Converts a fixed-point number to another number, saturating the
|
||
value if it does not fit.</p>
|
||
<p>Returns the same value as
|
||
<code>Dst::<a href="trait.FromFixed.html#tymethod.saturating_from_fixed" title="associated function fixed::traits::FromFixed::saturating_from_fixed">saturating_from_fixed</a>(self)</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_to_num" title="method fixed::FixedI32::saturating_to_num">saturating_to_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_to_num" title="method fixed::FixedU32::saturating_to_num">saturating_to_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_from_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#882">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_from_num" class="fn">wrapping_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from another number, wrapping the
|
||
value on overflow.</p>
|
||
<p>Returns the same value as
|
||
<code>src.<a href="trait.ToFixed.html#tymethod.wrapping_to_fixed" title="method fixed::traits::ToFixed::wrapping_to_fixed">wrapping_to_fixed</a>()</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_from_num" title="associated function fixed::FixedI32::wrapping_from_num">wrapping_from_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_from_num" title="associated function fixed::FixedU32::wrapping_from_num">wrapping_from_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_to_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#894">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_to_num" class="fn">wrapping_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst</h4></section></summary><div class="docblock"><p>Converts a fixed-point number to another number, wrapping the
|
||
value on overflow.</p>
|
||
<p>Returns the same value as
|
||
<code>Dst::<a href="trait.FromFixed.html#tymethod.wrapping_from_fixed" title="associated function fixed::traits::FromFixed::wrapping_from_fixed">wrapping_from_fixed</a>(self)</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_to_num" title="method fixed::FixedI32::wrapping_to_num">wrapping_to_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_to_num" title="method fixed::FixedU32::wrapping_to_num">wrapping_to_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_from_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#910">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_from_num" class="fn">unwrapped_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> Self</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from another number, panicking on overflow.</p>
|
||
<p>Returns the same value as
|
||
<code>src.<a href="trait.ToFixed.html#method.unwrapped_to_fixed" title="method fixed::traits::ToFixed::unwrapped_to_fixed">unwrapped_to_fixed</a>()</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_from_num" title="associated function fixed::FixedI32::unwrapped_from_num">unwrapped_from_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_from_num" title="associated function fixed::FixedU32::unwrapped_from_num">unwrapped_from_num</a></code>.</p>
|
||
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
|
||
<p>Panics if the value does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_to_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#926">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_to_num" class="fn">unwrapped_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> Dst</h4></section></summary><div class="docblock"><p>Converts a fixed-point number to another number, panicking on overflow.</p>
|
||
<p>Returns the same value as
|
||
<code>Dst::<a href="trait.FromFixed.html#method.unwrapped_from_fixed" title="associated function fixed::traits::FromFixed::unwrapped_from_fixed">unwrapped_from_fixed</a>(self)</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_to_num" title="method fixed::FixedI32::unwrapped_to_num">unwrapped_to_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_to_num" title="method fixed::FixedU32::unwrapped_to_num">unwrapped_to_num</a></code>.</p>
|
||
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
|
||
<p>Panics if the value does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_from_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#937">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_from_num" class="fn">overflowing_from_num</a><Src: <a class="trait" href="trait.ToFixed.html" title="trait fixed::traits::ToFixed">ToFixed</a>>(src: Src) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Creates a fixed-point number from another number.</p>
|
||
<p>Returns the same value as
|
||
<code>src.<a href="trait.ToFixed.html#tymethod.overflowing_to_fixed" title="method fixed::traits::ToFixed::overflowing_to_fixed">overflowing_to_fixed</a>()</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_from_num" title="associated function fixed::FixedI32::overflowing_from_num">overflowing_from_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_from_num" title="associated function fixed::FixedU32::overflowing_from_num">overflowing_from_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_to_num" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#948">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_to_num" class="fn">overflowing_to_num</a><Dst: <a class="trait" href="trait.FromFixed.html" title="trait fixed::traits::FromFixed">FromFixed</a>>(self) -> (Dst, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Converts a fixed-point number to another number.</p>
|
||
<p>Returns the same value as
|
||
<code>Dst::<a href="trait.FromFixed.html#tymethod.overflowing_from_fixed" title="associated function fixed::traits::FromFixed::overflowing_from_fixed">overflowing_from_fixed</a>(self)</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_to_num" title="method fixed::FixedI32::overflowing_to_num">overflowing_to_num</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_to_num" title="method fixed::FixedU32::overflowing_to_num">overflowing_to_num</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_str_binary" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#958">Source</a><h4 class="code-header">fn <a href="#tymethod.from_str_binary" class="fn">from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing binary digits to return a fixed-point number.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.from_str_binary" title="associated function fixed::FixedI32::from_str_binary">from_str_binary</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_str_binary" title="associated function fixed::FixedU32::from_str_binary">from_str_binary</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_str_octal" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#967">Source</a><h4 class="code-header">fn <a href="#tymethod.from_str_octal" class="fn">from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing octal digits to return a fixed-point number.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.from_str_octal" title="associated function fixed::FixedI32::from_str_octal">from_str_octal</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.from_str_octal" title="associated function fixed::FixedU32::from_str_octal">from_str_octal</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.from_str_hex" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#975">Source</a><h4 class="code-header">fn <a href="#tymethod.from_str_hex" class="fn">from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing hexadecimal digits to return a fixed-point number.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.from_str_hex" title="associated function fixed::FixedI32::from_str_hex">from_str_hex</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.from_str_hex" title="associated function fixed::FixedU32::from_str_hex">from_str_hex</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_from_str" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#986">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_from_str" class="fn">saturating_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing decimal digits to return a
|
||
fixed-point number, saturating on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_from_str" title="associated function fixed::FixedI32::saturating_from_str">saturating_from_str</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_from_str" title="associated function fixed::FixedU32::saturating_from_str">saturating_from_str</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_from_str_binary" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#997">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_from_str_binary" class="fn">saturating_from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing binary digits to return a
|
||
fixed-point number, saturating on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_from_str_binary" title="associated function fixed::FixedI32::saturating_from_str_binary">saturating_from_str_binary</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_from_str_binary" title="associated function fixed::FixedU32::saturating_from_str_binary">saturating_from_str_binary</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_from_str_octal" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1008">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_from_str_octal" class="fn">saturating_from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing octal digits to return a
|
||
fixed-point number, saturating on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_from_str_octal" title="associated function fixed::FixedI32::saturating_from_str_octal">saturating_from_str_octal</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_from_str_octal" title="associated function fixed::FixedU32::saturating_from_str_octal">saturating_from_str_octal</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_from_str_hex" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1019">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_from_str_hex" class="fn">saturating_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing hexadecimal digits to return a
|
||
fixed-point number, saturating on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_from_str_hex" title="associated function fixed::FixedI32::saturating_from_str_hex">saturating_from_str_hex</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_from_str_hex" title="associated function fixed::FixedU32::saturating_from_str_hex">saturating_from_str_hex</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_from_str" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1030">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_from_str" class="fn">wrapping_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing decimal digits to return a
|
||
fixed-point number, wrapping on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_from_str" title="associated function fixed::FixedI32::wrapping_from_str">wrapping_from_str</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_from_str" title="associated function fixed::FixedU32::wrapping_from_str">wrapping_from_str</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_from_str_binary" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1041">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_from_str_binary" class="fn">wrapping_from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing binary digits to return a
|
||
fixed-point number, wrapping on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_from_str_binary" title="associated function fixed::FixedI32::wrapping_from_str_binary">wrapping_from_str_binary</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_from_str_binary" title="associated function fixed::FixedU32::wrapping_from_str_binary">wrapping_from_str_binary</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_from_str_octal" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1052">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_from_str_octal" class="fn">wrapping_from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing octal digits to return a
|
||
fixed-point number, wrapping on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_from_str_octal" title="associated function fixed::FixedI32::wrapping_from_str_octal">wrapping_from_str_octal</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_from_str_octal" title="associated function fixed::FixedU32::wrapping_from_str_octal">wrapping_from_str_octal</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_from_str_hex" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1063">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_from_str_hex" class="fn">wrapping_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing hexadecimal digits to return a
|
||
fixed-point number, wrapping on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_from_str_hex" title="associated function fixed::FixedI32::wrapping_from_str_hex">wrapping_from_str_hex</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_from_str_hex" title="associated function fixed::FixedU32::wrapping_from_str_hex">wrapping_from_str_hex</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_from_str" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1079">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_from_str" class="fn">unwrapped_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self</h4></section></summary><div class="docblock"><p>Parses a string slice containing decimal digits to return a
|
||
fixed-point number, panicking on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_from_str" title="associated function fixed::FixedI32::unwrapped_from_str">unwrapped_from_str</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_from_str" title="associated function fixed::FixedU32::unwrapped_from_str">unwrapped_from_str</a></code>.</p>
|
||
<h5 id="panics-2"><a class="doc-anchor" href="#panics-2">§</a>Panics</h5>
|
||
<p>Panics if the value does not fit or if there is a parsing error.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_from_str_binary" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1095">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_from_str_binary" class="fn">unwrapped_from_str_binary</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self</h4></section></summary><div class="docblock"><p>Parses a string slice containing binary digits to return a
|
||
fixed-point number, panicking on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_from_str_binary" title="associated function fixed::FixedI32::unwrapped_from_str_binary">unwrapped_from_str_binary</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_from_str_binary" title="associated function fixed::FixedU32::unwrapped_from_str_binary">unwrapped_from_str_binary</a></code>.</p>
|
||
<h5 id="panics-3"><a class="doc-anchor" href="#panics-3">§</a>Panics</h5>
|
||
<p>Panics if the value does not fit or if there is a parsing error.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_from_str_octal" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1111">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_from_str_octal" class="fn">unwrapped_from_str_octal</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self</h4></section></summary><div class="docblock"><p>Parses a string slice containing octal digits to return a
|
||
fixed-point number, panicking on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_from_str_octal" title="associated function fixed::FixedI32::unwrapped_from_str_octal">unwrapped_from_str_octal</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_from_str_octal" title="associated function fixed::FixedU32::unwrapped_from_str_octal">unwrapped_from_str_octal</a></code>.</p>
|
||
<h5 id="panics-4"><a class="doc-anchor" href="#panics-4">§</a>Panics</h5>
|
||
<p>Panics if the value does not fit or if there is a parsing error.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_from_str_hex" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1127">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_from_str_hex" class="fn">unwrapped_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> Self</h4></section></summary><div class="docblock"><p>Parses a string slice containing hexadecimal digits to return a
|
||
fixed-point number, panicking on overflow.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_from_str_hex" title="associated function fixed::FixedI32::unwrapped_from_str_hex">unwrapped_from_str_hex</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_from_str_hex" title="associated function fixed::FixedU32::unwrapped_from_str_hex">unwrapped_from_str_hex</a></code>.</p>
|
||
<h5 id="panics-5"><a class="doc-anchor" href="#panics-5">§</a>Panics</h5>
|
||
<p>Panics if the value does not fit or if there is a parsing error.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_from_str" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1142">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_from_str" class="fn">overflowing_from_str</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing decimal digits to return a
|
||
fixed-point number.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_from_str" title="associated function fixed::FixedI32::overflowing_from_str">overflowing_from_str</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_from_str" title="associated function fixed::FixedU32::overflowing_from_str">overflowing_from_str</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_from_str_binary" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1157">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_from_str_binary" class="fn">overflowing_from_str_binary</a>(
|
||
src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing binary digits to return a
|
||
fixed-point number.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_from_str_binary" title="associated function fixed::FixedI32::overflowing_from_str_binary">overflowing_from_str_binary</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_from_str_binary" title="associated function fixed::FixedU32::overflowing_from_str_binary">overflowing_from_str_binary</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_from_str_octal" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1172">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_from_str_octal" class="fn">overflowing_from_str_octal</a>(
|
||
src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing octal digits to return a
|
||
fixed-point number.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_from_str_octal" title="associated function fixed::FixedI32::overflowing_from_str_octal">overflowing_from_str_octal</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_from_str_octal" title="associated function fixed::FixedU32::overflowing_from_str_octal">overflowing_from_str_octal</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_from_str_hex" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1187">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_from_str_hex" class="fn">overflowing_from_str_hex</a>(src: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>), <a class="struct" href="../struct.ParseFixedError.html" title="struct fixed::ParseFixedError">ParseFixedError</a>></h4></section></summary><div class="docblock"><p>Parses a string slice containing hexadecimal digits to return a
|
||
fixed-point number.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>Rounding is to the nearest, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_from_str_hex" title="associated function fixed::FixedI32::overflowing_from_str_hex">overflowing_from_str_hex</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_from_str_hex" title="associated function fixed::FixedU32::overflowing_from_str_hex">overflowing_from_str_hex</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1194">Source</a><h4 class="code-header">fn <a href="#tymethod.int" class="fn">int</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the integer part.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.int" title="method fixed::FixedI32::int">int</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.int" title="method fixed::FixedU32::int">int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.frac" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1201">Source</a><h4 class="code-header">fn <a href="#tymethod.frac" class="fn">frac</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the fractional part.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.frac" title="method fixed::FixedI32::frac">frac</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.frac" title="method fixed::FixedU32::frac">frac</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.round_to_zero" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1209">Source</a><h4 class="code-header">fn <a href="#tymethod.round_to_zero" class="fn">round_to_zero</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Rounds to the next integer towards 0.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.round_to_zero" title="method fixed::FixedI32::round_to_zero">round_to_zero</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.round_to_zero" title="method fixed::FixedU32::round_to_zero">round_to_zero</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.ceil" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1216">Source</a><h4 class="code-header">fn <a href="#tymethod.ceil" class="fn">ceil</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Rounds to the next integer towards +∞.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.ceil" title="method fixed::FixedI32::ceil">ceil</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.ceil" title="method fixed::FixedU32::ceil">ceil</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.floor" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1223">Source</a><h4 class="code-header">fn <a href="#tymethod.floor" class="fn">floor</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Rounds to the next integer towards −∞.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.floor" title="method fixed::FixedI32::floor">floor</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.floor" title="method fixed::FixedU32::floor">floor</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.round" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1230">Source</a><h4 class="code-header">fn <a href="#tymethod.round" class="fn">round</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Rounds to the nearest integer, with ties rounded away from zero.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.round" title="method fixed::FixedI32::round">round</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.round" title="method fixed::FixedU32::round">round</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.round_ties_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1239">Source</a><h4 class="code-header">fn <a href="#tymethod.round_ties_even" class="fn">round_ties_even</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Rounds to the nearest integer, with ties rounded to even.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.round_ties_even" title="method fixed::FixedI32::round_ties_even">round_ties_even</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.round_ties_even" title="method fixed::FixedU32::round_ties_even">round_ties_even</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_ceil" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1246">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_ceil" class="fn">checked_ceil</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked ceil. Rounds to the next integer towards +∞, returning
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_ceil" title="method fixed::FixedI32::checked_ceil">checked_ceil</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_ceil" title="method fixed::FixedU32::checked_ceil">checked_ceil</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_floor" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1254">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_floor" class="fn">checked_floor</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked floor. Rounds to the next integer towards −∞, returning
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_floor" title="method fixed::FixedI32::checked_floor">checked_floor</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_floor" title="method fixed::FixedU32::checked_floor">checked_floor</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_round" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1262">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_round" class="fn">checked_round</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked round. Rounds to the nearest integer, with ties
|
||
rounded away from zero, returning <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_round" title="method fixed::FixedI32::checked_round">checked_round</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_round" title="method fixed::FixedU32::checked_round">checked_round</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_round_ties_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1271">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_round_ties_even" class="fn">checked_round_ties_even</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked round. Rounds to the nearest integer, with ties rounded to even,
|
||
returning <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_round_ties_even" title="method fixed::FixedI32::checked_round_ties_even">checked_round_ties_even</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_round_ties_even" title="method fixed::FixedU32::checked_round_ties_even">checked_round_ties_even</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_ceil" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1280">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_ceil" class="fn">saturating_ceil</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Saturating ceil. Rounds to the next integer towards +∞,
|
||
saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_ceil" title="method fixed::FixedI32::saturating_ceil">saturating_ceil</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_ceil" title="method fixed::FixedU32::saturating_ceil">saturating_ceil</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_floor" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1290">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_floor" class="fn">saturating_floor</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Saturating floor. Rounds to the next integer towards −∞,
|
||
saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_floor" title="method fixed::FixedI32::saturating_floor">saturating_floor</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_floor" title="method fixed::FixedU32::saturating_floor">saturating_floor</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_round" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1300">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_round" class="fn">saturating_round</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Saturating round. Rounds to the nearest integer, with ties
|
||
rounded away from zero, and saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_round" title="method fixed::FixedI32::saturating_round">saturating_round</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_round" title="method fixed::FixedU32::saturating_round">saturating_round</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_round_ties_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1310">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_round_ties_even" class="fn">saturating_round_ties_even</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Saturating round. Rounds to the nearest integer, with ties rounded
|
||
to_even, and saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_round_ties_even" title="method fixed::FixedI32::saturating_round_ties_even">saturating_round_ties_even</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_round_ties_even" title="method fixed::FixedU32::saturating_round_ties_even">saturating_round_ties_even</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_ceil" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1319">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_ceil" class="fn">wrapping_ceil</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping ceil. Rounds to the next integer towards +∞, wrapping
|
||
on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_ceil" title="method fixed::FixedI32::wrapping_ceil">wrapping_ceil</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_ceil" title="method fixed::FixedU32::wrapping_ceil">wrapping_ceil</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_floor" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1328">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_floor" class="fn">wrapping_floor</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping floor. Rounds to the next integer towards −∞,
|
||
wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_floor" title="method fixed::FixedI32::wrapping_floor">wrapping_floor</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_floor" title="method fixed::FixedU32::wrapping_floor">wrapping_floor</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_round" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1337">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_round" class="fn">wrapping_round</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping round. Rounds to the next integer to the nearest,
|
||
with ties rounded away from zero, and wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_round" title="method fixed::FixedI32::wrapping_round">wrapping_round</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_round" title="method fixed::FixedU32::wrapping_round">wrapping_round</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_round_ties_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1347">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_round_ties_even" class="fn">wrapping_round_ties_even</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping round. Rounds to the next integer to the nearest, with ties
|
||
rounded to even, and wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_round_ties_even" title="method fixed::FixedI32::wrapping_round_ties_even">wrapping_round_ties_even</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_round_ties_even" title="method fixed::FixedU32::wrapping_round_ties_even">wrapping_round_ties_even</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_ceil" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1361">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_ceil" class="fn">unwrapped_ceil</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped ceil. Rounds to the next integer towards +∞,
|
||
panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_ceil" title="method fixed::FixedI32::unwrapped_ceil">unwrapped_ceil</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_ceil" title="method fixed::FixedU32::unwrapped_ceil">unwrapped_ceil</a></code>.</p>
|
||
<h5 id="panics-6"><a class="doc-anchor" href="#panics-6">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_floor" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1375">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_floor" class="fn">unwrapped_floor</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped floor. Rounds to the next integer towards −∞,
|
||
panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_floor" title="method fixed::FixedI32::unwrapped_floor">unwrapped_floor</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_floor" title="method fixed::FixedU32::unwrapped_floor">unwrapped_floor</a></code>.</p>
|
||
<h5 id="panics-7"><a class="doc-anchor" href="#panics-7">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_round" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1389">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_round" class="fn">unwrapped_round</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped round. Rounds to the next integer to the nearest,
|
||
with ties rounded away from zero, and panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_round" title="method fixed::FixedI32::unwrapped_round">unwrapped_round</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_round" title="method fixed::FixedU32::unwrapped_round">unwrapped_round</a></code>.</p>
|
||
<h5 id="panics-8"><a class="doc-anchor" href="#panics-8">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_round_ties_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1404">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_round_ties_even" class="fn">unwrapped_round_ties_even</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped round. Rounds to the next integer to the nearest, with ties
|
||
rounded to even, and panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_round_ties_even" title="method fixed::FixedI32::unwrapped_round_ties_even">unwrapped_round_ties_even</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_round_ties_even" title="method fixed::FixedU32::unwrapped_round_ties_even">unwrapped_round_ties_even</a></code>.</p>
|
||
<h5 id="panics-9"><a class="doc-anchor" href="#panics-9">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_ceil" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1416">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_ceil" class="fn">overflowing_ceil</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing ceil. Rounds to the next integer towards +∞.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_ceil" title="method fixed::FixedI32::overflowing_ceil">overflowing_ceil</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_ceil" title="method fixed::FixedU32::overflowing_ceil">overflowing_ceil</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_floor" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1428">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_floor" class="fn">overflowing_floor</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing floor. Rounds to the next integer towards −∞.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_floor" title="method fixed::FixedI32::overflowing_floor">overflowing_floor</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_floor" title="method fixed::FixedU32::overflowing_floor">overflowing_floor</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_round" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1441">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_round" class="fn">overflowing_round</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing round. Rounds to the next integer to the nearest,
|
||
with ties rounded away from zero.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_round" title="method fixed::FixedI32::overflowing_round">overflowing_round</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_round" title="method fixed::FixedU32::overflowing_round">overflowing_round</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_round_ties_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1454">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_round_ties_even" class="fn">overflowing_round_ties_even</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing round. Rounds to the next integer to the nearest, with ties
|
||
rounded to even.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_round_ties_even" title="method fixed::FixedI32::overflowing_round_ties_even">overflowing_round_ties_even</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_round_ties_even" title="method fixed::FixedU32::overflowing_round_ties_even">overflowing_round_ties_even</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.count_ones" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1461">Source</a><h4 class="code-header">fn <a href="#tymethod.count_ones" class="fn">count_ones</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Returns the number of ones in the binary representation.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.count_ones" title="method fixed::FixedI32::count_ones">count_ones</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.count_ones" title="method fixed::FixedU32::count_ones">count_ones</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.count_zeros" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1467">Source</a><h4 class="code-header">fn <a href="#tymethod.count_zeros" class="fn">count_zeros</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Returns the number of zeros in the binary representation.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.count_zeros" title="method fixed::FixedI32::count_zeros">count_zeros</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.count_zeros" title="method fixed::FixedU32::count_zeros">count_zeros</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.leading_ones" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1473">Source</a><h4 class="code-header">fn <a href="#tymethod.leading_ones" class="fn">leading_ones</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Returns the number of leading ones in the binary representation.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.leading_ones" title="method fixed::FixedI32::leading_ones">leading_ones</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.leading_ones" title="method fixed::FixedU32::leading_ones">leading_ones</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.leading_zeros" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1480">Source</a><h4 class="code-header">fn <a href="#tymethod.leading_zeros" class="fn">leading_zeros</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Returns the number of leading zeros in the binary representation.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.leading_zeros" title="method fixed::FixedI32::leading_zeros">leading_zeros</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.leading_zeros" title="method fixed::FixedU32::leading_zeros">leading_zeros</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.trailing_ones" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1487">Source</a><h4 class="code-header">fn <a href="#tymethod.trailing_ones" class="fn">trailing_ones</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Returns the number of trailing ones in the binary representation.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.trailing_ones" title="method fixed::FixedI32::trailing_ones">trailing_ones</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.trailing_ones" title="method fixed::FixedU32::trailing_ones">trailing_ones</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.trailing_zeros" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1494">Source</a><h4 class="code-header">fn <a href="#tymethod.trailing_zeros" class="fn">trailing_zeros</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Returns the number of trailing zeros in the binary representation.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.trailing_zeros" title="method fixed::FixedI32::trailing_zeros">trailing_zeros</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.trailing_zeros" title="method fixed::FixedU32::trailing_zeros">trailing_zeros</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.int_log2" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1505">Source</a><h4 class="code-header">fn <a href="#tymethod.int_log2" class="fn">int_log2</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h4></section></summary><div class="docblock"><p>Integer base-2 logarithm, rounded down.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.int_log2" title="method fixed::FixedI32::int_log2">int_log2</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.int_log2" title="method fixed::FixedU32::int_log2">int_log2</a></code>.</p>
|
||
<h5 id="panics-10"><a class="doc-anchor" href="#panics-10">§</a>Panics</h5>
|
||
<p>Panics if the fixed-point number is ≤ 0.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.int_log10" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1516">Source</a><h4 class="code-header">fn <a href="#tymethod.int_log10" class="fn">int_log10</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h4></section></summary><div class="docblock"><p>Integer base-10 logarithm, rounded down.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.int_log10" title="method fixed::FixedI32::int_log10">int_log10</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.int_log10" title="method fixed::FixedU32::int_log10">int_log10</a></code>.</p>
|
||
<h5 id="panics-11"><a class="doc-anchor" href="#panics-11">§</a>Panics</h5>
|
||
<p>Panics if the fixed-point number is ≤ 0.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.int_log" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1527">Source</a><h4 class="code-header">fn <a href="#tymethod.int_log" class="fn">int_log</a>(self, base: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h4></section></summary><div class="docblock"><p>Integer logarithm to the specified base, rounded down.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.int_log" title="method fixed::FixedI32::int_log">int_log</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.int_log" title="method fixed::FixedU32::int_log">int_log</a></code>.</p>
|
||
<h5 id="panics-12"><a class="doc-anchor" href="#panics-12">§</a>Panics</h5>
|
||
<p>Panics if the fixed-point number is ≤ 0 or if the base is < 2.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_int_log2" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1537">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_int_log2" class="fn">checked_int_log2</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>></h4></section></summary><div class="docblock"><p>Checked integer base-2 logarithm, rounded down. Returns the
|
||
logarithm or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the fixed-point number is ≤ 0.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_int_log2" title="method fixed::FixedI32::checked_int_log2">checked_int_log2</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_int_log2" title="method fixed::FixedU32::checked_int_log2">checked_int_log2</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_int_log10" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1547">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_int_log10" class="fn">checked_int_log10</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>></h4></section></summary><div class="docblock"><p>Checked integer base-10 logarithm, rounded down. Returns the
|
||
logarithm or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the fixed-point number is ≤ 0.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_int_log10" title="method fixed::FixedI32::checked_int_log10">checked_int_log10</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_int_log10" title="method fixed::FixedU32::checked_int_log10">checked_int_log10</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_int_log" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1558">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_int_log" class="fn">checked_int_log</a>(self, base: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>></h4></section></summary><div class="docblock"><p>Checked integer logarithm to the specified base, rounded down. Returns
|
||
the logarithm, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the fixed-point number is ≤ 0 or if
|
||
the base is < 2.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_int_log" title="method fixed::FixedI32::checked_int_log">checked_int_log</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_int_log" title="method fixed::FixedU32::checked_int_log">checked_int_log</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.reverse_bits" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1565">Source</a><h4 class="code-header">fn <a href="#tymethod.reverse_bits" class="fn">reverse_bits</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Reverses the order of the bits of the fixed-point number.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.reverse_bits" title="method fixed::FixedI32::reverse_bits">reverse_bits</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.reverse_bits" title="method fixed::FixedU32::reverse_bits">reverse_bits</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.rotate_left" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1572">Source</a><h4 class="code-header">fn <a href="#tymethod.rotate_left" class="fn">rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class="docblock"><p>Shifts to the left by <code>n</code> bits, wrapping the truncated bits to the right end.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.rotate_left" title="method fixed::FixedI32::rotate_left">rotate_left</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.rotate_left" title="method fixed::FixedU32::rotate_left">rotate_left</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.rotate_right" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1579">Source</a><h4 class="code-header">fn <a href="#tymethod.rotate_right" class="fn">rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class="docblock"><p>Shifts to the right by <code>n</code> bits, wrapping the truncated bits to the left end.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.rotate_right" title="method fixed::FixedI32::rotate_right">rotate_right</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.rotate_right" title="method fixed::FixedU32::rotate_right">rotate_right</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_zero" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1585">Source</a><h4 class="code-header">fn <a href="#tymethod.is_zero" class="fn">is_zero</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>true</code></a> if the number is zero.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.is_zero" title="method fixed::FixedI32::is_zero">is_zero</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.is_zero" title="method fixed::FixedU32::is_zero">is_zero</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dist" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1592">Source</a><h4 class="code-header">fn <a href="#tymethod.dist" class="fn">dist</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Returns the distance from <code>self</code> to <code>other</code>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.dist" title="method fixed::FixedI32::dist">dist</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.dist" title="method fixed::FixedU32::dist">dist</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.abs_diff" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1600">Source</a><h4 class="code-header">fn <a href="#tymethod.abs_diff" class="fn">abs_diff</a>(self, other: Self) -> Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Unsigned" title="type fixed::traits::Fixed::Unsigned">Unsigned</a></h4></section></summary><div class="docblock"><p>Returns the absolute value of the difference between <code>self</code> and <code>other</code>
|
||
using an unsigned type without any wrapping or panicking.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.abs_diff" title="method fixed::FixedI32::abs_diff">abs_diff</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.abs_diff" title="method fixed::FixedU32::abs_diff">abs_diff</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.mean" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1607">Source</a><h4 class="code-header">fn <a href="#tymethod.mean" class="fn">mean</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Returns the mean of <code>self</code> and <code>other</code>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.mean" title="method fixed::FixedI32::mean">mean</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.mean" title="method fixed::FixedU32::mean">mean</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.hypot" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1614">Source</a><h4 class="code-header">fn <a href="#tymethod.hypot" class="fn">hypot</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Compute the hypotenuse of a right triange.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.hypot" title="method fixed::FixedI32::hypot">hypot</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.hypot" title="method fixed::FixedU32::hypot">hypot</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.recip" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1625">Source</a><h4 class="code-header">fn <a href="#tymethod.recip" class="fn">recip</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the reciprocal.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.recip" title="method fixed::FixedI32::recip">recip</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.recip" title="method fixed::FixedU32::recip">recip</a></code>.</p>
|
||
<h5 id="panics-13"><a class="doc-anchor" href="#panics-13">§</a>Panics</h5>
|
||
<p>Panics if <code>self</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.next_multiple_of" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1638">Source</a><h4 class="code-header">fn <a href="#tymethod.next_multiple_of" class="fn">next_multiple_of</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Returns the next multiple of <code>other</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.next_multiple_of" title="method fixed::FixedI32::next_multiple_of">next_multiple_of</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.next_multiple_of" title="method fixed::FixedU32::next_multiple_of">next_multiple_of</a></code>.</p>
|
||
<h5 id="panics-14"><a class="doc-anchor" href="#panics-14">§</a>Panics</h5>
|
||
<p>Panics if <code>other</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.mul_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1652">Source</a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fn">mul_add</a>(self, mul: Self, add: Self) -> Self</h4></section></summary><div class="docblock"><p>Multiply and add. Returns <code>self</code> × <code>mul</code> + <code>add</code>.</p>
|
||
<p>Note that the inherent <a href="../struct.FixedI32.html#method.mul_add" title="method fixed::FixedI32::mul_add"><code>mul_add</code></a> method is more flexible
|
||
than this method and allows the <code>mul</code> parameter to have a
|
||
fixed-point type like <code>self</code> but with a different number of
|
||
fractional bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.mul_add" title="method fixed::FixedI32::mul_add">mul_add</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.mul_add" title="method fixed::FixedU32::mul_add">mul_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_prod" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1665">Source</a><h4 class="code-header">fn <a href="#tymethod.add_prod" class="fn">add_prod</a>(self, a: Self, b: Self) -> Self</h4></section></summary><div class="docblock"><p>Adds <code>self</code> to the product <code>a</code> × <code>b</code>.</p>
|
||
<p>Note that the inherent <a href="../struct.FixedI32.html#method.add_prod" title="method fixed::FixedI32::add_prod"><code>add_prod</code></a> method is more flexible than this
|
||
method and allows the <code>a</code> and <code>b</code> parameters to have a fixed-point type
|
||
like <code>self</code> but with a different number of fractional bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.add_prod" title="method fixed::FixedI32::add_prod">add_prod</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.add_prod" title="method fixed::FixedU32::add_prod">add_prod</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.mul_acc" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1677">Source</a><h4 class="code-header">fn <a href="#tymethod.mul_acc" class="fn">mul_acc</a>(&mut self, a: Self, b: Self)</h4></section></summary><div class="docblock"><p>Multiply and accumulate. Adds (<code>a</code> × <code>b</code>) to <code>self</code>.</p>
|
||
<p>Note that the inherent <a href="../struct.FixedI32.html#method.mul_acc" title="method fixed::FixedI32::mul_acc"><code>mul_acc</code></a> method is more flexible than this
|
||
method and allows the <code>a</code> and <code>b</code> parameters to have a fixed-point type
|
||
like <code>self</code> but with a different number of fractional bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.mul_acc" title="method fixed::FixedI32::mul_acc">mul_acc</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.mul_acc" title="method fixed::FixedU32::mul_acc">mul_acc</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.div_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1688">Source</a><h4 class="code-header">fn <a href="#tymethod.div_euclid" class="fn">div_euclid</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Euclidean division by an integer.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.div_euclid" title="method fixed::FixedI32::div_euclid">div_euclid</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.div_euclid" title="method fixed::FixedU32::div_euclid">div_euclid</a></code>.</p>
|
||
<h5 id="panics-15"><a class="doc-anchor" href="#panics-15">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the division results in overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.rem_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1699">Source</a><h4 class="code-header">fn <a href="#tymethod.rem_euclid" class="fn">rem_euclid</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Remainder for Euclidean division.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.rem_euclid" title="method fixed::FixedI32::rem_euclid">rem_euclid</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.rem_euclid" title="method fixed::FixedU32::rem_euclid">rem_euclid</a></code>.</p>
|
||
<h5 id="panics-16"><a class="doc-anchor" href="#panics-16">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.div_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1711">Source</a><h4 class="code-header">fn <a href="#tymethod.div_euclid_int" class="fn">div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Euclidean division by an integer.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.div_euclid_int" title="method fixed::FixedI32::div_euclid_int">div_euclid_int</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.div_euclid_int" title="method fixed::FixedU32::div_euclid_int">div_euclid_int</a></code>.</p>
|
||
<h5 id="panics-17"><a class="doc-anchor" href="#panics-17">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the division results in overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.rem_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1723">Source</a><h4 class="code-header">fn <a href="#tymethod.rem_euclid_int" class="fn">rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Remainder for Euclidean division by an integer.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.rem_euclid_int" title="method fixed::FixedI32::rem_euclid_int">rem_euclid_int</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.rem_euclid_int" title="method fixed::FixedU32::rem_euclid_int">rem_euclid_int</a></code>.</p>
|
||
<h5 id="panics-18"><a class="doc-anchor" href="#panics-18">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the division results in overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sqrt" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1733">Source</a><h4 class="code-header">fn <a href="#tymethod.sqrt" class="fn">sqrt</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the square root.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.sqrt" title="method fixed::FixedI32::sqrt">sqrt</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.sqrt" title="method fixed::FixedU32::sqrt">sqrt</a></code>.</p>
|
||
<h5 id="panics-19"><a class="doc-anchor" href="#panics-19">§</a>Panics</h5>
|
||
<p>Panics if the number is negative.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1740">Source</a><h4 class="code-header">fn <a href="#tymethod.lerp" class="fn">lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Linear interpolation between <code>start</code> and <code>end</code>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.lerp" title="method fixed::FixedI32::lerp">lerp</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.lerp" title="method fixed::FixedU32::lerp">lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.inv_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1747">Source</a><h4 class="code-header">fn <a href="#tymethod.inv_lerp" class="fn">inv_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Inverse linear interpolation between <code>start</code> and <code>end</code>.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.inv_lerp" title="method fixed::FixedI32::inv_lerp">inv_lerp</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.inv_lerp" title="method fixed::FixedU32::inv_lerp">inv_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_neg" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1753">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_neg" class="fn">checked_neg</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked negation. Returns the negated value, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_neg" title="method fixed::FixedI32::checked_neg">checked_neg</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_neg" title="method fixed::FixedU32::checked_neg">checked_neg</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1760">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_add" class="fn">checked_add</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked addition. Returns the sum, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_add" title="method fixed::FixedI32::checked_add">checked_add</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_add" title="method fixed::FixedU32::checked_add">checked_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_sub" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1767">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_sub" class="fn">checked_sub</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked subtraction. Returns the difference, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_sub" title="method fixed::FixedI32::checked_sub">checked_sub</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_sub" title="method fixed::FixedU32::checked_sub">checked_sub</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_mul" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1774">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_mul" class="fn">checked_mul</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked multiplication. Returns the product, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_mul" title="method fixed::FixedI32::checked_mul">checked_mul</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_mul" title="method fixed::FixedU32::checked_mul">checked_mul</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_div" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1782">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_div" class="fn">checked_div</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked division. Returns the quotient, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the
|
||
divisor is zero or on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_div" title="method fixed::FixedI32::checked_div">checked_div</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_div" title="method fixed::FixedU32::checked_div">checked_div</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_rem" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1790">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_rem" class="fn">checked_rem</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked remainder. Returns the remainder, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the
|
||
divisor is zero.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_rem" title="method fixed::FixedI32::checked_rem">checked_rem</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_rem" title="method fixed::FixedU32::checked_rem">checked_rem</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_recip" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1798">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_recip" class="fn">checked_recip</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked reciprocal. Returns the reciprocal, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if
|
||
<code>self</code> is zero or on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_recip" title="method fixed::FixedI32::checked_recip">checked_recip</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_recip" title="method fixed::FixedU32::checked_recip">checked_recip</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_next_multiple_of" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1808">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_next_multiple_of" class="fn">checked_next_multiple_of</a>(self, other: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked next multiple of <code>other</code>. Returns the next multiple, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>
|
||
if <code>other</code> is zero or on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_next_multiple_of" title="method fixed::FixedI32::checked_next_multiple_of">checked_next_multiple_of</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_next_multiple_of" title="method fixed::FixedU32::checked_next_multiple_of">checked_next_multiple_of</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_mul_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1817">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_mul_add" class="fn">checked_mul_add</a>(self, mul: Self, add: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked multiply and add. Returns <code>self</code> × <code>mul</code> + <code>add</code>, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_mul_add" title="method fixed::FixedI32::checked_mul_add">checked_mul_add</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_mul_add" title="method fixed::FixedU32::checked_mul_add">checked_mul_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_add_prod" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1826">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_add_prod" class="fn">checked_add_prod</a>(self, a: Self, b: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Adds <code>self</code> to the product <code>a</code> × <code>b</code>, returning <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_add_prod" title="method fixed::FixedI32::checked_add_prod">checked_add_prod</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_add_prod" title="method fixed::FixedU32::checked_add_prod">checked_add_prod</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_mul_acc" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1836">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_mul_acc" class="fn">checked_mul_acc</a>(&mut self, a: Self, b: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a>></h4></section></summary><div class="docblock"><p>Checked multiply and accumulate. Adds (<code>a</code> × <code>b</code>) to <code>self</code>, or returns
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_mul_acc" title="method fixed::FixedI32::checked_mul_acc">checked_mul_acc</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_mul_acc" title="method fixed::FixedU32::checked_mul_acc">checked_mul_acc</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_div_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1847">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_div_euclid" class="fn">checked_div_euclid</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked remainder for Euclidean division. Returns the
|
||
remainder, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the divisor is zero or the division
|
||
results in overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_div_euclid" title="method fixed::FixedI32::checked_div_euclid">checked_div_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_div_euclid" title="method fixed::FixedU32::checked_div_euclid">checked_div_euclid</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_rem_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1857">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_rem_euclid" class="fn">checked_rem_euclid</a>(self, rhs: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked remainder for Euclidean division. Returns the
|
||
remainder, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the divisor is zero.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_rem_euclid" title="method fixed::FixedI32::checked_rem_euclid">checked_rem_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_rem_euclid" title="method fixed::FixedU32::checked_rem_euclid">checked_rem_euclid</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_mul_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1867">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_mul_int" class="fn">checked_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked multiplication by an integer. Returns the product, or
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_mul_int" title="method fixed::FixedI32::checked_mul_int">checked_mul_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_mul_int" title="method fixed::FixedU32::checked_mul_int">checked_mul_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_div_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1878">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_div_int" class="fn">checked_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked division by an integer. Returns the quotient, or
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the divisor is zero or if the division results in
|
||
overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_div_int" title="method fixed::FixedI32::checked_div_int">checked_div_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_div_int" title="method fixed::FixedU32::checked_div_int">checked_div_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_rem_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1889">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_rem_int" class="fn">checked_rem_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked fixed-point remainder for division by an integer.
|
||
Returns the remainder, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the divisor is zero or
|
||
if the division results in overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_rem_int" title="method fixed::FixedI32::checked_rem_int">checked_rem_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_rem_int" title="method fixed::FixedU32::checked_rem_int">checked_rem_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_div_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1900">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_div_euclid_int" class="fn">checked_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked Euclidean division by an integer. Returns the
|
||
quotient, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the divisor is zero or if the
|
||
division results in overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_div_euclid_int" title="method fixed::FixedI32::checked_div_euclid_int">checked_div_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_div_euclid_int" title="method fixed::FixedU32::checked_div_euclid_int">checked_div_euclid_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_rem_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1911">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_rem_euclid_int" class="fn">checked_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked remainder for Euclidean division by an integer.
|
||
Returns the remainder, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if the divisor is zero or
|
||
if the remainder results in overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_rem_euclid_int" title="method fixed::FixedI32::checked_rem_euclid_int">checked_rem_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_rem_euclid_int" title="method fixed::FixedU32::checked_rem_euclid_int">checked_rem_euclid_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_shl" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1919">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_shl" class="fn">checked_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked shift left. Returns the shifted number, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if
|
||
<code>rhs</code> ≥ the number of bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_shl" title="method fixed::FixedI32::checked_shl">checked_shl</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_shl" title="method fixed::FixedU32::checked_shl">checked_shl</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_shr" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1927">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_shr" class="fn">checked_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked shift right. Returns the shifted number, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>
|
||
if <code>rhs</code> ≥ the number of bits.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_shr" title="method fixed::FixedI32::checked_shr">checked_shr</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_shr" title="method fixed::FixedU32::checked_shr">checked_shr</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_dist" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1935">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_dist" class="fn">checked_dist</a>(self, other: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked distance. Returns the distance from <code>self</code> to <code>other</code>, or
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_dist" title="method fixed::FixedI32::checked_dist">checked_dist</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_dist" title="method fixed::FixedU32::checked_dist">checked_dist</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_hypot" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1944">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_hypot" class="fn">checked_hypot</a>(self, other: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Compute the hypotenuse of a right triange, returning <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on
|
||
overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_hypot" title="method fixed::FixedI32::checked_hypot">checked_hypot</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_hypot" title="method fixed::FixedU32::checked_hypot">checked_hypot</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_sqrt" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1950">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_sqrt" class="fn">checked_sqrt</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked square root. Returns <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> for negative numbers or on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_sqrt" title="method fixed::FixedI32::checked_sqrt">checked_sqrt</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_sqrt" title="method fixed::FixedU32::checked_sqrt">checked_sqrt</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1957">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_lerp" class="fn">checked_lerp</a>(self, start: Self, end: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked linear interpolation between <code>start</code> and <code>end</code>. Returns <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>
|
||
on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.checked_lerp" title="method fixed::FixedI32::checked_lerp">checked_lerp</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.checked_lerp" title="method fixed::FixedU32::checked_lerp">checked_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.checked_inv_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1966">Source</a><h4 class="code-header">fn <a href="#tymethod.checked_inv_lerp" class="fn">checked_inv_lerp</a>(self, start: Self, end: Self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class="docblock"><p>Checked inverse linear interpolation between <code>start</code> and <code>end</code>. Returns
|
||
<a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> when <code>start</code> = <code>end</code> or on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.checked_inv_lerp" title="method fixed::FixedI32::checked_inv_lerp">checked_inv_lerp</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.checked_inv_lerp" title="method fixed::FixedU32::checked_inv_lerp">checked_inv_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_neg" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1974">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_neg" class="fn">saturating_neg</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Saturated negation. Returns the negated value, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_neg" title="method fixed::FixedI32::saturating_neg">saturating_neg</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_neg" title="method fixed::FixedU32::saturating_neg">saturating_neg</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1982">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_add" class="fn">saturating_add</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating addition. Returns the sum, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_add" title="method fixed::FixedI32::saturating_add">saturating_add</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_add" title="method fixed::FixedU32::saturating_add">saturating_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_sub" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1990">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_sub" class="fn">saturating_sub</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating subtraction. Returns the difference, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_sub" title="method fixed::FixedI32::saturating_sub">saturating_sub</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_sub" title="method fixed::FixedU32::saturating_sub">saturating_sub</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_mul" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#1998">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_mul" class="fn">saturating_mul</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating multiplication. Returns the product, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_mul" title="method fixed::FixedI32::saturating_mul">saturating_mul</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_mul" title="method fixed::FixedU32::saturating_mul">saturating_mul</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_div" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2010">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_div" class="fn">saturating_div</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating division. Returns the quotient, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_div" title="method fixed::FixedI32::saturating_div">saturating_div</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_div" title="method fixed::FixedU32::saturating_div">saturating_div</a></code>.</p>
|
||
<h5 id="panics-20"><a class="doc-anchor" href="#panics-20">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_recip" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2023">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_recip" class="fn">saturating_recip</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Saturating reciprocal.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_recip" title="method fixed::FixedI32::saturating_recip">saturating_recip</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_recip" title="method fixed::FixedU32::saturating_recip">saturating_recip</a></code>.</p>
|
||
<h5 id="panics-21"><a class="doc-anchor" href="#panics-21">§</a>Panics</h5>
|
||
<p>Panics if <code>self</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_next_multiple_of" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2036">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_next_multiple_of" class="fn">saturating_next_multiple_of</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating next multiple of <code>other</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_next_multiple_of" title="method fixed::FixedI32::saturating_next_multiple_of">saturating_next_multiple_of</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_next_multiple_of" title="method fixed::FixedU32::saturating_next_multiple_of">saturating_next_multiple_of</a></code>.</p>
|
||
<h5 id="panics-22"><a class="doc-anchor" href="#panics-22">§</a>Panics</h5>
|
||
<p>Panics if <code>other</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_mul_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2045">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_mul_add" class="fn">saturating_mul_add</a>(self, mul: Self, add: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating multiply and add. Returns <code>self</code> × <code>mul</code> + <code>add</code>, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_mul_add" title="method fixed::FixedI32::saturating_mul_add">saturating_mul_add</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_mul_add" title="method fixed::FixedU32::saturating_mul_add">saturating_mul_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_add_prod" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2054">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_add_prod" class="fn">saturating_add_prod</a>(self, a: Self, b: Self) -> Self</h4></section></summary><div class="docblock"><p>Adds <code>self</code> to the product <code>a</code> × <code>b</code>, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_add_prod" title="method fixed::FixedI32::saturating_add_prod">saturating_add_prod</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_add_prod" title="method fixed::FixedU32::saturating_add_prod">saturating_add_prod</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_mul_acc" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2062">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_mul_acc" class="fn">saturating_mul_acc</a>(&mut self, a: Self, b: Self)</h4></section></summary><div class="docblock"><p>Saturating multiply and add. Adds (<code>a</code> × <code>b</code>) to <code>self</code>, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_mul_acc" title="method fixed::FixedI32::saturating_mul_acc">saturating_mul_acc</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_mul_acc" title="method fixed::FixedU32::saturating_mul_acc">saturating_mul_acc</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_div_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2075">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_div_euclid" class="fn">saturating_div_euclid</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating Euclidean division. Returns the quotient, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_div_euclid" title="method fixed::FixedI32::saturating_div_euclid">saturating_div_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_div_euclid" title="method fixed::FixedU32::saturating_div_euclid">saturating_div_euclid</a></code>.</p>
|
||
<h5 id="panics-23"><a class="doc-anchor" href="#panics-23">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_mul_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2084">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_mul_int" class="fn">saturating_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Saturating multiplication by an integer. Returns the product, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_mul_int" title="method fixed::FixedI32::saturating_mul_int">saturating_mul_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_mul_int" title="method fixed::FixedU32::saturating_mul_int">saturating_mul_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_div_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2099">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_div_int" class="fn">saturating_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Saturating division by an integer. Returns the quotient, saturating on overflow.</p>
|
||
<p>Overflow can only occur when dividing the minimum value by −1.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_div_int" title="method fixed::FixedI32::saturating_div_int">saturating_div_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_div_int" title="method fixed::FixedU32::saturating_div_int">saturating_div_int</a></code>.</p>
|
||
<h5 id="panics-24"><a class="doc-anchor" href="#panics-24">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_div_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2113">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_div_euclid_int" class="fn">saturating_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Saturating Euclidean division by an integer. Returns the
|
||
quotient, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_div_euclid_int" title="method fixed::FixedI32::saturating_div_euclid_int">saturating_div_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_div_euclid_int" title="method fixed::FixedU32::saturating_div_euclid_int">saturating_div_euclid_int</a></code>.</p>
|
||
<h5 id="panics-25"><a class="doc-anchor" href="#panics-25">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_rem_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2127">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_rem_euclid_int" class="fn">saturating_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Saturating remainder for Euclidean division by an integer.
|
||
Returns the remainder, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_rem_euclid_int" title="method fixed::FixedI32::saturating_rem_euclid_int">saturating_rem_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_rem_euclid_int" title="method fixed::FixedU32::saturating_rem_euclid_int">saturating_rem_euclid_int</a></code>.</p>
|
||
<h5 id="panics-26"><a class="doc-anchor" href="#panics-26">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_dist" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2136">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_dist" class="fn">saturating_dist</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Saturating distance. Returns the distance from <code>self</code> to <code>other</code>,
|
||
saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_dist" title="method fixed::FixedI32::saturating_dist">saturating_dist</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_dist" title="method fixed::FixedU32::saturating_dist">saturating_dist</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_hypot" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2145">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_hypot" class="fn">saturating_hypot</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Compute the hypotenuse of a right triange, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_hypot" title="method fixed::FixedI32::saturating_hypot">saturating_hypot</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_hypot" title="method fixed::FixedU32::saturating_hypot">saturating_hypot</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_sqrt" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2156">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_sqrt" class="fn">saturating_sqrt</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the square root, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_sqrt" title="method fixed::FixedI32::saturating_sqrt">saturating_sqrt</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_sqrt" title="method fixed::FixedU32::saturating_sqrt">saturating_sqrt</a></code>.</p>
|
||
<h5 id="panics-27"><a class="doc-anchor" href="#panics-27">§</a>Panics</h5>
|
||
<p>Panics if the number is negative.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2164">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_lerp" class="fn">saturating_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Linear interpolation between <code>start</code> and <code>end</code>, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_lerp" title="method fixed::FixedI32::saturating_lerp">saturating_lerp</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_lerp" title="method fixed::FixedU32::saturating_lerp">saturating_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.saturating_inv_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2173">Source</a><h4 class="code-header">fn <a href="#tymethod.saturating_inv_lerp" class="fn">saturating_inv_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Inverse linear interpolation between <code>start</code> and <code>end</code>, saturating on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.saturating_inv_lerp" title="method fixed::FixedI32::saturating_inv_lerp">saturating_inv_lerp</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.saturating_inv_lerp" title="method fixed::FixedU32::saturating_inv_lerp">saturating_inv_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_neg" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2180">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_neg" class="fn">wrapping_neg</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping negation. Returns the negated value, wrapping on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_neg" title="method fixed::FixedI32::wrapping_neg">wrapping_neg</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_neg" title="method fixed::FixedU32::wrapping_neg">wrapping_neg</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2187">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_add" class="fn">wrapping_add</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping addition. Returns the sum, wrapping on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_add" title="method fixed::FixedI32::wrapping_add">wrapping_add</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_add" title="method fixed::FixedU32::wrapping_add">wrapping_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_sub" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2194">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_sub" class="fn">wrapping_sub</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping subtraction. Returns the difference, wrapping on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_sub" title="method fixed::FixedI32::wrapping_sub">wrapping_sub</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_sub" title="method fixed::FixedU32::wrapping_sub">wrapping_sub</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_mul" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2201">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_mul" class="fn">wrapping_mul</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping multiplication. Returns the product, wrapping on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_mul" title="method fixed::FixedI32::wrapping_mul">wrapping_mul</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_mul" title="method fixed::FixedU32::wrapping_mul">wrapping_mul</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_div" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2212">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_div" class="fn">wrapping_div</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping division. Returns the quotient, wrapping on overflow.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_div" title="method fixed::FixedI32::wrapping_div">wrapping_div</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_div" title="method fixed::FixedU32::wrapping_div">wrapping_div</a></code>.</p>
|
||
<h5 id="panics-28"><a class="doc-anchor" href="#panics-28">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_recip" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2224">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_recip" class="fn">wrapping_recip</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping reciprocal.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_recip" title="method fixed::FixedI32::wrapping_recip">wrapping_recip</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_recip" title="method fixed::FixedU32::wrapping_recip">wrapping_recip</a></code>.</p>
|
||
<h5 id="panics-29"><a class="doc-anchor" href="#panics-29">§</a>Panics</h5>
|
||
<p>Panics if <code>self</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_next_multiple_of" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2237">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_next_multiple_of" class="fn">wrapping_next_multiple_of</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping next multiple of <code>other</code>.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_next_multiple_of" title="method fixed::FixedI32::wrapping_next_multiple_of">wrapping_next_multiple_of</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_next_multiple_of" title="method fixed::FixedU32::wrapping_next_multiple_of">wrapping_next_multiple_of</a></code>.</p>
|
||
<h5 id="panics-30"><a class="doc-anchor" href="#panics-30">§</a>Panics</h5>
|
||
<p>Panics if <code>other</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_mul_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2246">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_mul_add" class="fn">wrapping_mul_add</a>(self, mul: Self, add: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping multiply and add. Returns <code>self</code> × <code>mul</code> + <code>add</code>, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_mul_add" title="method fixed::FixedI32::wrapping_mul_add">wrapping_mul_add</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_mul_add" title="method fixed::FixedU32::wrapping_mul_add">wrapping_mul_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_add_prod" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2255">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_add_prod" class="fn">wrapping_add_prod</a>(self, a: Self, b: Self) -> Self</h4></section></summary><div class="docblock"><p>Adds <code>self</code> to the product <code>a</code> × <code>b</code>, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_add_prod" title="method fixed::FixedI32::wrapping_add_prod">wrapping_add_prod</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_add_prod" title="method fixed::FixedU32::wrapping_add_prod">wrapping_add_prod</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_mul_acc" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2263">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_mul_acc" class="fn">wrapping_mul_acc</a>(&mut self, a: Self, b: Self)</h4></section></summary><div class="docblock"><p>Wrapping multiply and accumulate. Adds (<code>a</code> × <code>b</code>) to <code>self</code>, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_mul_acc" title="method fixed::FixedI32::wrapping_mul_acc">wrapping_mul_acc</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_mul_acc" title="method fixed::FixedU32::wrapping_mul_acc">wrapping_mul_acc</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_div_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2276">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_div_euclid" class="fn">wrapping_div_euclid</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping Euclidean division. Returns the quotient, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_div_euclid" title="method fixed::FixedI32::wrapping_div_euclid">wrapping_div_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_div_euclid" title="method fixed::FixedU32::wrapping_div_euclid">wrapping_div_euclid</a></code>.</p>
|
||
<h5 id="panics-31"><a class="doc-anchor" href="#panics-31">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_mul_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2285">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_mul_int" class="fn">wrapping_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Wrapping multiplication by an integer. Returns the product, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_mul_int" title="method fixed::FixedI32::wrapping_mul_int">wrapping_mul_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_mul_int" title="method fixed::FixedU32::wrapping_mul_int">wrapping_mul_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_div_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2300">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_div_int" class="fn">wrapping_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Wrapping division by an integer. Returns the quotient, wrapping on overflow.</p>
|
||
<p>Overflow can only occur when dividing the minimum value by −1.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_div_int" title="method fixed::FixedI32::wrapping_div_int">wrapping_div_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_div_int" title="method fixed::FixedU32::wrapping_div_int">wrapping_div_int</a></code>.</p>
|
||
<h5 id="panics-32"><a class="doc-anchor" href="#panics-32">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_div_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2316">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_div_euclid_int" class="fn">wrapping_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Wrapping Euclidean division by an integer. Returns the
|
||
quotient, wrapping on overflow.</p>
|
||
<p>Overflow can only occur when dividing the minimum value by −1.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_div_euclid_int" title="method fixed::FixedI32::wrapping_div_euclid_int">wrapping_div_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_div_euclid_int" title="method fixed::FixedU32::wrapping_div_euclid_int">wrapping_div_euclid_int</a></code>.</p>
|
||
<h5 id="panics-33"><a class="doc-anchor" href="#panics-33">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_rem_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2330">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_rem_euclid_int" class="fn">wrapping_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Wrapping remainder for Euclidean division by an integer.
|
||
Returns the remainder, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_rem_euclid_int" title="method fixed::FixedI32::wrapping_rem_euclid_int">wrapping_rem_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_rem_euclid_int" title="method fixed::FixedU32::wrapping_rem_euclid_int">wrapping_rem_euclid_int</a></code>.</p>
|
||
<h5 id="panics-34"><a class="doc-anchor" href="#panics-34">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_shl" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2338">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_shl" class="fn">wrapping_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class="docblock"><p>Wrapping shift left. Wraps <code>rhs</code> if <code>rhs</code> ≥ the number of
|
||
bits, then shifts and returns the number.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_shl" title="method fixed::FixedI32::wrapping_shl">wrapping_shl</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_shl" title="method fixed::FixedU32::wrapping_shl">wrapping_shl</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_shr" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2346">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_shr" class="fn">wrapping_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class="docblock"><p>Wrapping shift right. Wraps <code>rhs</code> if <code>rhs</code> ≥ the number of
|
||
bits, then shifts and returns the number.</p>
|
||
<p>See also <code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_shr" title="method fixed::FixedI32::wrapping_shr">wrapping_shr</a></code>
|
||
and <code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_shr" title="method fixed::FixedU32::wrapping_shr">wrapping_shr</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_dist" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2355">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_dist" class="fn">wrapping_dist</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Wrapping distance. Returns the distance from <code>self</code> to <code>other</code>, wrapping
|
||
on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_dist" title="method fixed::FixedI32::wrapping_dist">wrapping_dist</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_dist" title="method fixed::FixedU32::wrapping_dist">wrapping_dist</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_hypot" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2363">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_hypot" class="fn">wrapping_hypot</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Compute the hypotenuse of a right triange, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_hypot" title="method fixed::FixedI32::wrapping_hypot">wrapping_hypot</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_hypot" title="method fixed::FixedU32::wrapping_hypot">wrapping_hypot</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_sqrt" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2374">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_sqrt" class="fn">wrapping_sqrt</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the square root, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_sqrt" title="method fixed::FixedI32::wrapping_sqrt">wrapping_sqrt</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_sqrt" title="method fixed::FixedU32::wrapping_sqrt">wrapping_sqrt</a></code>.</p>
|
||
<h5 id="panics-35"><a class="doc-anchor" href="#panics-35">§</a>Panics</h5>
|
||
<p>Panics if the number is negative.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2382">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_lerp" class="fn">wrapping_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Linear interpolation between <code>start</code> and <code>end</code>, wrapping on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_lerp" title="method fixed::FixedI32::wrapping_lerp">wrapping_lerp</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_lerp" title="method fixed::FixedU32::wrapping_lerp">wrapping_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.wrapping_inv_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2392">Source</a><h4 class="code-header">fn <a href="#tymethod.wrapping_inv_lerp" class="fn">wrapping_inv_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Inverse linear interpolation between <code>start</code> and <code>end</code>, wrapping on
|
||
overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.wrapping_inv_lerp" title="method fixed::FixedI32::wrapping_inv_lerp">wrapping_inv_lerp</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.wrapping_inv_lerp" title="method fixed::FixedU32::wrapping_inv_lerp">wrapping_inv_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_neg" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2405">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_neg" class="fn">unwrapped_neg</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped negation. Returns the negated value, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_neg" title="method fixed::FixedI32::unwrapped_neg">unwrapped_neg</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_neg" title="method fixed::FixedU32::unwrapped_neg">unwrapped_neg</a></code>.</p>
|
||
<h5 id="panics-36"><a class="doc-anchor" href="#panics-36">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2418">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_add" class="fn">unwrapped_add</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped addition. Returns the sum, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_add" title="method fixed::FixedI32::unwrapped_add">unwrapped_add</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_add" title="method fixed::FixedU32::unwrapped_add">unwrapped_add</a></code>.</p>
|
||
<h5 id="panics-37"><a class="doc-anchor" href="#panics-37">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_sub" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2431">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_sub" class="fn">unwrapped_sub</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped subtraction. Returns the difference, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_sub" title="method fixed::FixedI32::unwrapped_sub">unwrapped_sub</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_sub" title="method fixed::FixedU32::unwrapped_sub">unwrapped_sub</a></code>.</p>
|
||
<h5 id="panics-38"><a class="doc-anchor" href="#panics-38">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_mul" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2444">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_mul" class="fn">unwrapped_mul</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped multiplication. Returns the product, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_mul" title="method fixed::FixedI32::unwrapped_mul">unwrapped_mul</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_mul" title="method fixed::FixedU32::unwrapped_mul">unwrapped_mul</a></code>.</p>
|
||
<h5 id="panics-39"><a class="doc-anchor" href="#panics-39">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_div" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2457">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_div" class="fn">unwrapped_div</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped division. Returns the quotient, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_div" title="method fixed::FixedI32::unwrapped_div">unwrapped_div</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_div" title="method fixed::FixedU32::unwrapped_div">unwrapped_div</a></code>.</p>
|
||
<h5 id="panics-40"><a class="doc-anchor" href="#panics-40">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_rem" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2470">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_rem" class="fn">unwrapped_rem</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped remainder. Returns the quotient, panicking if the divisor is zero.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_rem" title="method fixed::FixedI32::unwrapped_rem">unwrapped_rem</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_rem" title="method fixed::FixedU32::unwrapped_rem">unwrapped_rem</a></code>.</p>
|
||
<h5 id="panics-41"><a class="doc-anchor" href="#panics-41">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_recip" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2483">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_recip" class="fn">unwrapped_recip</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped reciprocal. Returns reciprocal, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_recip" title="method fixed::FixedI32::unwrapped_recip">unwrapped_recip</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_recip" title="method fixed::FixedU32::unwrapped_recip">unwrapped_recip</a></code>.</p>
|
||
<h5 id="panics-42"><a class="doc-anchor" href="#panics-42">§</a>Panics</h5>
|
||
<p>Panics if <code>self</code> is zero or on overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_next_multiple_of" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2498">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_next_multiple_of" class="fn">unwrapped_next_multiple_of</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped next multiple of <code>other</code>. Returns the next multiple, panicking
|
||
on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_next_multiple_of" title="method fixed::FixedI32::unwrapped_next_multiple_of">unwrapped_next_multiple_of</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_next_multiple_of" title="method fixed::FixedU32::unwrapped_next_multiple_of">unwrapped_next_multiple_of</a></code>.</p>
|
||
<h5 id="panics-43"><a class="doc-anchor" href="#panics-43">§</a>Panics</h5>
|
||
<p>Panics if <code>other</code> is zero or on overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_mul_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2512">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_mul_add" class="fn">unwrapped_mul_add</a>(self, mul: Self, add: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped multiply and add. Returns <code>self</code> × <code>mul</code> + <code>add</code>, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_mul_add" title="method fixed::FixedI32::unwrapped_mul_add">unwrapped_mul_add</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_mul_add" title="method fixed::FixedU32::unwrapped_mul_add">unwrapped_mul_add</a></code>.</p>
|
||
<h5 id="panics-44"><a class="doc-anchor" href="#panics-44">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_add_prod" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2526">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_add_prod" class="fn">unwrapped_add_prod</a>(self, a: Self, b: Self) -> Self</h4></section></summary><div class="docblock"><p>Adds <code>self</code> to the product <code>a</code> × <code>b</code>, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_add_prod" title="method fixed::FixedI32::unwrapped_add_prod">unwrapped_add_prod</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_add_prod" title="method fixed::FixedU32::unwrapped_add_prod">unwrapped_add_prod</a></code>.</p>
|
||
<h5 id="panics-45"><a class="doc-anchor" href="#panics-45">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_mul_acc" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2539">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_mul_acc" class="fn">unwrapped_mul_acc</a>(&mut self, a: Self, b: Self)</h4></section></summary><div class="docblock"><p>Unwrapped multiply and accumulate. Adds (<code>a</code> × <code>b</code>) to <code>self</code>, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_mul_acc" title="method fixed::FixedI32::unwrapped_mul_acc">unwrapped_mul_acc</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_mul_acc" title="method fixed::FixedU32::unwrapped_mul_acc">unwrapped_mul_acc</a></code>.</p>
|
||
<h5 id="panics-46"><a class="doc-anchor" href="#panics-46">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_div_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2553">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_div_euclid" class="fn">unwrapped_div_euclid</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped Euclidean division. Returns the quotient, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_div_euclid" title="method fixed::FixedI32::unwrapped_div_euclid">unwrapped_div_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_div_euclid" title="method fixed::FixedU32::unwrapped_div_euclid">unwrapped_div_euclid</a></code>.</p>
|
||
<h5 id="panics-47"><a class="doc-anchor" href="#panics-47">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_rem_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2568">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_rem_euclid" class="fn">unwrapped_rem_euclid</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped remainder for Euclidean division. Returns the
|
||
remainder, panicking if the divisor is zero.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_rem_euclid" title="method fixed::FixedI32::unwrapped_rem_euclid">unwrapped_rem_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_rem_euclid" title="method fixed::FixedU32::unwrapped_rem_euclid">unwrapped_rem_euclid</a></code>.</p>
|
||
<h5 id="panics-48"><a class="doc-anchor" href="#panics-48">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_mul_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2582">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_mul_int" class="fn">unwrapped_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped multiplication by an integer. Returns the product, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_mul_int" title="method fixed::FixedI32::unwrapped_mul_int">unwrapped_mul_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_mul_int" title="method fixed::FixedU32::unwrapped_mul_int">unwrapped_mul_int</a></code>.</p>
|
||
<h5 id="panics-49"><a class="doc-anchor" href="#panics-49">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_div_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2598">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_div_int" class="fn">unwrapped_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped division by an integer. Returns the quotient, panicking on overflow.</p>
|
||
<p>Overflow can only occur when dividing the minimum value by −1.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_div_int" title="method fixed::FixedI32::unwrapped_div_int">unwrapped_div_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_div_int" title="method fixed::FixedU32::unwrapped_div_int">unwrapped_div_int</a></code>.</p>
|
||
<h5 id="panics-50"><a class="doc-anchor" href="#panics-50">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_rem_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2613">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_rem_int" class="fn">unwrapped_rem_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped remainder for division by an integer. Returns the
|
||
remainder, panicking if the divisor is zero.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_rem_int" title="method fixed::FixedI32::unwrapped_rem_int">unwrapped_rem_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_rem_int" title="method fixed::FixedU32::unwrapped_rem_int">unwrapped_rem_int</a></code>.</p>
|
||
<h5 id="panics-51"><a class="doc-anchor" href="#panics-51">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_div_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2630">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_div_euclid_int" class="fn">unwrapped_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped Euclidean division by an integer. Returns the
|
||
quotient, panicking on overflow.</p>
|
||
<p>Overflow can only occur when dividing the minimum value by −1.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_div_euclid_int" title="method fixed::FixedI32::unwrapped_div_euclid_int">unwrapped_div_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_div_euclid_int" title="method fixed::FixedU32::unwrapped_div_euclid_int">unwrapped_div_euclid_int</a></code>.</p>
|
||
<h5 id="panics-52"><a class="doc-anchor" href="#panics-52">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_rem_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2645">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_rem_euclid_int" class="fn">unwrapped_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped remainder for Euclidean division by an integer.
|
||
Returns the remainder, panicking on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_rem_euclid_int" title="method fixed::FixedI32::unwrapped_rem_euclid_int">unwrapped_rem_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_rem_euclid_int" title="method fixed::FixedU32::unwrapped_rem_euclid_int">unwrapped_rem_euclid_int</a></code>.</p>
|
||
<h5 id="panics-53"><a class="doc-anchor" href="#panics-53">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero or if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_shl" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2658">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_shl" class="fn">unwrapped_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped shift left. Panics if <code>rhs</code> ≥ the number of bits.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_shl" title="method fixed::FixedI32::unwrapped_shl">unwrapped_shl</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_shl" title="method fixed::FixedU32::unwrapped_shl">unwrapped_shl</a></code>.</p>
|
||
<h5 id="panics-54"><a class="doc-anchor" href="#panics-54">§</a>Panics</h5>
|
||
<p>Panics if <code>rhs</code> ≥ the number of bits.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_shr" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2671">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_shr" class="fn">unwrapped_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped shift right. Panics if <code>rhs</code> ≥ the number of bits.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_shr" title="method fixed::FixedI32::unwrapped_shr">unwrapped_shr</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_shr" title="method fixed::FixedU32::unwrapped_shr">unwrapped_shr</a></code>.</p>
|
||
<h5 id="panics-55"><a class="doc-anchor" href="#panics-55">§</a>Panics</h5>
|
||
<p>Panics if <code>rhs</code> ≥ the number of bits.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_dist" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2685">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_dist" class="fn">unwrapped_dist</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Unwrapped distance. Returns the distance from <code>self</code> to <code>other</code>,
|
||
panicking on overflow.</p>
|
||
<h5 id="panics-56"><a class="doc-anchor" href="#panics-56">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_dist" title="method fixed::FixedI32::unwrapped_dist">unwrapped_dist</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_dist" title="method fixed::FixedU32::unwrapped_dist">unwrapped_dist</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_hypot" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2698">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_hypot" class="fn">unwrapped_hypot</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Compute the hypotenuse of a right triange, panicking on overflow.</p>
|
||
<h5 id="panics-57"><a class="doc-anchor" href="#panics-57">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_hypot" title="method fixed::FixedI32::unwrapped_hypot">unwrapped_hypot</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_hypot" title="method fixed::FixedU32::unwrapped_hypot">unwrapped_hypot</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_sqrt" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2709">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_sqrt" class="fn">unwrapped_sqrt</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns the square root, panicking if the number is negative or on overflow.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_sqrt" title="method fixed::FixedI32::unwrapped_sqrt">unwrapped_sqrt</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_sqrt" title="method fixed::FixedU32::unwrapped_sqrt">unwrapped_sqrt</a></code>.</p>
|
||
<h5 id="panics-58"><a class="doc-anchor" href="#panics-58">§</a>Panics</h5>
|
||
<p>Panics if the number is negative or on overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2722">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_lerp" class="fn">unwrapped_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Linear interpolation between <code>start</code> and <code>end</code>, panicking on overflow.</p>
|
||
<h5 id="panics-59"><a class="doc-anchor" href="#panics-59">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_lerp" title="method fixed::FixedI32::unwrapped_lerp">unwrapped_lerp</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_lerp" title="method fixed::FixedU32::unwrapped_lerp">unwrapped_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unwrapped_inv_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2736">Source</a><h4 class="code-header">fn <a href="#tymethod.unwrapped_inv_lerp" class="fn">unwrapped_inv_lerp</a>(self, start: Self, end: Self) -> Self</h4></section></summary><div class="docblock"><p>Inverse linear interpolation between <code>start</code> and <code>end</code>, panicking on overflow.</p>
|
||
<h5 id="panics-60"><a class="doc-anchor" href="#panics-60">§</a>Panics</h5>
|
||
<p>Panics when <code>start</code> = <code>end</code> or when the results overflows.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unwrapped_inv_lerp" title="method fixed::FixedI32::unwrapped_inv_lerp">unwrapped_inv_lerp</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unwrapped_inv_lerp" title="method fixed::FixedU32::unwrapped_inv_lerp">unwrapped_inv_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_neg" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2747">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_neg" class="fn">overflowing_neg</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing negation.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the negated value and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_neg" title="method fixed::FixedI32::overflowing_neg">overflowing_neg</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_neg" title="method fixed::FixedU32::overflowing_neg">overflowing_neg</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2759">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_add" class="fn">overflowing_add</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing addition.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the sum and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating whether
|
||
an overflow has occurred. On overflow, the wrapped value is
|
||
returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_add" title="method fixed::FixedI32::overflowing_add">overflowing_add</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_add" title="method fixed::FixedU32::overflowing_add">overflowing_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_sub" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2771">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_sub" class="fn">overflowing_sub</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing subtraction.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the difference and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_sub" title="method fixed::FixedI32::overflowing_sub">overflowing_sub</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_sub" title="method fixed::FixedU32::overflowing_sub">overflowing_sub</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_mul" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2783">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_mul" class="fn">overflowing_mul</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing multiplication.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the product and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_mul" title="method fixed::FixedI32::overflowing_mul">overflowing_mul</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_mul" title="method fixed::FixedU32::overflowing_mul">overflowing_mul</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_div" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2799">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_div" class="fn">overflowing_div</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing division.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the quotient and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_div" title="method fixed::FixedI32::overflowing_div">overflowing_div</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_div" title="method fixed::FixedU32::overflowing_div">overflowing_div</a></code>.</p>
|
||
<h5 id="panics-61"><a class="doc-anchor" href="#panics-61">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_recip" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2815">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_recip" class="fn">overflowing_recip</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing reciprocal.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the reciprocal of <code>self</code> and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_recip" title="method fixed::FixedI32::overflowing_recip">overflowing_recip</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_recip" title="method fixed::FixedU32::overflowing_recip">overflowing_recip</a></code>.</p>
|
||
<h5 id="panics-62"><a class="doc-anchor" href="#panics-62">§</a>Panics</h5>
|
||
<p>Panics if <code>self</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_next_multiple_of" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2831">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_next_multiple_of" class="fn">overflowing_next_multiple_of</a>(self, other: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing next multiple of <code>other</code>.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the next multiple and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped value is
|
||
returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_next_multiple_of" title="method fixed::FixedI32::overflowing_next_multiple_of">overflowing_next_multiple_of</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_next_multiple_of" title="method fixed::FixedU32::overflowing_next_multiple_of">overflowing_next_multiple_of</a></code>.</p>
|
||
<h5 id="panics-63"><a class="doc-anchor" href="#panics-63">§</a>Panics</h5>
|
||
<p>Panics if <code>other</code> is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_mul_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2844">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_mul_add" class="fn">overflowing_mul_add</a>(self, mul: Self, add: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing multiply and add.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of <code>self</code> × <code>mul</code> + <code>add</code> and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_mul_add" title="method fixed::FixedI32::overflowing_mul_add">overflowing_mul_add</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_mul_add" title="method fixed::FixedU32::overflowing_mul_add">overflowing_mul_add</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_add_prod" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2856">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_add_prod" class="fn">overflowing_add_prod</a>(self, a: Self, b: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Adds <code>self</code> to the product <code>a</code> × <code>b</code>.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the result and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a> indicating whether an
|
||
overflow has occurred. On overflow, the wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_add_prod" title="method fixed::FixedI32::overflowing_add_prod">overflowing_add_prod</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_add_prod" title="method fixed::FixedU32::overflowing_add_prod">overflowing_add_prod</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_mul_acc" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2866">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_mul_acc" class="fn">overflowing_mul_acc</a>(&mut self, a: Self, b: Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Overflowing multiply and accumulate. Adds (<code>a</code> × <code>b</code>) to <code>self</code>,
|
||
wrapping and returning <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>true</code></a> if overflow occurs.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_mul_acc" title="method fixed::FixedI32::overflowing_mul_acc">overflowing_mul_acc</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_mul_acc" title="method fixed::FixedU32::overflowing_mul_acc">overflowing_mul_acc</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_div_euclid" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2883">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_div_euclid" class="fn">overflowing_div_euclid</a>(self, rhs: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing Euclidean division.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the quotient and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_div_euclid" title="method fixed::FixedI32::overflowing_div_euclid">overflowing_div_euclid</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_div_euclid" title="method fixed::FixedU32::overflowing_div_euclid">overflowing_div_euclid</a></code>.</p>
|
||
<h5 id="panics-64"><a class="doc-anchor" href="#panics-64">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_mul_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2896">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_mul_int" class="fn">overflowing_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing multiplication by an integer.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the product and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_mul_int" title="method fixed::FixedI32::overflowing_mul_int">overflowing_mul_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_mul_int" title="method fixed::FixedU32::overflowing_mul_int">overflowing_mul_int</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_div_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2913">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_div_int" class="fn">overflowing_div_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing division by an integer.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the quotient and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_div_int" title="method fixed::FixedI32::overflowing_div_int">overflowing_div_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_div_int" title="method fixed::FixedU32::overflowing_div_int">overflowing_div_int</a></code>.</p>
|
||
<h5 id="panics-65"><a class="doc-anchor" href="#panics-65">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_div_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2930">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_div_euclid_int" class="fn">overflowing_div_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing Euclidean division by an integer.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the quotient and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_div_euclid_int" title="method fixed::FixedI32::overflowing_div_euclid_int">overflowing_div_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_div_euclid_int" title="method fixed::FixedU32::overflowing_div_euclid_int">overflowing_div_euclid_int</a></code>.</p>
|
||
<h5 id="panics-66"><a class="doc-anchor" href="#panics-66">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_rem_euclid_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2947">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_rem_euclid_int" class="fn">overflowing_rem_euclid_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing remainder for Euclidean division by an integer.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the remainder and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_rem_euclid_int" title="method fixed::FixedI32::overflowing_rem_euclid_int">overflowing_rem_euclid_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_rem_euclid_int" title="method fixed::FixedU32::overflowing_rem_euclid_int">overflowing_rem_euclid_int</a></code>.</p>
|
||
<h5 id="panics-67"><a class="doc-anchor" href="#panics-67">§</a>Panics</h5>
|
||
<p>Panics if the divisor is zero.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_shl" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2959">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_shl" class="fn">overflowing_shl</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing shift left.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the shifted value and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_shl" title="method fixed::FixedI32::overflowing_shl">overflowing_shl</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_shl" title="method fixed::FixedU32::overflowing_shl">overflowing_shl</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_shr" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2971">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_shr" class="fn">overflowing_shr</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing shift right.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the shifted value and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the
|
||
wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_shr" title="method fixed::FixedI32::overflowing_shr">overflowing_shr</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_shr" title="method fixed::FixedU32::overflowing_shr">overflowing_shr</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_dist" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2984">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_dist" class="fn">overflowing_dist</a>(self, other: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing distance.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the distance from <code>self</code> to <code>other</code> and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>,
|
||
indicating whether an overflow has occurred. On overflow, the wrapped
|
||
value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_dist" title="method fixed::FixedI32::overflowing_dist">overflowing_dist</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_dist" title="method fixed::FixedU32::overflowing_dist">overflowing_dist</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_hypot" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#2996">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_hypot" class="fn">overflowing_hypot</a>(self, other: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Compute the hypotenuse of a right triange.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the hypotenuse and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating whether
|
||
an overflow has occurred. On overflow, the wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_hypot" title="method fixed::FixedI32::overflowing_hypot">overflowing_hypot</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_hypot" title="method fixed::FixedU32::overflowing_hypot">overflowing_hypot</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_sqrt" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3011">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_sqrt" class="fn">overflowing_sqrt</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Compute the square root.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the square root and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating whether
|
||
an overflow has occurred. On overflow, the wrapped value is returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_sqrt" title="method fixed::FixedI32::overflowing_sqrt">overflowing_sqrt</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_sqrt" title="method fixed::FixedU32::overflowing_sqrt">overflowing_sqrt</a></code>.</p>
|
||
<h5 id="panics-68"><a class="doc-anchor" href="#panics-68">§</a>Panics</h5>
|
||
<p>Panics if the number is negative.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3023">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_lerp" class="fn">overflowing_lerp</a>(self, start: Self, end: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing linear interpolation between <code>start</code> and <code>end</code>.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the interpolated value and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped value is
|
||
returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_lerp" title="method fixed::FixedI32::overflowing_lerp">overflowing_lerp</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_lerp" title="method fixed::FixedU32::overflowing_lerp">overflowing_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overflowing_inv_lerp" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3035">Source</a><h4 class="code-header">fn <a href="#tymethod.overflowing_inv_lerp" class="fn">overflowing_inv_lerp</a>(self, start: Self, end: Self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Overflowing inverse linear interpolation between <code>start</code> and <code>end</code>.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the computed value and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped value is
|
||
returned.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.overflowing_inv_lerp" title="method fixed::FixedI32::overflowing_inv_lerp">overflowing_inv_lerp</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.overflowing_inv_lerp" title="method fixed::FixedU32::overflowing_inv_lerp">overflowing_inv_lerp</a></code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unchecked_add" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3049">Source</a><h4 class="code-header">unsafe fn <a href="#tymethod.unchecked_add" class="fn">unchecked_add</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unchecked addition. Computes <code>self</code> + <code>rhs</code>, assuming
|
||
overflow cannot occur.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unchecked_add" title="method fixed::FixedI32::unchecked_add">unchecked_add</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unchecked_add" title="method fixed::FixedU32::unchecked_add">unchecked_add</a></code>.</p>
|
||
<h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
|
||
<p>This results in undefined behavior when
|
||
<code>self</code> + <code>rhs</code> > <a href="trait.Fixed.html#associatedconstant.MAX"><code>MAX</code></a> or
|
||
<code>self</code> + <code>rhs</code> < <a href="trait.Fixed.html#associatedconstant.MIN"><code>MIN</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unchecked_sub" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3063">Source</a><h4 class="code-header">unsafe fn <a href="#tymethod.unchecked_sub" class="fn">unchecked_sub</a>(self, rhs: Self) -> Self</h4></section></summary><div class="docblock"><p>Unchecked subtraction. Computes <code>self</code> − <code>rhs</code>, assuming
|
||
overflow cannot occur.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unchecked_sub" title="method fixed::FixedI32::unchecked_sub">unchecked_sub</a></code> and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unchecked_sub" title="method fixed::FixedU32::unchecked_sub">unchecked_sub</a></code>.</p>
|
||
<h5 id="safety-1"><a class="doc-anchor" href="#safety-1">§</a>Safety</h5>
|
||
<p>This results in undefined behavior when
|
||
<code>self</code> − <code>rhs</code> > <a href="trait.Fixed.html#associatedconstant.MAX"><code>MAX</code></a> or
|
||
<code>self</code> − <code>rhs</code> < <a href="trait.Fixed.html#associatedconstant.MIN"><code>MIN</code></a>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unchecked_mul_int" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3078">Source</a><h4 class="code-header">unsafe fn <a href="#tymethod.unchecked_mul_int" class="fn">unchecked_mul_int</a>(self, rhs: Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Bits" title="type fixed::traits::Fixed::Bits">Bits</a>) -> Self</h4></section></summary><div class="docblock"><p>Unchecked multiplication by an integer. Computes
|
||
<code>self</code> × <code>rhs</code>, assuming overflow cannot occur.</p>
|
||
<p>See also
|
||
<code>FixedI32::<a href="../struct.FixedI32.html#method.unchecked_mul_int" title="method fixed::FixedI32::unchecked_mul_int">unchecked_mul_int</a></code>
|
||
and
|
||
<code>FixedU32::<a href="../struct.FixedU32.html#method.unchecked_mul_int" title="method fixed::FixedU32::unchecked_mul_int">unchecked_mul_int</a></code>.</p>
|
||
<h5 id="safety-2"><a class="doc-anchor" href="#safety-2">§</a>Safety</h5>
|
||
<p>This results in undefined behavior when
|
||
<code>self</code> × <code>rhs</code> > <a href="trait.Fixed.html#associatedconstant.MAX"><code>MAX</code></a> or
|
||
<code>self</code> × <code>rhs</code> < <a href="trait.Fixed.html#associatedconstant.MIN"><code>MIN</code></a>.</p>
|
||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.get_signed" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#573-579">Source</a><h4 class="code-header">fn <a href="#method.get_signed" class="fn">get_signed</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Signed" title="type fixed::traits::Fixed::Signed">Signed</a>></h4></section></summary><div class="docblock"><p>Returns a reference to <code>self</code> as <a href="trait.FixedSigned.html" title="trait fixed::traits::FixedSigned"><code>FixedSigned</code></a> if the type is signed,
|
||
or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is unsigned.</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">use </span>fixed::{
|
||
traits::Fixed,
|
||
types::{I16F16, U16F16},
|
||
};
|
||
|
||
<span class="kw">let </span>i = I16F16::from_num(-<span class="number">3.5</span>);
|
||
<span class="kw">match </span>i.get_signed() {
|
||
<span class="prelude-val">Some</span>(signed) => <span class="macro">assert_eq!</span>(signed.signum(), -<span class="number">1</span>),
|
||
<span class="prelude-val">None </span>=> <span class="macro">unreachable!</span>(),
|
||
}
|
||
|
||
<span class="kw">let </span>u = U16F16::from_num(<span class="number">3.5</span>);
|
||
<span class="macro">assert!</span>(u.get_signed().is_none());</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_unsigned" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#602-608">Source</a><h4 class="code-header">fn <a href="#method.get_unsigned" class="fn">get_unsigned</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Unsigned" title="type fixed::traits::Fixed::Unsigned">Unsigned</a>></h4></section></summary><div class="docblock"><p>Returns a reference to <code>self</code> as <a href="trait.FixedUnsigned.html" title="trait fixed::traits::FixedUnsigned"><code>FixedUnsigned</code></a> if the type is
|
||
unsigned, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is signed.</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">use </span>fixed::{
|
||
traits::Fixed,
|
||
types::{I16F16, U16F16},
|
||
};
|
||
|
||
<span class="kw">let </span>u = U16F16::from_num(<span class="number">3.5</span>);
|
||
<span class="kw">match </span>u.get_unsigned() {
|
||
<span class="prelude-val">Some</span>(unsigned) => <span class="macro">assert_eq!</span>(unsigned.next_power_of_two(), <span class="number">4</span>),
|
||
<span class="prelude-val">None </span>=> <span class="macro">unreachable!</span>(),
|
||
}
|
||
|
||
<span class="kw">let </span>i = I16F16::from_num(<span class="number">3.5</span>);
|
||
<span class="macro">assert!</span>(i.get_unsigned().is_none());</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_signed_mut" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#632-638">Source</a><h4 class="code-header">fn <a href="#method.get_signed_mut" class="fn">get_signed_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Signed" title="type fixed::traits::Fixed::Signed">Signed</a>></h4></section></summary><div class="docblock"><p>Returns a mutable reference to <code>self</code> as <a href="trait.FixedSigned.html" title="trait fixed::traits::FixedSigned"><code>FixedSigned</code></a> if the type is
|
||
signed, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is unsigned.</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">use </span>fixed::{
|
||
traits::Fixed,
|
||
types::{I16F16, U16F16},
|
||
};
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>i = I16F16::from_num(-<span class="number">3.5</span>);
|
||
<span class="kw">match </span>i.get_signed_mut() {
|
||
<span class="prelude-val">Some</span>(signed) => <span class="kw-2">*</span>signed = signed.signum(),
|
||
<span class="prelude-val">None </span>=> <span class="macro">unreachable!</span>(),
|
||
}
|
||
<span class="macro">assert_eq!</span>(i, -<span class="number">1</span>);
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>u = U16F16::from_num(<span class="number">3.5</span>);
|
||
<span class="macro">assert!</span>(u.get_signed_mut().is_none());</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_unsigned_mut" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#662-668">Source</a><h4 class="code-header">fn <a href="#method.get_unsigned_mut" class="fn">get_unsigned_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut Self::<a class="associatedtype" href="trait.Fixed.html#associatedtype.Unsigned" title="type fixed::traits::Fixed::Unsigned">Unsigned</a>></h4></section></summary><div class="docblock"><p>Returns a mutable reference to <code>self</code> as <a href="trait.FixedUnsigned.html" title="trait fixed::traits::FixedUnsigned"><code>FixedUnsigned</code></a> if the type
|
||
is unsigned, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is signed.</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>fixed::{
|
||
traits::Fixed,
|
||
types::{I16F16, U16F16},
|
||
};
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>u = U16F16::from_num(<span class="number">3.5</span>);
|
||
<span class="kw">match </span>u.get_unsigned_mut() {
|
||
<span class="prelude-val">Some</span>(unsigned) => <span class="kw-2">*</span>unsigned = unsigned.next_power_of_two(),
|
||
<span class="prelude-val">None </span>=> <span class="macro">unreachable!</span>(),
|
||
}
|
||
<span class="macro">assert_eq!</span>(u, <span class="number">4</span>);
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>i = I16F16::from_num(<span class="number">3.5</span>);
|
||
<span class="macro">assert!</span>(i.get_unsigned_mut().is_none());</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.round_ties_to_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3083-3085">Source</a><h4 class="code-header">fn <a href="#method.round_ties_to_even" class="fn">round_ties_to_even</a>(self) -> Self</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.28.0: renamed to <code>round_ties_even</code></span></div></span></summary><div class="docblock"><p>Rounds to the nearest integer, with ties rounded to even.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.checked_round_ties_to_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3090-3092">Source</a><h4 class="code-header">fn <a href="#method.checked_round_ties_to_even" class="fn">checked_round_ties_to_even</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.28.0: renamed to <code>checked_round_ties_even</code></span></div></span></summary><div class="docblock"><p>Checked round. Rounds to the nearest integer, with ties rounded to even,
|
||
returning <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> on overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.saturating_round_ties_to_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3098-3100">Source</a><h4 class="code-header">fn <a href="#method.saturating_round_ties_to_even" class="fn">saturating_round_ties_to_even</a>(self) -> Self</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.28.0: renamed to <code>saturating_round_ties_even</code></span></div></span></summary><div class="docblock"><p>Saturating round. Rounds to the nearest integer, with ties rounded
|
||
to_even, and saturating on overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.wrapping_round_ties_to_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3106-3108">Source</a><h4 class="code-header">fn <a href="#method.wrapping_round_ties_to_even" class="fn">wrapping_round_ties_to_even</a>(self) -> Self</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.28.0: renamed to <code>wrapping_round_ties_even</code></span></div></span></summary><div class="docblock"><p>Wrapping round. Rounds to the next integer to the nearest, with ties
|
||
rounded to even, and wrapping on overflow.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.unwrapped_round_ties_to_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3119-3121">Source</a><h4 class="code-header">fn <a href="#method.unwrapped_round_ties_to_even" class="fn">unwrapped_round_ties_to_even</a>(self) -> Self</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.28.0: renamed to <code>unwrapped_round_ties_even</code></span></div></span></summary><div class="docblock"><p>Unwrapped round. Rounds to the next integer to the nearest, with ties
|
||
rounded to even, and panicking on overflow.</p>
|
||
<h5 id="panics-69"><a class="doc-anchor" href="#panics-69">§</a>Panics</h5>
|
||
<p>Panics if the result does not fit.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.overflowing_round_ties_to_even" class="method"><a class="src rightside" href="../../src/fixed/traits.rs.html#3130-3132">Source</a><h4 class="code-header">fn <a href="#method.overflowing_round_ties_to_even" class="fn">overflowing_round_ties_to_even</a>(self) -> (Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a>)</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.28.0: renamed to <code>overflowing_round_ties_even</code></span></div></span></summary><div class="docblock"><p>Overflowing round. Rounds to the next integer to the nearest, with ties
|
||
rounded to even.</p>
|
||
<p>Returns a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html" title="primitive tuple">tuple</a> of the fixed-point number and a <a href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html" title="primitive bool"><code>bool</code></a>, indicating
|
||
whether an overflow has occurred. On overflow, the wrapped value is
|
||
returned.</p>
|
||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedI8%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#impl-Fixed-for-FixedI8%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU8.html" title="trait fixed::types::extra::LeEqU8">LeEqU8</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedI8.html" title="struct fixed::FixedI8">FixedI8</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.ZERO-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.TRY_ONE-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.DELTA-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.MIN-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.MAX-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.IS_SIGNED-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = true</h4></section><section id="associatedconstant.INT_NBITS-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.INT_NBITS-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-1" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedconstant.FRAC_NBITS-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedtype.Bits-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a></h4></section><section id="associatedtype.NonZeroBits-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedtype.NonZeroBits-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a>></h4></section><section id="associatedtype.Bytes-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedtype.Bytes-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">1</a>]</h4></section><section id="associatedtype.Frac-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedtype.Frac-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedtype.Signed-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI8.html" title="struct fixed::FixedI8">FixedI8</a><Frac></h4></section><section id="associatedtype.Unsigned-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4568">Source</a><a href="#associatedtype.Unsigned-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU8.html" title="struct fixed::FixedU8">FixedU8</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedU8%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#impl-Fixed-for-FixedU8%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU8.html" title="trait fixed::types::extra::LeEqU8">LeEqU8</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedU8.html" title="struct fixed::FixedU8">FixedU8</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.ZERO-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.TRY_ONE-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.DELTA-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.MIN-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.MAX-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.IS_SIGNED-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = false</h4></section><section id="associatedconstant.INT_NBITS-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.INT_NBITS-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-2" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedconstant.FRAC_NBITS-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedtype.Bits-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section><section id="associatedtype.NonZeroBits-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedtype.NonZeroBits-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>></h4></section><section id="associatedtype.Bytes-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedtype.Bytes-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">1</a>]</h4></section><section id="associatedtype.Frac-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedtype.Frac-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedtype.Signed-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI8.html" title="struct fixed::FixedI8">FixedI8</a><Frac></h4></section><section id="associatedtype.Unsigned-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4573">Source</a><a href="#associatedtype.Unsigned-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU8.html" title="struct fixed::FixedU8">FixedU8</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedI16%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#impl-Fixed-for-FixedI16%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU16.html" title="trait fixed::types::extra::LeEqU16">LeEqU16</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedI16.html" title="struct fixed::FixedI16">FixedI16</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.ZERO-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.TRY_ONE-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.DELTA-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.MIN-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.MAX-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.IS_SIGNED-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = true</h4></section><section id="associatedconstant.INT_NBITS-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.INT_NBITS-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-3" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedconstant.FRAC_NBITS-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedtype.Bits-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a></h4></section><section id="associatedtype.NonZeroBits-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedtype.NonZeroBits-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a>></h4></section><section id="associatedtype.Bytes-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedtype.Bytes-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">2</a>]</h4></section><section id="associatedtype.Frac-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedtype.Frac-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedtype.Signed-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI16.html" title="struct fixed::FixedI16">FixedI16</a><Frac></h4></section><section id="associatedtype.Unsigned-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4569">Source</a><a href="#associatedtype.Unsigned-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU16.html" title="struct fixed::FixedU16">FixedU16</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedU16%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#impl-Fixed-for-FixedU16%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU16.html" title="trait fixed::types::extra::LeEqU16">LeEqU16</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedU16.html" title="struct fixed::FixedU16">FixedU16</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.ZERO-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.TRY_ONE-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.DELTA-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.MIN-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.MAX-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.IS_SIGNED-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = false</h4></section><section id="associatedconstant.INT_NBITS-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.INT_NBITS-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-4" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedconstant.FRAC_NBITS-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedtype.Bits-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a></h4></section><section id="associatedtype.NonZeroBits-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedtype.NonZeroBits-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a>></h4></section><section id="associatedtype.Bytes-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedtype.Bytes-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">2</a>]</h4></section><section id="associatedtype.Frac-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedtype.Frac-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedtype.Signed-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI16.html" title="struct fixed::FixedI16">FixedI16</a><Frac></h4></section><section id="associatedtype.Unsigned-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4574">Source</a><a href="#associatedtype.Unsigned-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU16.html" title="struct fixed::FixedU16">FixedU16</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedI32%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#impl-Fixed-for-FixedI32%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU32.html" title="trait fixed::types::extra::LeEqU32">LeEqU32</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedI32.html" title="struct fixed::FixedI32">FixedI32</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.ZERO-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.TRY_ONE-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.DELTA-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.MIN-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.MAX-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.IS_SIGNED-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = true</h4></section><section id="associatedconstant.INT_NBITS-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.INT_NBITS-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-5" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedconstant.FRAC_NBITS-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedtype.Bits-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h4></section><section id="associatedtype.NonZeroBits-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedtype.NonZeroBits-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a>></h4></section><section id="associatedtype.Bytes-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedtype.Bytes-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">4</a>]</h4></section><section id="associatedtype.Frac-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedtype.Frac-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedtype.Signed-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI32.html" title="struct fixed::FixedI32">FixedI32</a><Frac></h4></section><section id="associatedtype.Unsigned-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4570">Source</a><a href="#associatedtype.Unsigned-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU32.html" title="struct fixed::FixedU32">FixedU32</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedU32%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#impl-Fixed-for-FixedU32%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU32.html" title="trait fixed::types::extra::LeEqU32">LeEqU32</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedU32.html" title="struct fixed::FixedU32">FixedU32</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.ZERO-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.TRY_ONE-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.DELTA-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.MIN-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.MAX-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.IS_SIGNED-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = false</h4></section><section id="associatedconstant.INT_NBITS-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.INT_NBITS-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-6" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedconstant.FRAC_NBITS-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedtype.Bits-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section><section id="associatedtype.NonZeroBits-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedtype.NonZeroBits-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a>></h4></section><section id="associatedtype.Bytes-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedtype.Bytes-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">4</a>]</h4></section><section id="associatedtype.Frac-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedtype.Frac-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedtype.Signed-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI32.html" title="struct fixed::FixedI32">FixedI32</a><Frac></h4></section><section id="associatedtype.Unsigned-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4575">Source</a><a href="#associatedtype.Unsigned-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU32.html" title="struct fixed::FixedU32">FixedU32</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedI64%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#impl-Fixed-for-FixedI64%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU64.html" title="trait fixed::types::extra::LeEqU64">LeEqU64</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedI64.html" title="struct fixed::FixedI64">FixedI64</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.ZERO-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.TRY_ONE-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.DELTA-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.MIN-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.MAX-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.IS_SIGNED-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = true</h4></section><section id="associatedconstant.INT_NBITS-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.INT_NBITS-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-7" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedconstant.FRAC_NBITS-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedtype.Bits-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a></h4></section><section id="associatedtype.NonZeroBits-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedtype.NonZeroBits-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a>></h4></section><section id="associatedtype.Bytes-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedtype.Bytes-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">8</a>]</h4></section><section id="associatedtype.Frac-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedtype.Frac-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedtype.Signed-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI64.html" title="struct fixed::FixedI64">FixedI64</a><Frac></h4></section><section id="associatedtype.Unsigned-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4571">Source</a><a href="#associatedtype.Unsigned-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU64.html" title="struct fixed::FixedU64">FixedU64</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedU64%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#impl-Fixed-for-FixedU64%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU64.html" title="trait fixed::types::extra::LeEqU64">LeEqU64</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedU64.html" title="struct fixed::FixedU64">FixedU64</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.ZERO-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.TRY_ONE-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.DELTA-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.MIN-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.MAX-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.IS_SIGNED-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = false</h4></section><section id="associatedconstant.INT_NBITS-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.INT_NBITS-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-8" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedconstant.FRAC_NBITS-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedtype.Bits-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a></h4></section><section id="associatedtype.NonZeroBits-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedtype.NonZeroBits-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a>></h4></section><section id="associatedtype.Bytes-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedtype.Bytes-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">8</a>]</h4></section><section id="associatedtype.Frac-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedtype.Frac-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedtype.Signed-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI64.html" title="struct fixed::FixedI64">FixedI64</a><Frac></h4></section><section id="associatedtype.Unsigned-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4576">Source</a><a href="#associatedtype.Unsigned-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU64.html" title="struct fixed::FixedU64">FixedU64</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedI128%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#impl-Fixed-for-FixedI128%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU128.html" title="trait fixed::types::extra::LeEqU128">LeEqU128</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedI128.html" title="struct fixed::FixedI128">FixedI128</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.ZERO-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.TRY_ONE-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.DELTA-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.MIN-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.MAX-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.IS_SIGNED-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = true</h4></section><section id="associatedconstant.INT_NBITS-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.INT_NBITS-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-9" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedconstant.FRAC_NBITS-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedtype.Bits-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a></h4></section><section id="associatedtype.NonZeroBits-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedtype.NonZeroBits-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a>></h4></section><section id="associatedtype.Bytes-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedtype.Bytes-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">16</a>]</h4></section><section id="associatedtype.Frac-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedtype.Frac-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedtype.Signed-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI128.html" title="struct fixed::FixedI128">FixedI128</a><Frac></h4></section><section id="associatedtype.Unsigned-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4572">Source</a><a href="#associatedtype.Unsigned-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU128.html" title="struct fixed::FixedU128">FixedU128</a><Frac></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Fixed-for-FixedU128%3CFrac%3E" class="impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#impl-Fixed-for-FixedU128%3CFrac%3E" class="anchor">§</a><h3 class="code-header">impl<Frac: <a class="trait" href="../types/extra/trait.LeEqU128.html" title="trait fixed::types::extra::LeEqU128">LeEqU128</a>> <a class="trait" href="trait.Fixed.html" title="trait fixed::traits::Fixed">Fixed</a> for <a class="struct" href="../struct.FixedU128.html" title="struct fixed::FixedU128">FixedU128</a><Frac></h3></section></summary><div class="impl-items"><section id="associatedconstant.ZERO-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.ZERO-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: Self = Self::ZERO</h4></section><section id="associatedconstant.TRY_ONE-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.TRY_ONE-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.TRY_ONE" class="constant">TRY_ONE</a>: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self> = Self::TRY_ONE</h4></section><section id="associatedconstant.DELTA-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.DELTA-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.DELTA" class="constant">DELTA</a>: Self = Self::DELTA</h4></section><section id="associatedconstant.MIN-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.MIN-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN" class="constant">MIN</a>: Self = Self::MIN</h4></section><section id="associatedconstant.MAX-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.MAX-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX" class="constant">MAX</a>: Self = Self::MAX</h4></section><section id="associatedconstant.IS_SIGNED-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.IS_SIGNED-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.IS_SIGNED" class="constant">IS_SIGNED</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a> = false</h4></section><section id="associatedconstant.INT_NBITS-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.INT_NBITS-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.INT_NBITS" class="constant">INT_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::INT_NBITS</h4></section><section id="associatedconstant.FRAC_NBITS-10" class="associatedconstant trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedconstant.FRAC_NBITS-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.FRAC_NBITS" class="constant">FRAC_NBITS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = Self::FRAC_NBITS</h4></section><section id="associatedtype.Bits-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedtype.Bits-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bits" class="associatedtype">Bits</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a></h4></section><section id="associatedtype.NonZeroBits-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedtype.NonZeroBits-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.NonZeroBits" class="associatedtype">NonZeroBits</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/struct.NonZero.html" title="struct core::num::nonzero::NonZero">NonZero</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a>></h4></section><section id="associatedtype.Bytes-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedtype.Bytes-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Bytes" class="associatedtype">Bytes</a> = [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">16</a>]</h4></section><section id="associatedtype.Frac-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedtype.Frac-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Frac" class="associatedtype">Frac</a> = Frac</h4></section><section id="associatedtype.Signed-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedtype.Signed-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="../struct.FixedI128.html" title="struct fixed::FixedI128">FixedI128</a><Frac></h4></section><section id="associatedtype.Unsigned-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/fixed/traits.rs.html#4577">Source</a><a href="#associatedtype.Unsigned-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Unsigned" class="associatedtype">Unsigned</a> = <a class="struct" href="../struct.FixedU128.html" title="struct fixed::FixedU128">FixedU128</a><Frac></h4></section></div></details></div><script src="../../trait.impl/fixed/traits/trait.Fixed.js" async></script></section></div></main></body></html> |