This repository has been archived on 2022-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
ludum-dare-50/rustdoc/approx/trait.RelativeEq.html

15 lines
28 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="Equality comparisons between two numbers using both the absolute difference and relative based comparisons."><meta name="keywords" content="rust, rustlang, rust-lang, RelativeEq"><title>RelativeEq in approx - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
<noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.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="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a class="sidebar-logo" href="../approx/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.png" alt="logo"></div>
</a><h2 class="location">Trait RelativeEq</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.default_max_relative">default_max_relative</a><a href="#tymethod.relative_eq">relative_eq</a></div><h3 class="sidebar-title"><a href="#provided-methods">Provided Methods</a></h3><div class="sidebar-links"><a href="#method.relative_ne">relative_ne</a></div><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><div class="sidebar-links"><a href="#impl-RelativeEq%3C%26%27a%20T%3E-for-%26%27a%20T">&amp;&#39;a T</a><a href="#impl-RelativeEq%3C%26%27a%20mut%20T%3E-for-%26%27a%20mut%20T">&amp;&#39;a mut T</a><a href="#impl-RelativeEq%3CCell%3CT%3E%3E-for-Cell%3CT%3E">Cell&lt;T&gt;</a><a href="#impl-RelativeEq%3CRefCell%3CT%3E%3E-for-RefCell%3CT%3E">RefCell&lt;T&gt;</a><a href="#impl-RelativeEq%3C%5BB%5D%3E-for-%5BA%5D">[A]</a><a href="#impl-RelativeEq%3Cf32%3E-for-f32">f32</a><a href="#impl-RelativeEq%3Cf64%3E-for-f64">f64</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="index.html">approx</a></h2><div id="sidebar-vars" data-name="RelativeEq" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../approx/index.html"><img class="rust-logo" src="../rust-logo.png" alt="logo"></a><nav class="sub"><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="index.html">approx</a>::<wbr><a class="trait" href="#">RelativeEq</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/approx/relative_eq.rs.html#8-30" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust trait"><code>pub trait RelativeEq&lt;Rhs&nbsp;=&nbsp;Self&gt;: <a class="trait" href="trait.AbsDiffEq.html" title="trait approx::AbsDiffEq">AbsDiffEq</a>&lt;Rhs&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Rhs: ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span>{
fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;</a>Rhs, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;epsilon: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max_relative: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a>;
fn <a href="#method.relative_ne" class="fnname">relative_ne</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;</a>Rhs, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;epsilon: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max_relative: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a> { ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Equality comparisons between two numbers using both the absolute difference and
relative based comparisons.</p>
</div></details><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.default_max_relative" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#15" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></div></summary><div class="docblock"><p>The default relative tolerance for testing values that are far-apart.</p>
<p>This is used when no <code>max_relative</code> value is supplied to the <a href="macro.relative_eq.html" title="relative_eq"><code>relative_eq</code></a> macro.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.relative_eq" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#18-19" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;</a>Rhs, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>A test for equality that uses a relative comparison if the values are far apart.</p>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="method.relative_ne" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#22-29" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.relative_ne" class="fnname">relative_ne</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;</a>Rhs, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>The inverse of <a href="trait.RelativeEq.html#tymethod.relative_eq" title="RelativeEq::relative_eq"><code>RelativeEq::relative_eq</code></a>.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3Cf32%3E-for-f32" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#83" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3Cf32%3E-for-f32" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a></h3></div></summary><div class="impl-items"><div id="method.default_max_relative" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#83" title="goto source code">[src]</a></div><a href="#method.default_max_relative" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a></h4></div><div id="method.relative_eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#83" title="goto source code">[src]</a></div><a href="#method.relative_eq" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, epsilon: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, max_relative: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3Cf64%3E-for-f64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#84" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3Cf64%3E-for-f64" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a></h3></div></summary><div class="impl-items"><div id="method.default_max_relative-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#84" title="goto source code">[src]</a></div><a href="#method.default_max_relative-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a></h4></div><div id="method.relative_eq-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#84" title="goto source code">[src]</a></div><a href="#method.relative_eq-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>, epsilon: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>, max_relative: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3C%26%27a%20T%3E-for-%26%27a%20T" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#90-100" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3C%26%27a%20T%3E-for-%26%27a%20T" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;'a </a>T</h3></div></summary><div class="impl-items"><div id="method.default_max_relative-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#92-94" title="goto source code">[src]</a></div><a href="#method.default_max_relative-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></div><div id="method.relative_eq-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#97-99" title="goto source code">[src]</a></div><a href="#method.relative_eq-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;'a </a>T, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3C%26%27a%20mut%20T%3E-for-%26%27a%20mut%20T" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#102-117" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3C%26%27a%20mut%20T%3E-for-%26%27a%20mut%20T" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a, T:&nbsp;<a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;'a mut </a>T&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;'a mut </a>T</h3></div></summary><div class="impl-items"><div id="method.default_max_relative-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#104-106" title="goto source code">[src]</a></div><a href="#method.default_max_relative-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></div><div id="method.relative_eq-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#109-116" title="goto source code">[src]</a></div><a href="#method.relative_eq-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&amp;'a mut </a>T, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3CCell%3CT%3E%3E-for-Cell%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#119-134" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3CCell%3CT%3E%3E-for-Cell%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a> + <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.59.0/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;&gt; for <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;</h3></div></summary><div class="impl-items"><div id="method.default_max_relative-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#121-123" title="goto source code">[src]</a></div><a href="#method.default_max_relative-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></div><div id="method.relative_eq-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#126-133" title="goto source code">[src]</a></div><a href="#method.relative_eq-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: &amp;<a class="struct" href="https://doc.rust-lang.org/1.59.0/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3CRefCell%3CT%3E%3E-for-RefCell%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#136-151" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3CRefCell%3CT%3E%3E-for-RefCell%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;T:&nbsp;<a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.59.0/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a>&lt;T&gt;&gt; for <a class="struct" href="https://doc.rust-lang.org/1.59.0/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a>&lt;T&gt;</h3></div></summary><div class="impl-items"><div id="method.default_max_relative-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#138-140" title="goto source code">[src]</a></div><a href="#method.default_max_relative-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></div><div id="method.relative_eq-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#143-150" title="goto source code">[src]</a></div><a href="#method.relative_eq-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: &amp;<a class="struct" href="https://doc.rust-lang.org/1.59.0/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a>&lt;T&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-RelativeEq%3C%5BB%5D%3E-for-%5BA%5D" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#153-169" title="goto source code">[src]</a></div><a href="#impl-RelativeEq%3C%5BB%5D%3E-for-%5BA%5D" class="anchor"></a><h3 class="code-header in-band">impl&lt;A, B&gt; <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">[</a>B<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">[</a>A<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="trait.RelativeEq.html" title="trait approx::RelativeEq">RelativeEq</a>&lt;B&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></h3></div></summary><div class="impl-items"><div id="method.default_max_relative-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#159-161" title="goto source code">[src]</a></div><a href="#method.default_max_relative-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fnname">default_max_relative</a>() -&gt; A::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></div><div id="method.relative_eq-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/approx/relative_eq.rs.html#164-168" title="goto source code">[src]</a></div><a href="#method.relative_eq-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fnname">relative_eq</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&amp;[B]</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: A::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: A::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../implementors/approx/trait.RelativeEq.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="approx" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.59.0 (9d1b2106e 2022-02-23)" ></div>
</body></html>