You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/doc/cgmath/struct.Euler.html

92 lines
55 KiB

5 years ago
<!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="API documentation for the Rust `Euler` struct in crate `cgmath`."><meta name="keywords" content="rust, rustlang, rust-lang, Euler"><title>cgmath::Euler - Rust</title><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="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../cgmath/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Euler</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.x">x</a><a href="#structfield.y">y</a><a href="#structfield.z">z</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AbsDiffEq%3CEuler%3CA%3E%3E">AbsDiffEq&lt;Euler&lt;A&gt;&gt;</a><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Distribution%3CEuler%3CA%3E%3E">Distribution&lt;Euler&lt;A&gt;&gt;</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3CEuler%3CA%3E%3E">From&lt;Euler&lt;A&gt;&gt;</a><a href="#impl-From%3CQuaternion%3CS%3E%3E">From&lt;Quaternion&lt;S&gt;&gt;</a><a href="#impl-PartialEq%3CEuler%3CA%3E%3E">PartialEq&lt;Euler&lt;A&gt;&gt;</a><a href="#impl-RelativeEq%3CEuler%3CA%3E%3E">RelativeEq&lt;Euler&lt;A&gt;&gt;</a><a href="#impl-UlpsEq%3CEuler%3CA%3E%3E">UlpsEq&lt;Euler&lt;A&gt;&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class='location'><a href='index.html'>cgmath</a></p><script>window.sidebarCurrent = {name: 'Euler', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><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><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span c
</span>pub struct Euler&lt;A&gt; {
pub x: A,
pub y: A,
pub z: A,
}</pre></div><div class='docblock'><p>A set of <a href="https://en.wikipedia.org/wiki/Euler_angles">Euler angles</a> representing a rotation in three-dimensional space.</p>
<p>This type is marked as <code>#[repr(C)]</code>.</p>
<p>The axis rotation sequence is XYZ. That is, the rotation is first around
the X axis, then the Y axis, and lastly the Z axis (using intrinsic
rotations). Since all three rotation axes are used, the angles are
TaitBryan angles rather than proper Euler angles.</p>
<h1 id="ranges" class="section-header"><a href="#ranges">Ranges</a></h1>
<ul>
<li>x: [-pi, pi]</li>
<li>y: [-pi/2, pi/2]</li>
<li>z: [-pi, pi]</li>
</ul>
<h1 id="defining-rotations-using-euler-angles" class="section-header"><a href="#defining-rotations-using-euler-angles">Defining rotations using Euler angles</a></h1>
<p>Note that while <a href="https://en.wikipedia.org/wiki/Euler_angles">Euler angles</a> are intuitive to define, they are prone to
<a href="https://en.wikipedia.org/wiki/Gimbal_lock#Gimbal_lock_in_applied_mathematics">gimbal lock</a> and are challenging to interpolate between. Instead we
recommend that you convert them to a more robust representation, such as a
quaternion or a rotation matrix. To this end, <code>From&lt;Euler&lt;A&gt;&gt;</code> conversions
are provided for the following types:</p>
<ul>
<li><a href="struct.Basis3.html"><code>Basis3</code></a></li>
<li><a href="struct.Matrix3.html"><code>Matrix3</code></a></li>
<li><a href="struct.Matrix4.html"><code>Matrix4</code></a></li>
<li><a href="struct.Quaternion.html"><code>Quaternion</code></a></li>
</ul>
<p>For example, to define a quaternion that applies the following:</p>
<ol>
<li>a 90° rotation around the <em>x</em> axis</li>
<li>a 45° rotation around the <em>y</em> axis</li>
<li>a 15° rotation around the <em>z</em> axis</li>
</ol>
<p>you can use the following code:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">cgmath</span>::{<span class="ident">Deg</span>, <span class="ident">Euler</span>, <span class="ident">Quaternion</span>};
<span class="kw">let</span> <span class="ident">rotation</span> <span class="op">=</span> <span class="ident">Quaternion</span>::<span class="ident">from</span>(<span class="ident">Euler</span> {
<span class="ident">x</span>: <span class="ident">Deg</span>(<span class="number">90.0</span>),
<span class="ident">y</span>: <span class="ident">Deg</span>(<span class="number">45.0</span>),
<span class="ident">z</span>: <span class="ident">Deg</span>(<span class="number">15.0</span>),
});</pre></div>
</div><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.x" class="structfield small-section-header"><a href="#structfield.x" class="anchor field"></a><code id="x.v">x: A</code></span><div class='docblock'><p>The angle to apply around the <em>x</em> axis. Also known at the <em>pitch</em>.</p>
</div><span id="structfield.y" class="structfield small-section-header"><a href="#structfield.y" class="anchor field"></a><code id="y.v">y: A</code></span><div class='docblock'><p>The angle to apply around the <em>y</em> axis. Also known at the <em>yaw</em>.</p>
</div><span id="structfield.z" class="structfield small-section-header"><a href="#structfield.z" class="anchor field"></a><code id="z.v">z: A</code></span><div class='docblock'><p>The angle to apply around the <em>z</em> axis. Also known at the <em>roll</em>.</p>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#90-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub const fn <a href='#method.new' class='fnname'>new</a>(x: A, y: A, z: A) -&gt; <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a class='srclink' href='../src/cgmath/euler.rs.html#98-100' title='goto source code'>[src]</a></h4><div class='docblock'><p>Construct a set of euler angles.</p>
<h1 id="arguments" class="section-header"><a href="#arguments">Arguments</a></h1>
<ul>
<li><code>x</code> - The angle to apply around the <em>x</em> axis. Also known at the <em>pitch</em>.</li>
<li><code>y</code> - The angle to apply around the <em>y</em> axis. Also known at the <em>yaw</em>.</li>
<li><code>z</code> - The angle to apply around the <em>z</em> axis. Also known at the <em>roll</em>.</li>
</ul>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Eq' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-PartialEq%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-PartialEq%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-From%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a>&lt;&lt;A as <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt;::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;&gt;,&nbsp;</span></code><a href='#impl-From%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/matrix.rs.html#1273-1290' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;) -&gt; <a class="struct" href="../cgmath/struct.Matrix3.html" title="struct cgmath::Matrix3">Matrix3</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#1277-1289' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CEuler%3CA%3E%3E-1' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a>&lt;&lt;A as <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt;::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;&gt;,&nbsp;</span></code><a href='#impl-From%3CEuler%3CA%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/cgmath/matrix.rs.html#1292-1310' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;) -&gt; <a class="struct" href="../cgmath/struct.Matrix4.html" title="struct cgmath::Matrix4">Matrix4</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;</code><a class='srclink' href='../src/cgmath/matrix.rs.html#1296-1309' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CEuler%3CA%3E%3E-2' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a>&lt;&lt;A as <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt;::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;&gt;,&nbsp;</span></code><a href='#impl-From%3CEuler%3CA%3E%3E-2' class='anchor'></a><a class='srclink' href='../src/cgmath/quaternion.rs.html#287-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;) -&gt; <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;</code><a class='srclink' href='../src/cgmath/quaternion.rs.html#291-308' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CQuaternion%3CS%3E%3E' class='impl'><code class='in-band'>impl&lt;S:&nbsp;<a class="trait" href="../cgmath/trait.BaseFloat.html" title="trait cgmath::BaseFloat">BaseFloat</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a>&lt;S&gt;&gt; for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a>&lt;S&gt;&gt;</code><a href='#impl-From%3CQuaternion%3CS%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#103-143' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Quaternion.html" title="struct cgmath::Quaternion">Quaternion</a>&lt;S&gt;) -&gt; <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a>&lt;S&gt;&gt;</code><a class='srclink' href='../src/cgmath/euler.rs.html#104-142' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CEuler%3CA%3E%3E-3' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Basis3.html" title="struct cgmath::Basis3">Basis3</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../cgmath/struct.Rad.html" title="struct cgmath::Rad">Rad</a>&lt;&lt;A as <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt;::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;&gt;,&nbsp;</span></code><a href='#impl-From%3CEuler%3CA%3E%3E-3' class='anchor'></a><a class='srclink' href='../src/cgmath/rotation.rs.html#434-444' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(src: <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;) -&gt; <a class="struct" href="../cgmath/struct.Basis3.html" title="struct cgmath::Basis3">Basis3</a>&lt;A::<a class="type" href="../cgmath/prelude/trait.Angle.html#associatedtype.Unitless" title="type cgmath::prelude::Angle::Unitless">Unitless</a>&gt;</code><a class='srclink' href='../src/cgmath/rotation.rs.html#439-443' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a three-dimensional rotation matrix from a set of euler angles.</p>
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#79' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-AbsDiffEq%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt; <a class="trait" href="../cgmath/trait.AbsDiffEq.html" title="trait cgmath::AbsDiffEq">AbsDiffEq</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-AbsDiffEq%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#145-159' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Epsilon' class="type"><code id='Epsilon.t'>type <a href='../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon' class="type">Epsilon</a> = A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a></code></h4><div class='docblock'><p>Used for specifying relative comparisons.</p>
</div><h4 id='method.default_epsilon' class="method hidden"><code id='default_epsilon.v'>fn <a href='../cgmath/trait.AbsDiffEq.html#tymethod.default_epsilon' class='fnname'>default_epsilon</a>() -&gt; A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#149-151' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The default tolerance to use when testing values that are close together. <a href="../cgmath/trait.AbsDiffEq.html#tymethod.default_epsilon">Read more</a></p>
</div><h4 id='method.abs_diff_eq' class="method hidden"><code id='abs_diff_eq.v'>fn <a href='../cgmath/trait.AbsDiffEq.html#tymethod.abs_diff_eq' class='fnname'>abs_diff_eq</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self, epsilon: A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#154-158' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A test for equality that uses the absolute difference to compute the approximate equality of two numbers. <a href="../cgmath/trait.AbsDiffEq.html#tymethod.abs_diff_eq">Read more</a></p>
</div><h4 id='method.abs_diff_ne' class="method hidden"><code id='abs_diff_ne.v'>fn <a href='../cgmath/trait.AbsDiffEq.html#method.abs_diff_ne' class='fnname'>abs_diff_ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs, epsilon: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/approx/abs_diff_eq.rs.html#26-28' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The inverse of <code>ApproxEq::abs_diff_eq</code>.</p>
</div></div><h3 id='impl-RelativeEq%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt; <a class="trait" href="../cgmath/trait.RelativeEq.html" title="trait cgmath::RelativeEq">RelativeEq</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-RelativeEq%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#161-173' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default_max_relative' class="method hidden"><code id='default_max_relative.v'>fn <a href='../cgmath/trait.RelativeEq.html#tymethod.default_max_relative' class='fnname'>default_max_relative</a>() -&gt; A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#163-165' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The default relative tolerance for testing values that are far-apart. <a href="../cgmath/trait.RelativeEq.html#tymethod.default_max_relative">Read more</a></p>
</div><h4 id='method.relative_eq' class="method hidden"><code id='relative_eq.v'>fn <a href='../cgmath/trait.RelativeEq.html#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/nightly/std/primitive.reference.html">&amp;</a>Self, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#168-172' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A test for equality that uses a relative comparison if the values are far apart.</p>
</div><h4 id='method.relative_ne' class="method hidden"><code id='relative_ne.v'>fn <a href='../cgmath/trait.RelativeEq.html#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/nightly/std/primitive.reference.html">&amp;</a>Rhs, <br>&nbsp;&nbsp;&nbsp;&nbsp;epsilon: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;max_relative: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a><br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/approx/relative_eq.rs.html#29-36' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The inverse of <code>ApproxEq::relative_eq</code>.</p>
</div></div><h3 id='impl-UlpsEq%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl&lt;A:&nbsp;<a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>&gt; <a class="trait" href="../cgmath/trait.UlpsEq.html" title="trait cgmath::UlpsEq">UlpsEq</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a href='#impl-UlpsEq%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#175-187' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default_max_ulps' class="method hidden"><code id='default_max_ulps.v'>fn <a href='../cgmath/trait.UlpsEq.html#tymethod.default_max_ulps' class='fnname'>default_max_ulps</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#177-179' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The default ULPs to tolerate when testing values that are far-apart. <a href="../cgmath/trait.UlpsEq.html#tymethod.default_max_ulps">Read more</a></p>
</div><h4 id='method.ulps_eq' class="method hidden"><code id='ulps_eq.v'>fn <a href='../cgmath/trait.UlpsEq.html#tymethod.ulps_eq' class='fnname'>ulps_eq</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self, epsilon: A::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, max_ulps: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/cgmath/euler.rs.html#182-186' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>A test for equality that uses units in the last place (ULP) if the values are far apart.</p>
</div><h4 id='method.ulps_ne' class="method hidden"><code id='ulps_ne.v'>fn <a href='../cgmath/trait.UlpsEq.html#method.ulps_ne' class='fnname'>ulps_ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs, epsilon: Self::<a class="type" href="../cgmath/trait.AbsDiffEq.html#associatedtype.Epsilon" title="type cgmath::AbsDiffEq::Epsilon">Epsilon</a>, max_ulps: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/approx/ulps_eq.rs.html#24-26' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The inverse of <code>ApproxEq::ulps_eq</code>.</p>
</div></div><h3 id='impl-Distribution%3CEuler%3CA%3E%3E' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="../rand/distributions/trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a>&lt;<a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;&gt; for <a class="struct" href="../rand/distributions/struct.Standard.html" title="struct rand::distributions::Standard">Standard</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="../rand/distributions/struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="../rand/distributions/trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a>&lt;A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../cgmath/prelude/trait.Angle.html" title="trait cgmath::prelude::Angle">Angle</a>,&nbsp;</span></code><a href='#impl-Distribution%3CEuler%3CA%3E%3E' class='anchor'></a><a class='srclink' href='../src/cgmath/euler.rs.html#189-199' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.sample' class="method hidden"><code id='sample.v'>fn <a href='../rand/distributions/trait.Distribution.html#tymethod.sample' class='fnname'>sample</a>&lt;R:&nbsp;<a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt;(&amp;self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt;</code><a class='srclink' href='../src/cgmath/euler.rs.html#192-198' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div><h4 id='method.sample_iter' class="method hidden"><code id='sample_iter.v'>fn <a href='../rand/distributions/trait.Distribution.html#method.sample_iter' class='fnname'>sample_iter</a>&lt;R&gt;(&amp;'a self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R) -&gt; <a class="struct" href="../rand/distributions/struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a>&lt;'a, Self, R, T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../rand/trait.Rng.html" title="trait rand::Rng">Rng</a>,&nbsp;</span></code><a class='srclink' href='../src/rand/distributions/mod.rs.html#261-269' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as the source of randomness. <a href="../rand/distributions/trait.Distribution.html#method.sample_iter">Read more</a></p>
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,&nbsp;</span></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../cgmath/struct.Euler.html" title="struct cgmath::Euler">Euler</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,&nbsp;</span></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92' title='goto source code'>[src]</a></h3><div class='impl-i
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&amp;self) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#544-549' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#546-548' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553-555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#554' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#572-578' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#575-577' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#560-567' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#564-566' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="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>&#9166;</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><div class="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><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>