<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `Bounded` trait in crate `cgmath`."><metaname="keywords"content="rust, rustlang, rust-lang, Bounded"><title>cgmath::Bounded - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptsrc="../storage.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="shortcut icon"href="../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../cgmath/index.html'><divclass='logo-container'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass='location'>Trait Bounded</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#required-methods">Required Methods</a><divclass="sidebar-links"><ahref="#tymethod.max_value">max_value</a><ahref="#tymethod.min_value">min_value</a></div><aclass="sidebar-title"href="#foreign-impls">Implementations on Foreign Types</a><divclass="sidebar-links"><ahref="#impl-Bounded-for-()">()</a><ahref="#impl-Bounded-for-(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(G, H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(H%2C%20I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(H, I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(I%2C%20J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(I, J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(J%2C%20K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(J, K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(K%2C%20L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(K, L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(L%2C%20M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(L, M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(M%2C%20N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(M, N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(N%2C%20O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(N, O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(O%2C%20P%2C%20Q%2C%20R%2C%20S%2C%20T)">(O, P, Q, R, S, T)</a><ahref="#impl-Bounded-for-(P%2C%20Q%2C%20R%2C%20S%2C%20T)"
}</pre></div><divclass='docblock'><p>Numbers which have upper and lower bounds</p>
</div>
<h2id='required-methods'class='small-section-header'>Required methods<ahref='#required-methods'class='anchor'></a></h2><divclass='methods'><h3id='tymethod.min_value'class='method'><codeid='min_value.v'>fn <ahref='#tymethod.min_value'class='fnname'>min_value</a>() -> Self</code></h3><divclass='docblock'><p>returns the smallest finite number this type can represent</p>
</div><h3id='tymethod.max_value'class='method'><codeid='max_value.v'>fn <ahref='#tymethod.max_value'class='fnname'>max_value</a>() -> Self</code></h3><divclass='docblock'><p>returns the largest finite number this type can represent</p>
</script></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../";window.currentCrate="cgmath";</script><scriptsrc="../aliases.js"></script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>