multibody_dynamics 0.4.0

Multibody dynamics algorithms in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
<!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="../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-6827029ac823cab7.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-ebce58d0a40c3431.css"><link rel="stylesheet" disabled href="../static.files/dark-f23faae4a2daf9a6.css"><link rel="stylesheet" disabled href="../static.files/ayu-8af5e100b21cd173.css"><script id="default-settings" ></script><script src="../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-c55e1eb52e1886b4.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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">&#9776;</button><a class="sidebar-logo" href="../approx/index.html"><div class="logo-container"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../approx/index.html"><div class="logo-container"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></div></a><h2 class="location"><a href="#">RelativeEq</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.default_max_relative">default_max_relative</a></li><li><a href="#tymethod.relative_eq">relative_eq</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.relative_ne">relative_ne</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-RelativeEq%3C%26%27a%20T%3E-for-%26%27a%20T">&amp;&#39;a T</a></li><li><a href="#impl-RelativeEq%3C%26%27a%20mut%20T%3E-for-%26%27a%20mut%20T">&amp;&#39;a mut T</a></li><li><a href="#impl-RelativeEq%3CCell%3CT%3E%3E-for-Cell%3CT%3E">Cell&lt;T&gt;</a></li><li><a href="#impl-RelativeEq%3CRefCell%3CT%3E%3E-for-RefCell%3CT%3E">RefCell&lt;T&gt;</a></li><li><a href="#impl-RelativeEq%3C%5BB%5D%3E-for-%5BA%5D">[A]</a></li><li><a href="#impl-RelativeEq%3Cf32%3E-for-f32">f32</a></li><li><a href="#impl-RelativeEq%3Cf64%3E-for-f64">f64</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In approx</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-5ec35bf9ca753509.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">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="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/approx/relative_eq.rs.html#8-30">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><div class="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.67.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span>{
    fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a>;
<span class="item-spacer"></span>    fn <a href="#tymethod.relative_eq" class="fn">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.67.1/core/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.67.1/core/primitive.bool.html">bool</a>;

    fn <a href="#method.relative_ne" class="fn">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.67.1/core/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.67.1/core/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 method-toggle" open><summary><section id="tymethod.default_max_relative" class="method has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#15">source</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; Self::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></section></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 [<code>relative_eq</code>] macro.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.relative_eq" class="method has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#18-19">source</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">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.67.1/core/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.67.1/core/primitive.bool.html">bool</a></h4></section></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 method-toggle" open><summary><section id="method.relative_ne" class="method has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#22-29">source</a><h4 class="code-header">fn <a href="#method.relative_ne" class="fn">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.67.1/core/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.67.1/core/primitive.bool.html">bool</a></h4></section></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><section id="impl-RelativeEq%3Cf32%3E-for-f32" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#83">source</a><a href="#impl-RelativeEq%3Cf32%3E-for-f32" class="anchor">§</a><h3 class="code-header">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.67.1/core/primitive.f32.html">f32</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.default_max_relative" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#83">source</a><a href="#method.default_max_relative" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f32.html">f32</a></h4></section><section id="method.relative_eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#83">source</a><a href="#method.relative_eq" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">relative_eq</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f32.html">f32</a>, epsilon: <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f32.html">f32</a>, max_relative: <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-RelativeEq%3Cf64%3E-for-f64" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#84">source</a><a href="#impl-RelativeEq%3Cf64%3E-for-f64" class="anchor">§</a><h3 class="code-header">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.67.1/core/primitive.f64.html">f64</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.default_max_relative-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#84">source</a><a href="#method.default_max_relative-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f64.html">f64</a></h4></section><section id="method.relative_eq-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#84">source</a><a href="#method.relative_eq-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">relative_eq</a>(&amp;self, other: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f64.html">f64</a>, epsilon: <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f64.html">f64</a>, max_relative: <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.f64.html">f64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-RelativeEq%3C%26%27a%20T%3E-for-%26%27a%20T" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#90-100">source</a><a href="#impl-RelativeEq%3C%26%27a%20T%3E-for-%26%27a%20T" class="anchor">§</a><h3 class="code-header">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.67.1/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.67.1/core/primitive.reference.html">&amp;'a </a>T&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.reference.html">&amp;'a </a>T</h3></section></summary><div class="impl-items"><section id="method.default_max_relative-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#92-94">source</a><a href="#method.default_max_relative-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></section><section id="method.relative_eq-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#97-99">source</a><a href="#method.relative_eq-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">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.67.1/core/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.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-RelativeEq%3C%26%27a%20mut%20T%3E-for-%26%27a%20mut%20T" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#102-117">source</a><a href="#impl-RelativeEq%3C%26%27a%20mut%20T%3E-for-%26%27a%20mut%20T" class="anchor">§</a><h3 class="code-header">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.67.1/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.67.1/core/primitive.reference.html">&amp;'a mut </a>T&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.reference.html">&amp;'a mut </a>T</h3></section></summary><div class="impl-items"><section id="method.default_max_relative-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#104-106">source</a><a href="#method.default_max_relative-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></section><section id="method.relative_eq-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#109-116">source</a><a href="#method.relative_eq-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">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.67.1/core/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.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-RelativeEq%3CCell%3CT%3E%3E-for-Cell%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#119-134">source</a><a href="#impl-RelativeEq%3CCell%3CT%3E%3E-for-Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">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.67.1/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.67.1/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.67.1/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.default_max_relative-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#121-123">source</a><a href="#method.default_max_relative-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></section><section id="method.relative_eq-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#126-133">source</a><a href="#method.relative_eq-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">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.67.1/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.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-RelativeEq%3CRefCell%3CT%3E%3E-for-RefCell%3CT%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#136-151">source</a><a href="#impl-RelativeEq%3CRefCell%3CT%3E%3E-for-RefCell%3CT%3E" class="anchor">§</a><h3 class="code-header">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.67.1/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.67.1/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.67.1/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.default_max_relative-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#138-140">source</a><a href="#method.default_max_relative-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; T::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></section><section id="method.relative_eq-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#143-150">source</a><a href="#method.relative_eq-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">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.67.1/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.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-RelativeEq%3C%5BB%5D%3E-for-%5BA%5D" class="impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#153-169">source</a><a href="#impl-RelativeEq%3C%5BB%5D%3E-for-%5BA%5D" class="anchor">§</a><h3 class="code-header">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.67.1/core/primitive.slice.html">[B]</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.67.1/core/primitive.slice.html">[A]</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.67.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span></h3></section></summary><div class="impl-items"><section id="method.default_max_relative-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#159-161">source</a><a href="#method.default_max_relative-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.default_max_relative" class="fn">default_max_relative</a>() -&gt; A::<a class="associatedtype" href="trait.AbsDiffEq.html#associatedtype.Epsilon" title="type approx::AbsDiffEq::Epsilon">Epsilon</a></h4></section><section id="method.relative_eq-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/approx/relative_eq.rs.html#164-168">source</a><a href="#method.relative_eq-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.relative_eq" class="fn">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.67.1/core/primitive.slice.html">[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.67.1/core/primitive.bool.html">bool</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../implementors/approx/relative_eq/trait.RelativeEq.js" data-ignore-extern-crates="core" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="approx" data-themes="" data-resource-suffix="" data-rustdoc-version="1.67.1 (d5a82bbd2 2023-02-07)" data-search-js="search-444266647c4dba98.js" data-settings-js="settings-bebeae96e00e4617.js" data-settings-css="settings-af96d9e2fc13e081.css" ></div></body></html>