178 lines
177 KiB
HTML
178 lines
177 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A normalized SIMD vector pointing in a direction in 3D space."><title>Dir3A in bevy_math - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bevy_math" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://bevyengine.org/assets/icon.png"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../bevy_math/index.html"><img src="https://bevyengine.org/assets/icon.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../bevy_math/index.html"><img src="https://bevyengine.org/assets/icon.png" alt="logo"></a><h2><a href="../bevy_math/index.html">bevy_<wbr>math</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Dir3A</a></h2><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.AXES" title="AXES">AXES</a></li><li><a href="#associatedconstant.NEG_X" title="NEG_X">NEG_X</a></li><li><a href="#associatedconstant.NEG_Y" title="NEG_Y">NEG_Y</a></li><li><a href="#associatedconstant.NEG_Z" title="NEG_Z">NEG_Z</a></li><li><a href="#associatedconstant.X" title="X">X</a></li><li><a href="#associatedconstant.Y" title="Y">Y</a></li><li><a href="#associatedconstant.Z" title="Z">Z</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.as_vec3a" title="as_vec3a">as_vec3a</a></li><li><a href="#method.fast_renormalize" title="fast_renormalize">fast_renormalize</a></li><li><a href="#method.from_xyz" title="from_xyz">from_xyz</a></li><li><a href="#method.from_xyz_unchecked" title="from_xyz_unchecked">from_xyz_unchecked</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.new_and_length" title="new_and_length">new_and_length</a></li><li><a href="#method.new_unchecked" title="new_unchecked">new_unchecked</a></li><li><a href="#method.slerp" title="slerp">slerp</a></li></ul><h3><a href="#deref-methods-Vec3A">Methods from Deref<<wbr>Target=<wbr>Vec3<wbr>A></a></h3><ul class="block deref-methods"><li><a href="#method.any_orthogonal_vector" title="any_orthogonal_vector">any_orthogonal_vector</a></li><li><a href="#method.any_orthonormal_pair" title="any_orthonormal_pair">any_orthonormal_pair</a></li><li><a href="#method.any_orthonormal_vector" title="any_orthonormal_vector">any_orthonormal_vector</a></li><li><a href="#method.as_dvec3" title="as_dvec3">as_dvec3</a></li><li><a href="#method.as_i16vec3" title="as_i16vec3">as_i16vec3</a></li><li><a href="#method.as_i64vec3" title="as_i64vec3">as_i64vec3</a></li><li><a href="#method.as_i8vec3" title="as_i8vec3">as_i8vec3</a></li><li><a href="#method.as_ivec3" title="as_ivec3">as_ivec3</a></li><li><a href="#method.as_u16vec3" title="as_u16vec3">as_u16vec3</a></li><li><a href="#method.as_u64vec3" title="as_u64vec3">as_u64vec3</a></li><li><a href="#method.as_u8vec3" title="as_u8vec3">as_u8vec3</a></li><li><a href="#method.as_uvec3" title="as_uvec3">as_uvec3</a></li><li><a href="#method.move_towards" title="move_towards">move_towards</a></li><li><a href="#method.to_array" title="to_array">to_array</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Dir3A" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-Dir3A" title="Copy">Copy</a></li><li><a href="#impl-Debug-for-Dir3A" title="Debug">Debug</a></li><li><a href="#impl-Deref-for-Dir3A" title="Deref">Deref</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-Dir3A" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Distribution%3CDir3A%3E-for-Standard" title="Distribution<Dir3A>">Distribution<Dir3A></a></li><li><a href="#impl-Ease-for-Dir3A" title="Ease">Ease</a></li><li><a href="#impl-From%3CDir3%3E-for-Dir3A" title="From<Dir3>">From<Dir3></a></li><li><a href="#impl-From%3CDir3A%3E-for-Dir3" title="From<Dir3A>">From<Dir3A></a></li><li><a href="#impl-From%3CDir3A%3E-for-Vec3A" title="From<Dir3A>">From<Dir3A></a></li><li><a href="#impl-FromReflect-for-Dir3A" title="FromReflect">FromReflect</a></li><li><a href="#impl-FromRng-for-Dir3A" title="FromRng">FromRng</a></li><li><a href="#impl-GetTypeRegistration-for-Dir3A" title="GetTypeRegistration">GetTypeRegistration</a></li><li><a href="#impl-Mul%3CDir3A%3E-for-Quat" title="Mul<Dir3A>">Mul<Dir3A></a></li><li><a href="#impl-Mul%3CDir3A%3E-for-f32" title="Mul<Dir3A>">Mul<Dir3A></a></li><li><a href="#impl-Mul%3Cf32%3E-for-Dir3A" title="Mul<f32>">Mul<f32></a></li><li><a href="#impl-Neg-for-Dir3A" title="Neg">Neg</a></li><li><a href="#impl-PartialEq-for-Dir3A" title="PartialEq">PartialEq</a></li><li><a href="#impl-PartialReflect-for-Dir3A" title="PartialReflect">PartialReflect</a></li><li><a href="#impl-Primitive3d-for-Dir3A" title="Primitive3d">Primitive3d</a></li><li><a href="#impl-Reflect-for-Dir3A" title="Reflect">Reflect</a></li><li><a href="#impl-Serialize-for-Dir3A" title="Serialize">Serialize</a></li><li><a href="#impl-StableInterpolate-for-Dir3A" title="StableInterpolate">StableInterpolate</a></li><li><a href="#impl-StructuralPartialEq-for-Dir3A" title="StructuralPartialEq">StructuralPartialEq</a></li><li><a href="#impl-TryFrom%3CVec3A%3E-for-Dir3A" title="TryFrom<Vec3A>">TryFrom<Vec3A></a></li><li><a href="#impl-TupleStruct-for-Dir3A" title="TupleStruct">TupleStruct</a></li><li><a href="#impl-TypePath-for-Dir3A" title="TypePath">TypePath</a></li><li><a href="#impl-Typed-for-Dir3A" title="Typed">Typed</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Dir3A" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Dir3A" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Dir3A" title="Send">Send</a></li><li><a href="#impl-Sync-for-Dir3A" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Dir3A" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Dir3A" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-ConditionalSend-for-T" title="ConditionalSend">ConditionalSend</a></li><li><a href="#impl-DeserializeOwned-for-T" title="DeserializeOwned">DeserializeOwned</a></li><li><a href="#impl-Downcast-for-T" title="Downcast">Downcast</a></li><li><a href="#impl-DowncastSync-for-T" title="DowncastSync">DowncastSync</a></li><li><a href="#impl-DynamicTypePath-for-T" title="DynamicTypePath">DynamicTypePath</a></li><li><a href="#impl-DynamicTyped-for-T" title="DynamicTyped">DynamicTyped</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-GetPath-for-T" title="GetPath">GetPath</a></li><li><a href="#impl-GetTupleStructField-for-S" title="GetTupleStructField">GetTupleStructField</a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-Receiver-for-P" title="Receiver">Receiver</a></li><li><a href="#impl-Reflectable-for-T" title="Reflectable">Reflectable</a></li><li><a href="#impl-Serialize-for-T" title="Serialize">Serialize</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-TypeData-for-T" title="TypeData">TypeData</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip<V>">VZip<V></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate bevy_<wbr>math</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">bevy_math</a></span><h1>Struct <span class="struct">Dir3A</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/bevy_math/direction.rs.html#627">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Dir3A(<span class="comment">/* private fields */</span>);</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A normalized SIMD vector pointing in a direction in 3D space.</p>
|
||
<p>This type stores a 16 byte aligned <a href="struct.Vec3A.html" title="struct bevy_math::Vec3A"><code>Vec3A</code></a>.
|
||
This may or may not be faster than <a href="struct.Dir3.html" title="struct bevy_math::Dir3"><code>Dir3</code></a>: make sure to benchmark!</p>
|
||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#630-751">Source</a><a href="#impl-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.X" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#632">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.X" class="constant">X</a>: Self = _</h4></section></summary><div class="docblock"><p>A unit vector pointing along the positive X axis.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.Y" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#634">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.Y" class="constant">Y</a>: Self = _</h4></section></summary><div class="docblock"><p>A unit vector pointing along the positive Y axis.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.Z" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#636">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.Z" class="constant">Z</a>: Self = _</h4></section></summary><div class="docblock"><p>A unit vector pointing along the positive Z axis.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.NEG_X" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#638">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_X" class="constant">NEG_X</a>: Self = _</h4></section></summary><div class="docblock"><p>A unit vector pointing along the negative X axis.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.NEG_Y" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#640">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_Y" class="constant">NEG_Y</a>: Self = _</h4></section></summary><div class="docblock"><p>A unit vector pointing along the negative Y axis.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.NEG_Z" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#642">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_Z" class="constant">NEG_Z</a>: Self = _</h4></section></summary><div class="docblock"><p>A unit vector pointing along the negative Z axis.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.AXES" class="associatedconstant"><a class="src rightside" href="../src/bevy_math/direction.rs.html#644">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.AXES" class="constant">AXES</a>: [Self; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">3</a>] = _</h4></section></summary><div class="docblock"><p>The directional axes.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#650-652">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(value: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError">InvalidDirectionError</a>></h4></section></summary><div class="docblock"><p>Create a direction from a finite, nonzero <a href="struct.Vec3A.html" title="struct bevy_math::Vec3A"><code>Vec3A</code></a>, normalizing it.</p>
|
||
<p>Returns <a href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError"><code>Err(InvalidDirectionError)</code></a> if the length
|
||
of the given vector is zero (or very close to zero), infinite, or <code>NaN</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.new_unchecked" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#659-667">Source</a><h4 class="code-header">pub fn <a href="#method.new_unchecked" class="fn">new_unchecked</a>(value: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>) -> Self</h4></section></summary><div class="docblock"><p>Create a <a href="struct.Dir3A.html" title="struct bevy_math::Dir3A"><code>Dir3A</code></a> from a <a href="struct.Vec3A.html" title="struct bevy_math::Vec3A"><code>Vec3A</code></a> that is already normalized.</p>
|
||
<h5 id="warning"><a class="doc-anchor" href="#warning">§</a>Warning</h5>
|
||
<p><code>value</code> must be normalized, i.e its length must be <code>1.0</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.new_and_length" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#674-681">Source</a><h4 class="code-header">pub fn <a href="#method.new_and_length" class="fn">new_and_length</a>(
|
||
value: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>), <a class="enum" href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError">InvalidDirectionError</a>></h4></section></summary><div class="docblock"><p>Create a direction from a finite, nonzero <a href="struct.Vec3A.html" title="struct bevy_math::Vec3A"><code>Vec3A</code></a>, normalizing it and
|
||
also returning its original length.</p>
|
||
<p>Returns <a href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError"><code>Err(InvalidDirectionError)</code></a> if the length
|
||
of the given vector is zero (or very close to zero), infinite, or <code>NaN</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_xyz" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#687-689">Source</a><h4 class="code-header">pub fn <a href="#method.from_xyz" class="fn">from_xyz</a>(x: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, z: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError">InvalidDirectionError</a>></h4></section></summary><div class="docblock"><p>Create a direction from its <code>x</code>, <code>y</code>, and <code>z</code> components.</p>
|
||
<p>Returns <a href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError"><code>Err(InvalidDirectionError)</code></a> if the length
|
||
of the vector formed by the components is zero (or very close to zero), infinite, or <code>NaN</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_xyz_unchecked" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#696-698">Source</a><h4 class="code-header">pub fn <a href="#method.from_xyz_unchecked" class="fn">from_xyz_unchecked</a>(x: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, z: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> Self</h4></section></summary><div class="docblock"><p>Create a direction from its <code>x</code>, <code>y</code>, and <code>z</code> components, assuming the resulting vector is normalized.</p>
|
||
<h5 id="warning-1"><a class="doc-anchor" href="#warning-1">§</a>Warning</h5>
|
||
<p>The vector produced from <code>x</code>, <code>y</code>, and <code>z</code> must be normalized, i.e its length must be <code>1.0</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_vec3a" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#701-703">Source</a><h4 class="code-header">pub const fn <a href="#method.as_vec3a" class="fn">as_vec3a</a>(&self) -> <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class="docblock"><p>Returns the inner <a href="struct.Vec3A.html" title="struct bevy_math::Vec3A"><code>Vec3A</code></a></p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.slerp" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#733-739">Source</a><h4 class="code-header">pub fn <a href="#method.slerp" class="fn">slerp</a>(self, rhs: Self, s: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> Self</h4></section></summary><div class="docblock"><p>Performs a spherical linear interpolation between <code>self</code> and <code>rhs</code>
|
||
based on the value <code>s</code>.</p>
|
||
<p>This corresponds to interpolating between the two directions at a constant angular velocity.</p>
|
||
<p>When <code>s == 0.0</code>, the result will be equal to <code>self</code>.
|
||
When <code>s == 1.0</code>, the result will be equal to <code>rhs</code>.</p>
|
||
<h5 id="example"><a class="doc-anchor" href="#example">§</a>Example</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>dir1 = Dir3A::X;
|
||
<span class="kw">let </span>dir2 = Dir3A::Y;
|
||
|
||
<span class="kw">let </span>result1 = dir1.slerp(dir2, <span class="number">1.0 </span>/ <span class="number">3.0</span>);
|
||
<span class="macro">assert_relative_eq!</span>(
|
||
result1,
|
||
Dir3A::from_xyz(<span class="number">0.75_f32</span>.sqrt(), <span class="number">0.5</span>, <span class="number">0.0</span>).unwrap(),
|
||
epsilon = <span class="number">0.000001
|
||
</span>);
|
||
|
||
<span class="kw">let </span>result2 = dir1.slerp(dir2, <span class="number">0.5</span>);
|
||
<span class="macro">assert_relative_eq!</span>(result2, Dir3A::from_xyz(<span class="number">0.5_f32</span>.sqrt(), <span class="number">0.5_f32</span>.sqrt(), <span class="number">0.0</span>).unwrap());</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fast_renormalize" class="method"><a class="src rightside" href="../src/bevy_math/direction.rs.html#746-750">Source</a><h4 class="code-header">pub fn <a href="#method.fast_renormalize" class="fn">fast_renormalize</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Returns <code>self</code> after an approximate normalization, assuming the value is already nearly normalized.
|
||
Useful for preventing numerical error accumulation.</p>
|
||
<p>See <a href="struct.Dir3.html#method.fast_renormalize" title="method bevy_math::Dir3::fast_renormalize"><code>Dir3::fast_renormalize</code></a> for an example of when such error accumulation might occur.</p>
|
||
</div></details></div></details></div><details class="toggle big-toggle" open><summary><h2 id="deref-methods-Vec3A" class="section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>></span><a href="#deref-methods-Vec3A" class="anchor">§</a></h2></summary><div id="deref-methods-Vec3A-1" class="impl-items"><section id="associatedconstant.ZERO" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#42">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.ZERO" class="constant">ZERO</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.ONE" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#45">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.ONE" class="constant">ONE</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.NEG_ONE" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#48">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_ONE" class="constant">NEG_ONE</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.MIN" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#51">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MIN" class="constant">MIN</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.MAX" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#54">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.MAX" class="constant">MAX</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.NAN" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#57">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NAN" class="constant">NAN</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.INFINITY" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#60">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.INFINITY" class="constant">INFINITY</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.NEG_INFINITY" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#63">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_INFINITY" class="constant">NEG_INFINITY</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.X-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#66">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.X-1" class="constant">X</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.Y-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#69">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.Y-1" class="constant">Y</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.Z-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#72">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.Z-1" class="constant">Z</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.NEG_X-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#75">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_X-1" class="constant">NEG_X</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.NEG_Y-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#78">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_Y-1" class="constant">NEG_Y</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.NEG_Z-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#81">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NEG_Z-1" class="constant">NEG_Z</a>: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a> = _</h4></section><section id="associatedconstant.AXES-1" class="associatedconstant"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#84">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.AXES-1" class="constant">AXES</a>: [<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">3</a>] = _</h4></section><details class="toggle method-toggle" open><summary><section id="method.to_array" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#136">Source</a><h4 class="code-header">pub fn <a href="#method.to_array" class="fn">to_array</a>(&self) -> [<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">3</a>]</h4></section></summary><div class="docblock"><p><code>[x, y, z]</code></p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.move_towards" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#779">Source</a><h4 class="code-header">pub fn <a href="#method.move_towards" class="fn">move_towards</a>(&self, rhs: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>, d: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class="docblock"><p>Moves towards <code>rhs</code> based on the value <code>d</code>.</p>
|
||
<p>When <code>d</code> is <code>0.0</code>, the result will be equal to <code>self</code>. When <code>d</code> is equal to
|
||
<code>self.distance(rhs)</code>, the result will be equal to <code>rhs</code>. Will not go past <code>rhs</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.any_orthogonal_vector" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#947">Source</a><h4 class="code-header">pub fn <a href="#method.any_orthogonal_vector" class="fn">any_orthogonal_vector</a>(&self) -> <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class="docblock"><p>Returns some vector that is orthogonal to the given one.</p>
|
||
<p>The input vector must be finite and non-zero.</p>
|
||
<p>The output vector is not necessarily unit length. For that use
|
||
<a href="struct.Vec3A.html#method.any_orthonormal_vector" title="method bevy_math::Vec3A::any_orthonormal_vector"><code>Self::any_orthonormal_vector()</code></a> instead.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.any_orthonormal_vector" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#965">Source</a><h4 class="code-header">pub fn <a href="#method.any_orthonormal_vector" class="fn">any_orthonormal_vector</a>(&self) -> <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class="docblock"><p>Returns any unit vector that is orthogonal to the given one.</p>
|
||
<p>The input vector must be unit length.</p>
|
||
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
|
||
<p>Will panic if <code>self</code> is not normalized when <code>glam_assert</code> is enabled.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.any_orthonormal_pair" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#982">Source</a><h4 class="code-header">pub fn <a href="#method.any_orthonormal_pair" class="fn">any_orthonormal_pair</a>(&self) -> (<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>, <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>)</h4></section></summary><div class="docblock"><p>Given a unit vector return two other vectors that together form an orthonormal
|
||
basis. That is, all three vectors are orthogonal to each other and are normalized.</p>
|
||
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
|
||
<p>Will panic if <code>self</code> is not normalized when <code>glam_assert</code> is enabled.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_dvec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#997">Source</a><h4 class="code-header">pub fn <a href="#method.as_dvec3" class="fn">as_dvec3</a>(&self) -> <a class="struct" href="struct.DVec3.html" title="struct bevy_math::DVec3">DVec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>f64</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_i8vec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1004">Source</a><h4 class="code-header">pub fn <a href="#method.as_i8vec3" class="fn">as_i8vec3</a>(&self) -> <a class="struct" href="struct.I8Vec3.html" title="struct bevy_math::I8Vec3">I8Vec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>i8</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_u8vec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1011">Source</a><h4 class="code-header">pub fn <a href="#method.as_u8vec3" class="fn">as_u8vec3</a>(&self) -> <a class="struct" href="struct.U8Vec3.html" title="struct bevy_math::U8Vec3">U8Vec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>u8</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_i16vec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1018">Source</a><h4 class="code-header">pub fn <a href="#method.as_i16vec3" class="fn">as_i16vec3</a>(&self) -> <a class="struct" href="struct.I16Vec3.html" title="struct bevy_math::I16Vec3">I16Vec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>i16</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_u16vec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1025">Source</a><h4 class="code-header">pub fn <a href="#method.as_u16vec3" class="fn">as_u16vec3</a>(&self) -> <a class="struct" href="struct.U16Vec3.html" title="struct bevy_math::U16Vec3">U16Vec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>u16</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_ivec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1032">Source</a><h4 class="code-header">pub fn <a href="#method.as_ivec3" class="fn">as_ivec3</a>(&self) -> <a class="struct" href="struct.IVec3.html" title="struct bevy_math::IVec3">IVec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>i32</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_uvec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1039">Source</a><h4 class="code-header">pub fn <a href="#method.as_uvec3" class="fn">as_uvec3</a>(&self) -> <a class="struct" href="struct.UVec3.html" title="struct bevy_math::UVec3">UVec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>u32</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_i64vec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1046">Source</a><h4 class="code-header">pub fn <a href="#method.as_i64vec3" class="fn">as_i64vec3</a>(&self) -> <a class="struct" href="struct.I64Vec3.html" title="struct bevy_math::I64Vec3">I64Vec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>i64</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_u64vec3" class="method"><a class="src rightside" href="../src/glam/f32/sse2/vec3a.rs.html#1053">Source</a><h4 class="code-header">pub fn <a href="#method.as_u64vec3" class="fn">as_u64vec3</a>(&self) -> <a class="struct" href="struct.U64Vec3.html" title="struct bevy_math::U64Vec3">U64Vec3</a></h4></section></summary><div class="docblock"><p>Casts all elements of <code>self</code> to <code>u64</code>.</p>
|
||
</div></details></div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#impl-Clone-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#impl-Debug-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deref-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#779-784">Source</a><a href="#impl-Deref-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#780">Source</a><a href="#associatedtype.Target" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#781-783">Source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fn">deref</a>(&self) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#620">Source</a><a href="#impl-Deserialize%3C'de%3E-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#620">Source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="../serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><div class="where">where
|
||
__D: <a class="trait" href="../serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Distribution%3CDir3A%3E-for-Standard" class="impl"><a class="src rightside" href="../src/bevy_math/sampling/standard.rs.html#78-85">Source</a><a href="#impl-Distribution%3CDir3A%3E-for-Standard" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../rand/distributions/distribution/trait.Distribution.html" title="trait rand::distributions::distribution::Distribution">Distribution</a><<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>> for <a class="struct" href="../rand/distributions/struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sample" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/sampling/standard.rs.html#80-84">Source</a><a href="#method.sample" class="anchor">§</a><h4 class="code-header">fn <a href="../rand/distributions/distribution/trait.Distribution.html#tymethod.sample" class="fn">sample</a><R: <a class="trait" href="../rand/rng/trait.Rng.html" title="trait rand::rng::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut R</a>) -> <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_iter" class="method trait-impl"><a class="src rightside" href="../src/rand/distributions/distribution.rs.html#73-76">Source</a><a href="#method.sample_iter" class="anchor">§</a><h4 class="code-header">fn <a href="../rand/distributions/distribution/trait.Distribution.html#method.sample_iter" class="fn">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="../rand/distributions/distribution/struct.DistIter.html" title="struct rand::distributions::distribution::DistIter">DistIter</a><Self, R, T><div class="where">where
|
||
R: <a class="trait" href="../rand/rng/trait.Rng.html" title="trait rand::rng::Rng">Rng</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as
|
||
the source of randomness. <a href="../rand/distributions/distribution/trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.map" class="method trait-impl"><a class="src rightside" href="../src/rand/distributions/distribution.rs.html#102-105">Source</a><a href="#method.map" class="anchor">§</a><h4 class="code-header">fn <a href="../rand/distributions/distribution/trait.Distribution.html#method.map" class="fn">map</a><F, S>(self, func: F) -> <a class="struct" href="../rand/distributions/distribution/struct.DistMap.html" title="struct rand::distributions::distribution::DistMap">DistMap</a><Self, F, T, S><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code>
|
||
through the closure <code>F</code> <a href="../rand/distributions/distribution/trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Ease-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/curve/easing.rs.html#67-73">Source</a><a href="#impl-Ease-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="curve/easing/trait.Ease.html" title="trait bevy_math::curve::easing::Ease">Ease</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.interpolating_curve_unbounded" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/curve/easing.rs.html#68-72">Source</a><a href="#method.interpolating_curve_unbounded" class="anchor">§</a><h4 class="code-header">fn <a href="curve/easing/trait.Ease.html#tymethod.interpolating_curve_unbounded" class="fn">interpolating_curve_unbounded</a>(start: Self, end: Self) -> impl <a class="trait" href="curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><Self></h4></section></summary><div class='docblock'>Given <code>start</code> and <code>end</code> values, produce a curve with <a href="curve/interval/struct.Interval.html#associatedconstant.EVERYWHERE" title="associated constant bevy_math::curve::interval::Interval::EVERYWHERE">unlimited domain</a>
|
||
that: <a href="curve/easing/trait.Ease.html#tymethod.interpolating_curve_unbounded">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CDir3%3E-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#753-757">Source</a><a href="#impl-From%3CDir3%3E-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Dir3.html" title="struct bevy_math::Dir3">Dir3</a>> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#754-756">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Dir3.html" title="struct bevy_math::Dir3">Dir3</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CDir3A%3E-for-Dir3" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#759-763">Source</a><a href="#impl-From%3CDir3A%3E-for-Dir3" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>> for <a class="struct" href="struct.Dir3.html" title="struct bevy_math::Dir3">Dir3</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#760-762">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CDir3A%3E-for-Vec3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#773-777">Source</a><a href="#impl-From%3CDir3A%3E-for-Vec3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>> for <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#774-776">Source</a><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromReflect-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-FromReflect-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>: <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + MaybeTyped + RegisterForReflection,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.from_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/from_reflect/trait.FromReflect.html#tymethod.from_reflect" class="fn">from_reflect</a>(reflect: &dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self></h4></section></summary><div class='docblock'>Constructs a concrete instance of <code>Self</code> from a reflected value.</div></details><details class="toggle method-toggle" open><summary><section id="method.take_from_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/from_reflect.rs.html#42-44">Source</a><a href="#method.take_from_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/from_reflect/trait.FromReflect.html#method.take_from_reflect" class="fn">take_from_reflect</a>(
|
||
reflect: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>>></h4></section></summary><div class='docblock'>Attempts to downcast the given value to <code>Self</code> using,
|
||
constructing the value using <a href="../bevy_reflect/from_reflect/trait.FromReflect.html#tymethod.from_reflect" title="associated function bevy_reflect::from_reflect::FromReflect::from_reflect::from_reflect"><code>from_reflect</code></a> if that fails. <a href="../bevy_reflect/from_reflect/trait.FromReflect.html#method.take_from_reflect">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromRng-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/sampling/standard.rs.html#87">Source</a><a href="#impl-FromRng-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="sampling/standard/trait.FromRng.html" title="trait bevy_math::sampling::standard::FromRng">FromRng</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_rng" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/sampling/standard.rs.html#51-53">Source</a><a href="#method.from_rng" class="anchor">§</a><h4 class="code-header">fn <a href="sampling/standard/trait.FromRng.html#method.from_rng" class="fn">from_rng</a><R: <a class="trait" href="../rand/rng/trait.Rng.html" title="trait rand::rng::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(rng: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut R</a>) -> Self</h4></section></summary><div class='docblock'>Construct a value of this type uniformly at random using <code>rng</code> as the source of randomness.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-GetTypeRegistration-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-GetTypeRegistration-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/type_registry/trait.GetTypeRegistration.html" title="trait bevy_reflect::type_registry::GetTypeRegistration">GetTypeRegistration</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>: <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + MaybeTyped + RegisterForReflection,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_type_registration" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.get_type_registration" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_registry/trait.GetTypeRegistration.html#tymethod.get_type_registration" class="fn">get_type_registration</a>() -> <a class="struct" href="../bevy_reflect/type_registry/struct.TypeRegistration.html" title="struct bevy_reflect::type_registry::TypeRegistration">TypeRegistration</a></h4></section></summary><div class='docblock'>Returns the default <a href="../bevy_reflect/type_registry/struct.TypeRegistration.html" title="struct bevy_reflect::type_registry::TypeRegistration"><code>TypeRegistration</code></a> for this type.</div></details><details class="toggle method-toggle" open><summary><section id="method.register_type_dependencies" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.register_type_dependencies" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_registry/trait.GetTypeRegistration.html#method.register_type_dependencies" class="fn">register_type_dependencies</a>(registry: &mut <a class="struct" href="../bevy_reflect/type_registry/struct.TypeRegistry.html" title="struct bevy_reflect::type_registry::TypeRegistry">TypeRegistry</a>)</h4></section></summary><div class='docblock'>Registers other types needed by this type. <a href="../bevy_reflect/type_registry/trait.GetTypeRegistration.html#method.register_type_dependencies">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3CDir3A%3E-for-Quat" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#807-822">Source</a><a href="#impl-Mul%3CDir3A%3E-for-Quat" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>> for <a class="struct" href="struct.Quat.html" title="struct bevy_math::Quat">Quat</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.mul-2" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#811-821">Source</a><a href="#method.mul-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, direction: <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class="docblock"><p>Rotates the <a href="struct.Dir3A.html" title="struct bevy_math::Dir3A"><code>Dir3A</code></a> using a <a href="struct.Quat.html" title="struct bevy_math::Quat"><code>Quat</code></a>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#808">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3CDir3A%3E-for-f32" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#800-805">Source</a><a href="#impl-Mul%3CDir3A%3E-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#801">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul-1" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#802-804">Source</a><a href="#method.mul-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, rhs: <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Mul%3Cf32%3E-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#793-798">Source</a><a href="#impl-Mul%3Cf32%3E-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#794">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>*</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.mul" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#795-797">Source</a><a href="#method.mul" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#tymethod.mul" class="fn">mul</a>(self, rhs: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>*</code> operation. <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Mul.html#tymethod.mul">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Neg-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#786-791">Source</a><a href="#impl-Neg-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#787">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Neg.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.neg" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#788-790">Source</a><a href="#method.neg" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Neg.html#tymethod.neg" class="fn">neg</a>(self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Neg.html#associatedtype.Output" title="type core::ops::arith::Neg::Output">Output</a></h4></section></summary><div class='docblock'>Performs the unary <code>-</code> operation. <a href="https://doc.rust-lang.org/1.84.0/core/ops/arith/trait.Neg.html#tymethod.neg">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#impl-PartialEq-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialReflect-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-PartialReflect-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>: <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + MaybeTyped + RegisterForReflection,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_represented_type_info" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.get_represented_type_info" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.get_represented_type_info" class="fn">get_represented_type_info</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="enum" href="../bevy_reflect/type_info/enum.TypeInfo.html" title="enum bevy_reflect::type_info::TypeInfo">TypeInfo</a>></h4></section></summary><div class='docblock'>Returns the <a href="../bevy_reflect/type_info/enum.TypeInfo.html" title="enum bevy_reflect::type_info::TypeInfo"><code>TypeInfo</code></a> of the type <em>represented</em> by this value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.get_represented_type_info">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_value" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.clone_value" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.clone_value" class="fn">clone_value</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>></h4></section></summary><div class='docblock'>Clones the value as a <code>Reflect</code> trait object. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.clone_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_apply" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.try_apply" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.try_apply" class="fn">try_apply</a>(&mut self, value: &dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="enum" href="../bevy_reflect/reflect/enum.ApplyError.html" title="enum bevy_reflect::reflect::ApplyError">ApplyError</a>></h4></section></summary><div class='docblock'>Tries to <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.apply" title="method bevy_reflect::reflect::PartialReflect::apply"><code>apply</code></a> a reflected value to this value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.try_apply">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_kind" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.reflect_kind" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.reflect_kind" class="fn">reflect_kind</a>(&self) -> <a class="enum" href="../bevy_reflect/kind/enum.ReflectKind.html" title="enum bevy_reflect::kind::ReflectKind">ReflectKind</a></h4></section></summary><div class='docblock'>Returns a zero-sized enumeration of “kinds” of type. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.reflect_kind">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_ref" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.reflect_ref" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.reflect_ref" class="fn">reflect_ref</a>(&self) -> <a class="enum" href="../bevy_reflect/kind/enum.ReflectRef.html" title="enum bevy_reflect::kind::ReflectRef">ReflectRef</a><'_></h4></section></summary><div class='docblock'>Returns an immutable enumeration of “kinds” of type. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.reflect_ref">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.reflect_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.reflect_mut" class="fn">reflect_mut</a>(&mut self) -> <a class="enum" href="../bevy_reflect/kind/enum.ReflectMut.html" title="enum bevy_reflect::kind::ReflectMut">ReflectMut</a><'_></h4></section></summary><div class='docblock'>Returns a mutable enumeration of “kinds” of type. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.reflect_mut">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_owned" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.reflect_owned" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.reflect_owned" class="fn">reflect_owned</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><Self>) -> <a class="enum" href="../bevy_reflect/kind/enum.ReflectOwned.html" title="enum bevy_reflect::kind::ReflectOwned">ReflectOwned</a></h4></section></summary><div class='docblock'>Returns an owned enumeration of “kinds” of type. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.reflect_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_into_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.try_into_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.try_into_reflect" class="fn">try_into_reflect</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><Self>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>>></h4></section></summary><div class='docblock'>Attempts to cast this type to a boxed, <a href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">fully-reflected</a> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_as_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.try_as_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.try_as_reflect" class="fn">try_as_reflect</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>></h4></section></summary><div class='docblock'>Attempts to cast this type to a <a href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">fully-reflected</a> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_as_reflect_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.try_as_reflect_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.try_as_reflect_mut" class="fn">try_as_reflect_mut</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>></h4></section></summary><div class='docblock'>Attempts to cast this type to a mutable, <a href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">fully-reflected</a> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_partial_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.into_partial_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.into_partial_reflect" class="fn">into_partial_reflect</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><Self>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>></h4></section></summary><div class='docblock'>Casts this type to a boxed, reflected value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.into_partial_reflect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_partial_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.as_partial_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.as_partial_reflect" class="fn">as_partial_reflect</a>(&self) -> &dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a></h4></section></summary><div class='docblock'>Casts this type to a reflected value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.as_partial_reflect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_partial_reflect_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.as_partial_reflect_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.as_partial_reflect_mut" class="fn">as_partial_reflect_mut</a>(&mut self) -> &mut dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a></h4></section></summary><div class='docblock'>Casts this type to a mutable, reflected value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#tymethod.as_partial_reflect_mut">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_partial_eq" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.reflect_partial_eq" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.reflect_partial_eq" class="fn">reflect_partial_eq</a>(&self, value: &dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>></h4></section></summary><div class='docblock'>Returns a “partial equality” comparison result. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.reflect_partial_eq">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.debug" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.debug" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.debug" class="fn">debug</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Debug formatter for the value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.debug">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.apply" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/reflect.rs.html#181">Source</a><a href="#method.apply" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.apply" class="fn">apply</a>(&mut self, value: &(dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a> + 'static))</h4></section></summary><div class='docblock'>Applies a reflected value to this value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.apply">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_hash" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/reflect.rs.html#236">Source</a><a href="#method.reflect_hash" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.reflect_hash" class="fn">reflect_hash</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a>></h4></section></summary><div class='docblock'>Returns a hash of the value (which includes the type). <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.reflect_hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serializable" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/reflect.rs.html#275">Source</a><a href="#method.serializable" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.serializable" class="fn">serializable</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../bevy_reflect/serde/ser/serializable/enum.Serializable.html" title="enum bevy_reflect::serde::ser::serializable::Serializable">Serializable</a><'_>></h4></section></summary><div class='docblock'>Returns a serializable version of the value. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.serializable">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_dynamic" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/reflect.rs.html#291">Source</a><a href="#method.is_dynamic" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.is_dynamic" class="fn">is_dynamic</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Indicates whether or not this type is a <em>dynamic</em> type. <a href="../bevy_reflect/reflect/trait.PartialReflect.html#method.is_dynamic">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Reflect-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-Reflect-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>: <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + MaybeTyped + RegisterForReflection,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.into_any" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.into_any" class="fn">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><Self>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Returns the value as a <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any"><code>Box<dyn Any></code></a>. <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.into_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_any" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.as_any" class="fn">as_any</a>(&self) -> &dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a></h4></section></summary><div class='docblock'>Returns the value as a <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any"><code>&dyn Any</code></a>. <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.as_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.as_any_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.as_any_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.as_any_mut" class="fn">as_any_mut</a>(&mut self) -> &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a></h4></section></summary><div class='docblock'>Returns the value as a <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any"><code>&mut dyn Any</code></a>. <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.as_any_mut">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.into_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.into_reflect" class="fn">into_reflect</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><Self>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>></h4></section></summary><div class='docblock'>Casts this type to a boxed, fully-reflected value.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_reflect" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.as_reflect" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.as_reflect" class="fn">as_reflect</a>(&self) -> &dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a></h4></section></summary><div class='docblock'>Casts this type to a fully-reflected value.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_reflect_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.as_reflect_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.as_reflect_mut" class="fn">as_reflect_mut</a>(&mut self) -> &mut dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a></h4></section></summary><div class='docblock'>Casts this type to a mutable, fully-reflected value.</div></details><details class="toggle method-toggle" open><summary><section id="method.set" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.set" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.set" class="fn">set</a>(&mut self, value: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>>></h4></section></summary><div class='docblock'>Performs a type-checked assignment of a reflected value to this value. <a href="../bevy_reflect/reflect/trait.Reflect.html#tymethod.set">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#620">Source</a><a href="#impl-Serialize-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#620">Source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>><div class="where">where
|
||
__S: <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-StableInterpolate-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/common_traits.rs.html#306-311">Source</a><a href="#impl-StableInterpolate-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="common_traits/trait.StableInterpolate.html" title="trait bevy_math::common_traits::StableInterpolate">StableInterpolate</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.interpolate_stable" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/common_traits.rs.html#308-310">Source</a><a href="#method.interpolate_stable" class="anchor">§</a><h4 class="code-header">fn <a href="common_traits/trait.StableInterpolate.html#tymethod.interpolate_stable" class="fn">interpolate_stable</a>(&self, other: &Self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> Self</h4></section></summary><div class='docblock'>Interpolate between this value and the <code>other</code> given value using the parameter <code>t</code>. At
|
||
<code>t = 0.0</code>, a value equivalent to <code>self</code> is recovered, while <code>t = 1.0</code> recovers a value
|
||
equivalent to <code>other</code>, with intermediate values interpolating between the two.
|
||
See the <a href="common_traits/trait.StableInterpolate.html" title="trait bevy_math::common_traits::StableInterpolate">trait-level documentation</a> for details.</div></details><details class="toggle method-toggle" open><summary><section id="method.interpolate_stable_assign" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/common_traits.rs.html#231-233">Source</a><a href="#method.interpolate_stable_assign" class="anchor">§</a><h4 class="code-header">fn <a href="common_traits/trait.StableInterpolate.html#method.interpolate_stable_assign" class="fn">interpolate_stable_assign</a>(&mut self, other: &Self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)</h4></section></summary><div class='docblock'>A version of <a href="common_traits/trait.StableInterpolate.html#tymethod.interpolate_stable" title="method bevy_math::common_traits::StableInterpolate::interpolate_stable"><code>interpolate_stable</code></a> that assigns the result to <code>self</code> for convenience.</div></details><details class="toggle method-toggle" open><summary><section id="method.smooth_nudge" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/common_traits.rs.html#260-262">Source</a><a href="#method.smooth_nudge" class="anchor">§</a><h4 class="code-header">fn <a href="common_traits/trait.StableInterpolate.html#method.smooth_nudge" class="fn">smooth_nudge</a>(&mut self, target: &Self, decay_rate: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>, delta: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>)</h4></section></summary><div class='docblock'>Smoothly nudge this value towards the <code>target</code> at a given decay rate. The <code>decay_rate</code>
|
||
parameter controls how fast the distance between <code>self</code> and <code>target</code> decays relative to
|
||
the units of <code>delta</code>; the intended usage is for <code>decay_rate</code> to generally remain fixed,
|
||
while <code>delta</code> is something like <code>delta_time</code> from an updating system. This produces a
|
||
smooth following of the target that is independent of framerate. <a href="common_traits/trait.StableInterpolate.html#method.smooth_nudge">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CVec3A%3E-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#765-771">Source</a><a href="#impl-TryFrom%3CVec3A%3E-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#766">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="enum.InvalidDirectionError.html" title="enum bevy_math::InvalidDirectionError">InvalidDirectionError</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#768-770">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: <a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TupleStruct-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-TupleStruct-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/tuple_struct/trait.TupleStruct.html" title="trait bevy_reflect::tuple_struct::TupleStruct">TupleStruct</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>: <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + MaybeTyped + RegisterForReflection,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.field" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.field" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.TupleStruct.html#tymethod.field" class="fn">field</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>></h4></section></summary><div class='docblock'>Returns a reference to the value of the field with index <code>index</code> as a
|
||
<code>&dyn Reflect</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.field_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.field_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.TupleStruct.html#tymethod.field_mut" class="fn">field_mut</a>(&mut self, index: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a>></h4></section></summary><div class='docblock'>Returns a mutable reference to the value of the field with index <code>index</code>
|
||
as a <code>&mut dyn Reflect</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.field_len" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.field_len" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.TupleStruct.html#tymethod.field_len" class="fn">field_len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Returns the number of fields in the tuple struct.</div></details><details class="toggle method-toggle" open><summary><section id="method.iter_fields" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.iter_fields" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.TupleStruct.html#tymethod.iter_fields" class="fn">iter_fields</a>(&self) -> <a class="struct" href="../bevy_reflect/tuple_struct/struct.TupleStructFieldIter.html" title="struct bevy_reflect::tuple_struct::TupleStructFieldIter">TupleStructFieldIter</a><'_></h4></section></summary><div class='docblock'>Returns an iterator over the values of the tuple struct’s fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.clone_dynamic" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.clone_dynamic" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.TupleStruct.html#tymethod.clone_dynamic" class="fn">clone_dynamic</a>(&self) -> <a class="struct" href="../bevy_reflect/tuple_struct/struct.DynamicTupleStruct.html" title="struct bevy_reflect::tuple_struct::DynamicTupleStruct">DynamicTupleStruct</a></h4></section></summary><div class='docblock'>Clones the struct into a <a href="../bevy_reflect/tuple_struct/struct.DynamicTupleStruct.html" title="struct bevy_reflect::tuple_struct::DynamicTupleStruct"><code>DynamicTupleStruct</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_represented_tuple_struct_info" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/tuple_struct.rs.html#62">Source</a><a href="#method.get_represented_tuple_struct_info" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.TupleStruct.html#method.get_represented_tuple_struct_info" class="fn">get_represented_tuple_struct_info</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="struct" href="../bevy_reflect/tuple_struct/struct.TupleStructInfo.html" title="struct bevy_reflect::tuple_struct::TupleStructInfo">TupleStructInfo</a>></h4></section></summary><div class='docblock'>Will return <code>None</code> if <a href="../bevy_reflect/type_info/enum.TypeInfo.html" title="enum bevy_reflect::type_info::TypeInfo"><code>TypeInfo</code></a> is not available.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TypePath-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-TypePath-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.type_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.TypePath.html#tymethod.type_path" class="fn">type_path</a>() -> &'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><div class='docblock'>Returns the fully qualified path of the underlying type. <a href="../bevy_reflect/type_path/trait.TypePath.html#tymethod.type_path">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.short_type_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.short_type_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.TypePath.html#tymethod.short_type_path" class="fn">short_type_path</a>() -> &'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><div class='docblock'>Returns a short, pretty-print enabled path to the type. <a href="../bevy_reflect/type_path/trait.TypePath.html#tymethod.short_type_path">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.type_ident" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.type_ident" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.TypePath.html#method.type_ident" class="fn">type_ident</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>Returns the name of the type, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is <a href="../bevy_reflect/type_path/trait.TypePath.html#anonymity" title="trait bevy_reflect::type_path::TypePath">anonymous</a>. <a href="../bevy_reflect/type_path/trait.TypePath.html#method.type_ident">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.crate_name" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.crate_name" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.TypePath.html#method.crate_name" class="fn">crate_name</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>Returns the name of the crate the type is in, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is <a href="../bevy_reflect/type_path/trait.TypePath.html#anonymity" title="trait bevy_reflect::type_path::TypePath">anonymous</a>. <a href="../bevy_reflect/type_path/trait.TypePath.html#method.crate_name">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.module_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.module_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.TypePath.html#method.module_path" class="fn">module_path</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>Returns the path to the module the type is in, or <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> if it is <a href="../bevy_reflect/type_path/trait.TypePath.html#anonymity" title="trait bevy_reflect::type_path::TypePath">anonymous</a>. <a href="../bevy_reflect/type_path/trait.TypePath.html#method.module_path">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Typed-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#impl-Typed-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_reflect/type_info/trait.Typed.html" title="trait bevy_reflect::type_info::Typed">Typed</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a><div class="where">where
|
||
<a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
|
||
<a class="struct" href="struct.Vec3A.html" title="struct bevy_math::Vec3A">Vec3A</a>: <a class="trait" href="../bevy_reflect/from_reflect/trait.FromReflect.html" title="trait bevy_reflect::from_reflect::FromReflect">FromReflect</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + MaybeTyped + RegisterForReflection,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_info" class="method trait-impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#621">Source</a><a href="#method.type_info" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_info/trait.Typed.html#tymethod.type_info" class="fn">type_info</a>() -> &'static <a class="enum" href="../bevy_reflect/type_info/enum.TypeInfo.html" title="enum bevy_reflect::type_info::TypeInfo">TypeInfo</a></h4></section></summary><div class='docblock'>Returns the compile-time <a href="../bevy_reflect/type_info/enum.TypeInfo.html" title="enum bevy_reflect::type_info::TypeInfo">info</a> for the underlying type.</div></details></div></details><section id="impl-Copy-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#impl-Copy-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-Primitive3d-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#628">Source</a><a href="#impl-Primitive3d-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="primitives/trait.Primitive3d.html" title="trait bevy_math::primitives::Primitive3d">Primitive3d</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-StructuralPartialEq-for-Dir3A" class="impl"><a class="src rightside" href="../src/bevy_math/direction.rs.html#619">Source</a><a href="#impl-StructuralPartialEq-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Dir3A" class="impl"><a href="#impl-Freeze-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-RefUnwindSafe-for-Dir3A" class="impl"><a href="#impl-RefUnwindSafe-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-Send-for-Dir3A" class="impl"><a href="#impl-Send-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-Sync-for-Dir3A" class="impl"><a href="#impl-Sync-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-Unpin-for-Dir3A" class="impl"><a href="#impl-Unpin-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section><section id="impl-UnwindSafe-for-Dir3A" class="impl"><a href="#impl-UnwindSafe-for-Dir3A" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Dir3A.html" title="struct bevy_math::Dir3A">Dir3A</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Downcast-for-T" class="impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#189">Source</a><a href="#impl-Downcast-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../downcast_rs/trait.Downcast.html" title="trait downcast_rs::Downcast">Downcast</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any-1" class="method trait-impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#190">Source</a><a href="#method.into_any-1" class="anchor">§</a><h4 class="code-header">fn <a href="../downcast_rs/trait.Downcast.html#tymethod.into_any" class="fn">into_any</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Convert <code>Box<dyn Trait></code> (where <code>Trait: Downcast</code>) to <code>Box<dyn Any></code>. <code>Box<dyn Any></code> can
|
||
then be further <code>downcast</code> into <code>Box<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_any_rc" class="method trait-impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#191">Source</a><a href="#method.into_any_rc" class="anchor">§</a><h4 class="code-header">fn <a href="../downcast_rs/trait.Downcast.html#tymethod.into_any_rc" class="fn">into_any_rc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a>></h4></section></summary><div class='docblock'>Convert <code>Rc<Trait></code> (where <code>Trait: Downcast</code>) to <code>Rc<Any></code>. <code>Rc<Any></code> can then be
|
||
further <code>downcast</code> into <code>Rc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any-1" class="method trait-impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#192">Source</a><a href="#method.as_any-1" class="anchor">§</a><h4 class="code-header">fn <a href="../downcast_rs/trait.Downcast.html#tymethod.as_any" class="fn">as_any</a>(&self) -> &(dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&Trait</code> (where <code>Trait: Downcast</code>) to <code>&Any</code>. This is needed since Rust cannot
|
||
generate <code>&Any</code>’s vtable from <code>&Trait</code>’s.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_any_mut-1" class="method trait-impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#193">Source</a><a href="#method.as_any_mut-1" class="anchor">§</a><h4 class="code-header">fn <a href="../downcast_rs/trait.Downcast.html#tymethod.as_any_mut" class="fn">as_any_mut</a>(&mut self) -> &mut (dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4></section></summary><div class='docblock'>Convert <code>&mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&Any</code>. This is needed since Rust cannot
|
||
generate <code>&mut Any</code>’s vtable from <code>&mut Trait</code>’s.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DowncastSync-for-T" class="impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#203">Source</a><a href="#impl-DowncastSync-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../downcast_rs/trait.DowncastSync.html" title="trait downcast_rs::DowncastSync">DowncastSync</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_any_arc" class="method trait-impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#204">Source</a><a href="#method.into_any_arc" class="anchor">§</a><h4 class="code-header">fn <a href="../downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc" class="fn">into_any_arc</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T>) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>></h4></section></summary><div class='docblock'>Convert <code>Arc<Trait></code> (where <code>Trait: Downcast</code>) to <code>Arc<Any></code>. <code>Arc<Any></code> can then be
|
||
further <code>downcast</code> into <code>Arc<ConcreteType></code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynamicTypePath-for-T" class="impl"><a class="src rightside" href="../src/bevy_reflect/type_path.rs.html#157">Source</a><a href="#impl-DynamicTypePath-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../bevy_reflect/type_path/trait.DynamicTypePath.html" title="trait bevy_reflect::type_path::DynamicTypePath">DynamicTypePath</a> for T<div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.reflect_type_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_path.rs.html#159">Source</a><a href="#method.reflect_type_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.DynamicTypePath.html#tymethod.reflect_type_path" class="fn">reflect_type_path</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><div class='docblock'>See <a href="../bevy_reflect/type_path/trait.TypePath.html#tymethod.type_path" title="associated function bevy_reflect::type_path::TypePath::type_path"><code>TypePath::type_path</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_short_type_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_path.rs.html#164">Source</a><a href="#method.reflect_short_type_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.DynamicTypePath.html#tymethod.reflect_short_type_path" class="fn">reflect_short_type_path</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><div class='docblock'>See <a href="../bevy_reflect/type_path/trait.TypePath.html#tymethod.short_type_path" title="associated function bevy_reflect::type_path::TypePath::short_type_path"><code>TypePath::short_type_path</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_type_ident" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_path.rs.html#169">Source</a><a href="#method.reflect_type_ident" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.DynamicTypePath.html#tymethod.reflect_type_ident" class="fn">reflect_type_ident</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>See <a href="../bevy_reflect/type_path/trait.TypePath.html#method.type_ident" title="associated function bevy_reflect::type_path::TypePath::type_ident"><code>TypePath::type_ident</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_crate_name" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_path.rs.html#174">Source</a><a href="#method.reflect_crate_name" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.DynamicTypePath.html#tymethod.reflect_crate_name" class="fn">reflect_crate_name</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>See <a href="../bevy_reflect/type_path/trait.TypePath.html#method.crate_name" title="associated function bevy_reflect::type_path::TypePath::crate_name"><code>TypePath::crate_name</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_module_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_path.rs.html#179">Source</a><a href="#method.reflect_module_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_path/trait.DynamicTypePath.html#tymethod.reflect_module_path" class="fn">reflect_module_path</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>></h4></section></summary><div class='docblock'>See <a href="../bevy_reflect/type_path/trait.TypePath.html#method.module_path" title="associated function bevy_reflect::type_path::TypePath::module_path"><code>TypePath::module_path</code></a>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynamicTyped-for-T" class="impl"><a class="src rightside" href="../src/bevy_reflect/type_info.rs.html#158">Source</a><a href="#impl-DynamicTyped-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../bevy_reflect/type_info/trait.DynamicTyped.html" title="trait bevy_reflect::type_info::DynamicTyped">DynamicTyped</a> for T<div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/type_info/trait.Typed.html" title="trait bevy_reflect::type_info::Typed">Typed</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.reflect_type_info" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_info.rs.html#160">Source</a><a href="#method.reflect_type_info" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_info/trait.DynamicTyped.html#tymethod.reflect_type_info" class="fn">reflect_type_info</a>(&self) -> &'static <a class="enum" href="../bevy_reflect/type_info/enum.TypeInfo.html" title="enum bevy_reflect::type_info::TypeInfo">TypeInfo</a></h4></section></summary><div class='docblock'>See <a href="../bevy_reflect/type_info/trait.Typed.html#tymethod.type_info" title="associated function bevy_reflect::type_info::Typed::type_info"><code>Typed::type_info</code></a>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetPath-for-T" class="impl"><a class="src rightside" href="../src/bevy_reflect/path/mod.rs.html#283">Source</a><a href="#impl-GetPath-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../bevy_reflect/path/trait.GetPath.html" title="trait bevy_reflect::path::GetPath">GetPath</a> for T<div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.reflect_path" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/path/mod.rs.html#244">Source</a><a href="#method.reflect_path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/path/trait.GetPath.html#method.reflect_path" class="fn">reflect_path</a><'p>(
|
||
&self,
|
||
path: impl <a class="trait" href="../bevy_reflect/path/trait.ReflectPath.html" title="trait bevy_reflect::path::ReflectPath">ReflectPath</a><'p>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&(dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a> + 'static), <a class="enum" href="../bevy_reflect/path/enum.ReflectPathError.html" title="enum bevy_reflect::path::ReflectPathError">ReflectPathError</a><'p>></h4></section></summary><div class='docblock'>Returns a reference to the value specified by <code>path</code>. <a href="../bevy_reflect/path/trait.GetPath.html#method.reflect_path">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reflect_path_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/path/mod.rs.html#252-255">Source</a><a href="#method.reflect_path_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/path/trait.GetPath.html#method.reflect_path_mut" class="fn">reflect_path_mut</a><'p>(
|
||
&mut self,
|
||
path: impl <a class="trait" href="../bevy_reflect/path/trait.ReflectPath.html" title="trait bevy_reflect::path::ReflectPath">ReflectPath</a><'p>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><&mut (dyn <a class="trait" href="../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a> + 'static), <a class="enum" href="../bevy_reflect/path/enum.ReflectPathError.html" title="enum bevy_reflect::path::ReflectPathError">ReflectPathError</a><'p>></h4></section></summary><div class='docblock'>Returns a mutable reference to the value specified by <code>path</code>. <a href="../bevy_reflect/path/trait.GetPath.html#method.reflect_path_mut">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.path" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/path/mod.rs.html#266">Source</a><a href="#method.path" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/path/trait.GetPath.html#method.path" class="fn">path</a><'p, T>(
|
||
&self,
|
||
path: impl <a class="trait" href="../bevy_reflect/path/trait.ReflectPath.html" title="trait bevy_reflect::path::ReflectPath">ReflectPath</a><'p>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>, <a class="enum" href="../bevy_reflect/path/enum.ReflectPathError.html" title="enum bevy_reflect::path::ReflectPathError">ReflectPathError</a><'p>><div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>,</div></h4></section></summary><div class='docblock'>Returns a statically typed reference to the value specified by <code>path</code>. <a href="../bevy_reflect/path/trait.GetPath.html#method.path">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.path_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/path/mod.rs.html#277">Source</a><a href="#method.path_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/path/trait.GetPath.html#method.path_mut" class="fn">path_mut</a><'p, T>(
|
||
&mut self,
|
||
path: impl <a class="trait" href="../bevy_reflect/path/trait.ReflectPath.html" title="trait bevy_reflect::path::ReflectPath">ReflectPath</a><'p>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a>, <a class="enum" href="../bevy_reflect/path/enum.ReflectPathError.html" title="enum bevy_reflect::path::ReflectPathError">ReflectPathError</a><'p>><div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>,</div></h4></section></summary><div class='docblock'>Returns a statically typed mutable reference to the value specified by <code>path</code>. <a href="../bevy_reflect/path/trait.GetPath.html#method.path_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetTupleStructField-for-S" class="impl"><a class="src rightside" href="../src/bevy_reflect/tuple_struct.rs.html#197">Source</a><a href="#impl-GetTupleStructField-for-S" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="../bevy_reflect/tuple_struct/trait.GetTupleStructField.html" title="trait bevy_reflect::tuple_struct::GetTupleStructField">GetTupleStructField</a> for S<div class="where">where
|
||
S: <a class="trait" href="../bevy_reflect/tuple_struct/trait.TupleStruct.html" title="trait bevy_reflect::tuple_struct::TupleStruct">TupleStruct</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.get_field" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/tuple_struct.rs.html#198">Source</a><a href="#method.get_field" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.GetTupleStructField.html#tymethod.get_field" class="fn">get_field</a><T>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>><div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>,</div></h4></section></summary><div class='docblock'>Returns a reference to the value of the field with index <code>index</code>,
|
||
downcast to <code>T</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_field_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/tuple_struct.rs.html#203">Source</a><a href="#method.get_field_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/tuple_struct/trait.GetTupleStructField.html#tymethod.get_field_mut" class="fn">get_field_mut</a><T>(&mut self, index: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a>><div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a>,</div></h4></section></summary><div class='docblock'>Returns a mutable reference to the value of the field with index
|
||
<code>index</code>, downcast to <code>T</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#325">Source</a><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#86">Source</a><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.Instrument.html#method.instrument" class="fn">instrument</a>(self, span: <a class="struct" href="../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="../tracing/span/struct.Span.html" title="struct tracing::span::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#128">Source</a><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fn">in_current_span</a>(self) -> <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="../tracing/span/struct.Span.html#method.current" title="associated function tracing::span::Span::current">current</a> <a href="../tracing/span/struct.Span.html" title="struct tracing::span::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="../src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="../src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="../either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="../either/enum.Either.html" title="enum either::Either">Either</a><Self, Self></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="../either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left</code> is <code>true</code>.
|
||
Converts <code>self</code> into a <a href="../either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="../either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="../src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="../either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a><F>(self, into_left: F) -> <a class="enum" href="../either/enum.Either.html" title="enum either::Either">Either</a><Self, Self><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="../either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left(&self)</code> returns <code>true</code>.
|
||
Converts <code>self</code> into a <a href="../either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="../either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="../either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Receiver-for-P" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#374-376">Source</a><a href="#impl-Receiver-for-P" class="anchor">§</a><h3 class="code-header">impl<P, T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html" title="trait core::ops::deref::Receiver">Receiver</a> for P<div class="where">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#378">Source</a><a href="#associatedtype.Target-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>arbitrary_self_types</code>)</span></div></span><div class='docblock'>The target type on which the method may be called.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Serialize-for-T" class="impl"><a class="src rightside" href="../src/erased_serde/ser.rs.html#224-226">Source</a><a href="#impl-Serialize-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../erased_serde/ser/trait.Serialize.html" title="trait erased_serde::ser::Serialize">Serialize</a> for T<div class="where">where
|
||
T: <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><section id="method.erased_serialize" class="method trait-impl"><a class="src rightside" href="../src/erased_serde/ser.rs.html#228">Source</a><a href="#method.erased_serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../erased_serde/ser/trait.Serialize.html#tymethod.erased_serialize" class="fn">erased_serialize</a>(&self, serializer: &mut dyn <a class="trait" href="../erased_serde/ser/trait.Serializer.html" title="trait erased_serde::ser::Serializer">Serializer</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, <a class="struct" href="../erased_serde/error/struct.Error.html" title="struct erased_serde::error::Error">Error</a>></h4></section><section id="method.do_erased_serialize" class="method trait-impl"><a class="src rightside" href="../src/erased_serde/ser.rs.html#236">Source</a><a href="#method.do_erased_serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../erased_serde/ser/trait.Serialize.html#tymethod.do_erased_serialize" class="fn">do_erased_serialize</a>(
|
||
&self,
|
||
serializer: &mut dyn <a class="trait" href="../erased_serde/ser/trait.Serializer.html" title="trait erased_serde::ser::Serializer">Serializer</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, ErrorImpl></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TypeData-for-T" class="impl"><a class="src rightside" href="../src/bevy_reflect/type_registry.rs.html#650-652">Source</a><a href="#impl-TypeData-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../bevy_reflect/type_registry/trait.TypeData.html" title="trait bevy_reflect::type_registry::TypeData">TypeData</a> for T<div class="where">where
|
||
T: 'static + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="method.clone_type_data" class="method trait-impl"><a class="src rightside" href="../src/bevy_reflect/type_registry.rs.html#654">Source</a><a href="#method.clone_type_data" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_reflect/type_registry/trait.TypeData.html#tymethod.clone_type_data" class="fn">clone_type_data</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../bevy_reflect/type_registry/trait.TypeData.html" title="trait bevy_reflect::type_registry::TypeData">TypeData</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a class="src rightside" href="../src/ppv_lite86/types.rs.html#221-223">Source</a><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<V, T> <a class="trait" href="../ppv_lite86/types/trait.VZip.html" title="trait ppv_lite86::types::VZip">VZip</a><V> for T<div class="where">where
|
||
V: <a class="trait" href="../ppv_lite86/types/trait.MultiLane.html" title="trait ppv_lite86::types::MultiLane">MultiLane</a><T>,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a class="src rightside" href="../src/ppv_lite86/types.rs.html#226">Source</a><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a href="../ppv_lite86/types/trait.VZip.html#tymethod.vzip" class="fn">vzip</a>(self) -> V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#393">Source</a><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#176-178">Source</a><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fn">with_subscriber</a><S>(self, subscriber: S) -> <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="../tracing_core/subscriber/trait.Subscriber.html" title="trait tracing_core::subscriber::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#228">Source</a><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="../tracing/dispatcher/index.html#setting-the-default-subscriber" title="mod tracing::dispatcher">default</a> <a href="../tracing_core/subscriber/trait.Subscriber.html" title="trait tracing_core::subscriber::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details><section id="impl-ConditionalSend-for-T" class="impl"><a class="src rightside" href="../src/bevy_utils/lib.rs.html#65">Source</a><a href="#impl-ConditionalSend-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../bevy_utils/conditional_send/trait.ConditionalSend.html" title="trait bevy_utils::conditional_send::ConditionalSend">ConditionalSend</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-DeserializeOwned-for-T" class="impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#614">Source</a><a href="#impl-DeserializeOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<div class="where">where
|
||
T: for<'de> <a class="trait" href="../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h3></section><section id="impl-Reflectable-for-T" class="impl"><a class="src rightside" href="../src/bevy_reflect/reflectable.rs.html#33">Source</a><a href="#impl-Reflectable-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../bevy_reflect/reflectable/trait.Reflectable.html" title="trait bevy_reflect::reflectable::Reflectable">Reflectable</a> for T<div class="where">where
|
||
T: <a class="trait" href="../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a> + <a class="trait" href="../bevy_reflect/type_registry/trait.GetTypeRegistration.html" title="trait bevy_reflect::type_registry::GetTypeRegistration">GetTypeRegistration</a> + <a class="trait" href="../bevy_reflect/type_info/trait.Typed.html" title="trait bevy_reflect::type_info::Typed">Typed</a> + <a class="trait" href="../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a>,</div></h3></section></div></section></div></main></body></html> |