282 lines
184 KiB
HTML
282 lines
184 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 segment of a cubic curve, used to hold precomputed coefficients for fast interpolation. It is a `Curve` with domain `[0, 1]`."><title>CubicSegment in bevy_math::cubic_splines - 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="#">Cubic<wbr>Segment</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.coeff" title="coeff">coeff</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.acceleration" title="acceleration">acceleration</a></li><li><a href="#method.ease" title="ease">ease</a></li><li><a href="#method.new_bezier" title="new_bezier">new_bezier</a></li><li><a href="#method.position" title="position">position</a></li><li><a href="#method.velocity" title="velocity">velocity</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-CubicSegment%3CP%3E" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-CubicSegment%3CP%3E" title="Copy">Copy</a></li><li><a href="#impl-Curve%3CP%3E-for-CubicSegment%3CP%3E" title="Curve<P>">Curve<P></a></li><li><a href="#impl-Debug-for-CubicSegment%3CP%3E" title="Debug">Debug</a></li><li><a href="#impl-Default-for-CubicSegment%3CP%3E" title="Default">Default</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-CubicSegment%3CP%3E" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Extend%3CCubicSegment%3CP%3E%3E-for-CubicCurve%3CP%3E" title="Extend<CubicSegment<P>>">Extend<CubicSegment<P>></a></li><li><a href="#impl-From%3CCubicSegment%3CP%3E%3E-for-RationalSegment%3CP%3E" title="From<CubicSegment<P>>">From<CubicSegment<P>></a></li><li><a href="#impl-FromReflect-for-CubicSegment%3CP%3E" title="FromReflect">FromReflect</a></li><li><a href="#impl-GetTypeRegistration-for-CubicSegment%3CP%3E" title="GetTypeRegistration">GetTypeRegistration</a></li><li><a href="#impl-PartialEq-for-CubicSegment%3CP%3E" title="PartialEq">PartialEq</a></li><li><a href="#impl-PartialReflect-for-CubicSegment%3CP%3E" title="PartialReflect">PartialReflect</a></li><li><a href="#impl-Reflect-for-CubicSegment%3CP%3E" title="Reflect">Reflect</a></li><li><a href="#impl-Serialize-for-CubicSegment%3CP%3E" title="Serialize">Serialize</a></li><li><a href="#impl-Struct-for-CubicSegment%3CP%3E" title="Struct">Struct</a></li><li><a href="#impl-StructuralPartialEq-for-CubicSegment%3CP%3E" title="StructuralPartialEq">StructuralPartialEq</a></li><li><a href="#impl-TypePath-for-CubicSegment%3CP%3E" title="TypePath">TypePath</a></li><li><a href="#impl-Typed-for-CubicSegment%3CP%3E" 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-CubicSegment%3CP%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-CubicSegment%3CP%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-CubicSegment%3CP%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-CubicSegment%3CP%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-CubicSegment%3CP%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-CubicSegment%3CP%3E" 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-GetField-for-S" title="GetField">GetField</a></li><li><a href="#impl-GetPath-for-T" title="GetPath">GetPath</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-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><a href="index.html">In bevy_<wbr>math::<wbr>cubic_<wbr>splines</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>::<wbr><a href="index.html">cubic_splines</a></span><h1>Struct <span class="struct">CubicSegment</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/cubic_splines.rs.html#909-912">Source</a> </span></div><pre class="rust item-decl"><code>pub struct CubicSegment<P: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> {
|
||
pub coeff: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</a>,
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A segment of a cubic curve, used to hold precomputed coefficients for fast interpolation.
|
||
It is a <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> with domain <code>[0, 1]</code>.</p>
|
||
<p>Segments can be chained together to form a longer <a href="struct.CubicCurve.html" title="struct bevy_math::cubic_splines::CubicCurve">compound curve</a>.</p>
|
||
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.coeff" class="structfield section-header"><a href="#structfield.coeff" class="anchor field">§</a><code>coeff: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</a></code></span><div class="docblock"><p>Polynomial coefficients for the segment.</p>
|
||
</div><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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#914-953">Source</a><a href="#impl-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.position" class="method"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#917-921">Source</a><h4 class="code-header">pub fn <a href="#method.position" class="fn">position</a>(&self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> P</h4></section></summary><div class="docblock"><p>Instantaneous position of a point at parametric value <code>t</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.velocity" class="method"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#925-929">Source</a><h4 class="code-header">pub fn <a href="#method.velocity" class="fn">velocity</a>(&self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> P</h4></section></summary><div class="docblock"><p>Instantaneous velocity of a point at parametric value <code>t</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.acceleration" class="method"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#933-937">Source</a><h4 class="code-header">pub fn <a href="#method.acceleration" class="fn">acceleration</a>(&self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> P</h4></section></summary><div class="docblock"><p>Instantaneous acceleration of a point at parametric value <code>t</code>.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-CubicSegment%3CVec2%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#959-1062">Source</a><a href="#impl-CubicSegment%3CVec2%3E" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><<a class="struct" href="../struct.Vec2.html" title="struct bevy_math::Vec2">Vec2</a>></h3></section></summary><div class="docblock"><p>The <code>CubicSegment<Vec2></code> can be used as a 2-dimensional easing curve for animation.</p>
|
||
<p>The x-axis of the curve is time, and the y-axis is the output value. This struct provides
|
||
methods for extremely fast solves for y given x.</p>
|
||
</div><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new_bezier" class="method"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#967-973">Source</a><h4 class="code-header">pub fn <a href="#method.new_bezier" class="fn">new_bezier</a>(p1: impl <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="../struct.Vec2.html" title="struct bevy_math::Vec2">Vec2</a>>, p2: impl <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="../struct.Vec2.html" title="struct bevy_math::Vec2">Vec2</a>>) -> Self</h4></section></summary><div class="docblock"><p>Construct a cubic Bezier curve for animation easing, with control points <code>p1</code> and <code>p2</code>. A
|
||
cubic Bezier easing curve has control point <code>p0</code> at (0, 0) and <code>p3</code> at (1, 1), leaving only
|
||
<code>p1</code> and <code>p2</code> as the remaining degrees of freedom. The first and last control points are
|
||
fixed to ensure the animation begins at 0, and ends at 1.</p>
|
||
<p>This is a very common tool for UI animations that accelerate and decelerate smoothly. For
|
||
example, the ubiquitous “ease-in-out” is defined as <code>(0.25, 0.1), (0.25, 1.0)</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.ease" class="method"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1040-1043">Source</a><h4 class="code-header">pub fn <a href="#method.ease" class="fn">ease</a>(&self, time: <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.f32.html">f32</a></h4></section></summary><div class="docblock"><p>Given a <code>time</code> within <code>0..=1</code>, returns an eased value that follows the cubic curve instead
|
||
of a straight line. This eased result may be outside the range <code>0..=1</code>, however it will
|
||
always start at 0 and end at 1: <code>ease(0) = 0</code> and <code>ease(1) = 1</code>.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>cubic_bezier = CubicSegment::new_bezier((<span class="number">0.25</span>, <span class="number">0.1</span>), (<span class="number">0.25</span>, <span class="number">1.0</span>));
|
||
<span class="macro">assert_eq!</span>(cubic_bezier.ease(<span class="number">0.0</span>), <span class="number">0.0</span>);
|
||
<span class="macro">assert_eq!</span>(cubic_bezier.ease(<span class="number">1.0</span>), <span class="number">1.0</span>);</code></pre></div>
|
||
<h5 id="how-cubic-easing-works"><a class="doc-anchor" href="#how-cubic-easing-works">§</a>How cubic easing works</h5>
|
||
<p>Easing is generally accomplished with the help of “shaping functions”. These are curves that
|
||
start at (0,0) and end at (1,1). The x-axis of this plot is the current <code>time</code> of the
|
||
animation, from 0 to 1. The y-axis is how far along the animation is, also from 0 to 1. You
|
||
can imagine that if the shaping function is a straight line, there is a 1:1 mapping between
|
||
the <code>time</code> and how far along your animation is. If the <code>time</code> = 0.5, the animation is
|
||
halfway through. This is known as linear interpolation, and results in objects animating
|
||
with a constant velocity, and no smooth acceleration or deceleration at the start or end.</p>
|
||
<div class="example-wrap"><pre class="language-text"><code>y
|
||
│ ●
|
||
│ ⬈
|
||
│ ⬈
|
||
│ ⬈
|
||
│ ⬈
|
||
●─────────── x (time)</code></pre></div>
|
||
<p>Using cubic Beziers, we have a curve that starts at (0,0), ends at (1,1), and follows a path
|
||
determined by the two remaining control points (handles). These handles allow us to define a
|
||
smooth curve. As <code>time</code> (x-axis) progresses, we now follow the curve, and use the <code>y</code> value
|
||
to determine how far along the animation is.</p>
|
||
<div class="example-wrap"><pre class="language-text"><code>y
|
||
⬈➔●
|
||
│ ⬈
|
||
│ ↑
|
||
│ ↑
|
||
│ ⬈
|
||
●➔⬈───────── x (time)</code></pre></div>
|
||
<p>To accomplish this, we need to be able to find the position <code>y</code> on a curve, given the <code>x</code>
|
||
value. Cubic curves are implicit parametric functions like B(t) = (x,y). To find <code>y</code>, we
|
||
first solve for <code>t</code> that corresponds to the given <code>x</code> (<code>time</code>). We use the Newton-Raphson
|
||
root-finding method to quickly find a value of <code>t</code> that is very near the desired value of
|
||
<code>x</code>. Once we have this we can easily plug that <code>t</code> into our curve’s <code>position</code> function, to
|
||
find the <code>y</code> component, which is how far along our animation should be. In other words:</p>
|
||
<blockquote>
|
||
<p>Given <code>time</code> in <code>0..=1</code></p>
|
||
</blockquote>
|
||
<blockquote>
|
||
<p>Use Newton’s method to find a value of <code>t</code> that results in B(t) = (x,y) where <code>x == time</code></p>
|
||
</blockquote>
|
||
<blockquote>
|
||
<p>Once a solution is found, use the resulting <code>y</code> value as the final result</p>
|
||
</blockquote>
|
||
</div></details></div></details></div><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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#impl-Clone-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</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> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></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/cubic_splines.rs.html#906">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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></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-Curve%3CP%3E-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1065-1075">Source</a><a href="#impl-Curve%3CP%3E-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><P> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.domain" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1067-1069">Source</a><a href="#method.domain" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#tymethod.domain" class="fn">domain</a>(&self) -> <a class="struct" href="../curve/interval/struct.Interval.html" title="struct bevy_math::curve::interval::Interval">Interval</a></h4></section></summary><div class='docblock'>The interval over which this curve is parametrized. <a href="../curve/trait.Curve.html#tymethod.domain">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sample_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1072-1074">Source</a><a href="#method.sample_unchecked" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#tymethod.sample_unchecked" class="fn">sample_unchecked</a>(&self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> P</h4></section></summary><div class='docblock'>Sample a point on this curve at the parameter value <code>t</code>, extracting the associated value.
|
||
This is the unchecked version of sampling, which should only be used if the sample time <code>t</code>
|
||
is already known to lie within the curve’s domain. <a href="../curve/trait.Curve.html#tymethod.sample_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sample" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#332-337">Source</a><a href="#method.sample" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.sample" class="fn">sample</a>(&self, t: <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/option/enum.Option.html" title="enum core::option::Option">Option</a><T></h4></section></summary><div class='docblock'>Sample a point on this curve at the parameter value <code>t</code>, returning <code>None</code> if the point is
|
||
outside of the curve’s domain.</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_clamped" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#341-344">Source</a><a href="#method.sample_clamped" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.sample_clamped" class="fn">sample_clamped</a>(&self, t: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> T</h4></section></summary><div class='docblock'>Sample a point on this curve at the parameter value <code>t</code>, clamping <code>t</code> to lie inside the
|
||
domain of the curve.</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_iter" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#352-357">Source</a><a href="#method.sample_iter" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.sample_iter" class="fn">sample_iter</a>(
|
||
&self,
|
||
iter: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>><div class="where">where
|
||
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'>Sample a collection of <code>n >= 0</code> points on this curve at the parameter values <code>t_n</code>,
|
||
returning <code>None</code> if the point is outside of the curve’s domain. <a href="../curve/trait.Curve.html#method.sample_iter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sample_iter_unchecked" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#370-375">Source</a><a href="#method.sample_iter_unchecked" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.sample_iter_unchecked" class="fn">sample_iter_unchecked</a>(
|
||
&self,
|
||
iter: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = T><div class="where">where
|
||
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'>Sample a collection of <code>n >= 0</code> points on this curve at the parameter values <code>t_n</code>,
|
||
extracting the associated values. This is the unchecked version of sampling, which should
|
||
only be used if the sample times <code>t_n</code> are already known to lie within the curve’s domain. <a href="../curve/trait.Curve.html#method.sample_iter_unchecked">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.sample_iter_clamped" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#383-388">Source</a><a href="#method.sample_iter_clamped" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.sample_iter_clamped" class="fn">sample_iter_clamped</a>(
|
||
&self,
|
||
iter: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = T><div class="where">where
|
||
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'>Sample a collection of <code>n >= 0</code> points on this curve at the parameter values <code>t_n</code>,
|
||
clamping <code>t_n</code> to lie inside the domain of the curve. <a href="../curve/trait.Curve.html#method.sample_iter_clamped">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/bevy_math/curve/mod.rs.html#394-404">Source</a><a href="#method.map" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.map" class="fn">map</a><S, F>(self, f: F) -> <a class="struct" href="../curve/adaptors/struct.MapCurve.html" title="struct bevy_math::curve::adaptors::MapCurve">MapCurve</a><T, S, Self, F><div class="where">where
|
||
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>,
|
||
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,</div></h4></section></summary><div class='docblock'>Create a new curve by mapping the values of this curve via a function <code>f</code>; i.e., if the
|
||
sample at time <code>t</code> for this curve is <code>x</code>, the value at time <code>t</code> on the new curve will be
|
||
<code>f(x)</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.reparametrize" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#437-448">Source</a><a href="#method.reparametrize" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.reparametrize" class="fn">reparametrize</a><F>(self, domain: <a class="struct" href="../curve/interval/struct.Interval.html" title="struct bevy_math::curve::interval::Interval">Interval</a>, f: F) -> <a class="struct" href="../curve/adaptors/struct.ReparamCurve.html" title="struct bevy_math::curve::adaptors::ReparamCurve">ReparamCurve</a><T, Self, F><div class="where">where
|
||
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>,
|
||
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>(<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.f32.html">f32</a>,</div></h4></section></summary><div class='docblock'>Create a new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> whose parameter space is related to the parameter space of this curve
|
||
by <code>f</code>. For each time <code>t</code>, the sample from the new curve at time <code>t</code> is the sample from
|
||
this curve at time <code>f(t)</code>. The given <code>domain</code> will be the domain of the new curve. The
|
||
function <code>f</code> is expected to take <code>domain</code> into <code>self.domain()</code>. <a href="../curve/trait.Curve.html#method.reparametrize">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reparametrize_linear" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#454-474">Source</a><a href="#method.reparametrize_linear" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.reparametrize_linear" class="fn">reparametrize_linear</a>(
|
||
self,
|
||
domain: <a class="struct" href="../curve/interval/struct.Interval.html" title="struct bevy_math::curve::interval::Interval">Interval</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="struct" href="../curve/adaptors/struct.LinearReparamCurve.html" title="struct bevy_math::curve::adaptors::LinearReparamCurve">LinearReparamCurve</a><T, Self>, <a class="enum" href="../curve/enum.LinearReparamError.html" title="enum bevy_math::curve::LinearReparamError">LinearReparamError</a>><div class="where">where
|
||
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'>Linearly reparametrize this <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a>, producing a new curve whose domain is the given
|
||
<code>domain</code> instead of the current one. This operation is only valid for curves with bounded
|
||
domains; if either this curve’s domain or the given <code>domain</code> is unbounded, an error is
|
||
returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.reparametrize_by_curve" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#482-492">Source</a><a href="#method.reparametrize_by_curve" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.reparametrize_by_curve" class="fn">reparametrize_by_curve</a><C>(self, other: C) -> <a class="struct" href="../curve/adaptors/struct.CurveReparamCurve.html" title="struct bevy_math::curve::adaptors::CurveReparamCurve">CurveReparamCurve</a><T, Self, C><div class="where">where
|
||
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>,
|
||
C: <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,</div></h4></section></summary><div class='docblock'>Reparametrize this <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> by sampling from another curve. <a href="../curve/trait.Curve.html#method.reparametrize_by_curve">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.graph" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#501-509">Source</a><a href="#method.graph" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.graph" class="fn">graph</a>(self) -> <a class="struct" href="../curve/adaptors/struct.GraphCurve.html" title="struct bevy_math::curve::adaptors::GraphCurve">GraphCurve</a><T, Self><div class="where">where
|
||
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 new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> which is the graph of this one; that is, its output echoes the sample
|
||
time as part of a tuple. <a href="../curve/trait.Curve.html#method.graph">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.zip" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#517-529">Source</a><a href="#method.zip" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.zip" class="fn">zip</a><S, C>(
|
||
self,
|
||
other: C,
|
||
) -> <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="../curve/adaptors/struct.ZipCurve.html" title="struct bevy_math::curve::adaptors::ZipCurve">ZipCurve</a><T, S, Self, C>, <a class="struct" href="../curve/interval/struct.InvalidIntervalError.html" title="struct bevy_math::curve::interval::InvalidIntervalError">InvalidIntervalError</a>><div class="where">where
|
||
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>,
|
||
C: <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><S> + <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 new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> by zipping this curve together with another. <a href="../curve/trait.Curve.html#method.zip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.chain" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#539-555">Source</a><a href="#method.chain" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.chain" class="fn">chain</a><C>(self, other: C) -> <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="../curve/adaptors/struct.ChainCurve.html" title="struct bevy_math::curve::adaptors::ChainCurve">ChainCurve</a><T, Self, C>, <a class="enum" href="../curve/enum.ChainError.html" title="enum bevy_math::curve::ChainError">ChainError</a>><div class="where">where
|
||
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>,
|
||
C: <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><T>,</div></h4></section></summary><div class='docblock'>Create a new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> by composing this curve end-to-start with another, producing another curve
|
||
with outputs of the same type. The domain of the other curve is translated so that its start
|
||
coincides with where this curve ends. <a href="../curve/trait.Curve.html#method.chain">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reverse" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#565-576">Source</a><a href="#method.reverse" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.reverse" class="fn">reverse</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="../curve/adaptors/struct.ReverseCurve.html" title="struct bevy_math::curve::adaptors::ReverseCurve">ReverseCurve</a><T, Self>, <a class="enum" href="../curve/enum.ReverseError.html" title="enum bevy_math::curve::ReverseError">ReverseError</a>><div class="where">where
|
||
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 new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> inverting this curve on the x-axis, producing another curve with
|
||
outputs of the same type, effectively playing backwards starting at <code>self.domain().end()</code>
|
||
and transitioning over to <code>self.domain().start()</code>. The domain of the new curve is still the
|
||
same. <a href="../curve/trait.Curve.html#method.reverse">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.repeat" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#592-613">Source</a><a href="#method.repeat" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.repeat" class="fn">repeat</a>(self, count: <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/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../curve/adaptors/struct.RepeatCurve.html" title="struct bevy_math::curve::adaptors::RepeatCurve">RepeatCurve</a><T, Self>, <a class="enum" href="../curve/enum.RepeatError.html" title="enum bevy_math::curve::RepeatError">RepeatError</a>><div class="where">where
|
||
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 new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> repeating this curve <code>N</code> times, producing another curve with outputs
|
||
of the same type. The domain of the new curve will be bigger by a factor of <code>n + 1</code>. <a href="../curve/trait.Curve.html#method.repeat">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.forever" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#628-639">Source</a><a href="#method.forever" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.forever" class="fn">forever</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="../curve/adaptors/struct.ForeverCurve.html" title="struct bevy_math::curve::adaptors::ForeverCurve">ForeverCurve</a><T, Self>, <a class="enum" href="../curve/enum.RepeatError.html" title="enum bevy_math::curve::RepeatError">RepeatError</a>><div class="where">where
|
||
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 new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> repeating this curve forever, producing another curve with
|
||
outputs of the same type. The domain of the new curve will be unbounded. <a href="../curve/trait.Curve.html#method.forever">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.ping_pong" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#648-659">Source</a><a href="#method.ping_pong" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.ping_pong" class="fn">ping_pong</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="../curve/adaptors/struct.PingPongCurve.html" title="struct bevy_math::curve::adaptors::PingPongCurve">PingPongCurve</a><T, Self>, <a class="enum" href="../curve/enum.PingPongError.html" title="enum bevy_math::curve::PingPongError">PingPongError</a>><div class="where">where
|
||
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 new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> chaining the original curve with its inverse, producing
|
||
another curve with outputs of the same type. The domain of the new curve will be twice as
|
||
long. The transition point is guaranteed to not make any jumps. <a href="../curve/trait.Curve.html#method.ping_pong">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.chain_continue" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#676-698">Source</a><a href="#method.chain_continue" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.chain_continue" class="fn">chain_continue</a><C>(
|
||
self,
|
||
other: C,
|
||
) -> <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="../curve/adaptors/struct.ContinuationCurve.html" title="struct bevy_math::curve::adaptors::ContinuationCurve">ContinuationCurve</a><T, Self, C>, <a class="enum" href="../curve/enum.ChainError.html" title="enum bevy_math::curve::ChainError">ChainError</a>><div class="where">where
|
||
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>,
|
||
T: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
C: <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><T>,</div></h4></section></summary><div class='docblock'>Create a new <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> by composing this curve end-to-start with another, producing another
|
||
curve with outputs of the same type. The domain of the other curve is translated so that
|
||
its start coincides with where this curve ends. <a href="../curve/trait.Curve.html#method.chain_continue">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.resample" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#719-736">Source</a><a href="#method.resample" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.resample" class="fn">resample</a><I>(
|
||
&self,
|
||
segments: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>,
|
||
interpolation: I,
|
||
) -> <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="../curve/sample_curves/struct.SampleCurve.html" title="struct bevy_math::curve::sample_curves::SampleCurve">SampleCurve</a><T, I>, <a class="enum" href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError">ResamplingError</a>><div class="where">where
|
||
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>,
|
||
I: <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>(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> T,</div></h4></section></summary><div class='docblock'>Resample this <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> to produce a new one that is defined by interpolation over equally
|
||
spaced sample values, using the provided <code>interpolation</code> to interpolate between adjacent samples.
|
||
The curve is interpolated on <code>segments</code> segments between samples. For example, if <code>segments</code> is 1,
|
||
only the start and end points of the curve are used as samples; if <code>segments</code> is 2, a sample at
|
||
the midpoint is taken as well, and so on. If <code>segments</code> is zero, or if this curve has an unbounded
|
||
domain, then a <a href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError"><code>ResamplingError</code></a> is returned. <a href="../curve/trait.Curve.html#method.resample">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.resample_auto" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#746-758">Source</a><a href="#method.resample_auto" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.resample_auto" class="fn">resample_auto</a>(
|
||
&self,
|
||
segments: <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/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../curve/sample_curves/struct.SampleAutoCurve.html" title="struct bevy_math::curve::sample_curves::SampleAutoCurve">SampleAutoCurve</a><T>, <a class="enum" href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError">ResamplingError</a>><div class="where">where
|
||
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>,
|
||
T: <a class="trait" href="../common_traits/trait.StableInterpolate.html" title="trait bevy_math::common_traits::StableInterpolate">StableInterpolate</a>,</div></h4></section></summary><div class='docblock'>Resample this <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> to produce a new one that is defined by interpolation over equally
|
||
spaced sample values, using <a href="../common_traits/trait.StableInterpolate.html" title="trait bevy_math::common_traits::StableInterpolate">automatic interpolation</a> to interpolate between adjacent samples.
|
||
The curve is interpolated on <code>segments</code> segments between samples. For example, if <code>segments</code> is 1,
|
||
only the start and end points of the curve are used as samples; if <code>segments</code> is 2, a sample at
|
||
the midpoint is taken as well, and so on. If <code>segments</code> is zero, or if this curve has an unbounded
|
||
domain, then a <a href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError"><code>ResamplingError</code></a> is returned.</div></details><details class="toggle method-toggle" open><summary><section id="method.samples" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#762-780">Source</a><a href="#method.samples" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.samples" class="fn">samples</a>(
|
||
&self,
|
||
samples: <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/result/enum.Result.html" title="enum core::result::Result">Result</a><impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = T>, <a class="enum" href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError">ResamplingError</a>><div class="where">where
|
||
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'>Extract an iterator over evenly-spaced samples from this curve. If <code>samples</code> is less than 2
|
||
or if this curve has unbounded domain, then an error is returned instead.</div></details><details class="toggle method-toggle" open><summary><section id="method.resample_uneven" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#797-821">Source</a><a href="#method.resample_uneven" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.resample_uneven" class="fn">resample_uneven</a><I>(
|
||
&self,
|
||
sample_times: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>>,
|
||
interpolation: I,
|
||
) -> <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="../curve/sample_curves/struct.UnevenSampleCurve.html" title="struct bevy_math::curve::sample_curves::UnevenSampleCurve">UnevenSampleCurve</a><T, I>, <a class="enum" href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError">ResamplingError</a>><div class="where">where
|
||
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>,
|
||
I: <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>(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a>) -> T,</div></h4></section></summary><div class='docblock'>Resample this <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> to produce a new one that is defined by interpolation over samples
|
||
taken at a given set of times. The given <code>interpolation</code> is used to interpolate adjacent
|
||
samples, and the <code>sample_times</code> are expected to contain at least two valid times within the
|
||
curve’s domain interval. <a href="../curve/trait.Curve.html#method.resample_uneven">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.resample_uneven_auto" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#835-857">Source</a><a href="#method.resample_uneven_auto" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.resample_uneven_auto" class="fn">resample_uneven_auto</a>(
|
||
&self,
|
||
sample_times: impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <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><<a class="struct" href="../curve/sample_curves/struct.UnevenSampleAutoCurve.html" title="struct bevy_math::curve::sample_curves::UnevenSampleAutoCurve">UnevenSampleAutoCurve</a><T>, <a class="enum" href="../curve/enum.ResamplingError.html" title="enum bevy_math::curve::ResamplingError">ResamplingError</a>><div class="where">where
|
||
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>,
|
||
T: <a class="trait" href="../common_traits/trait.StableInterpolate.html" title="trait bevy_math::common_traits::StableInterpolate">StableInterpolate</a>,</div></h4></section></summary><div class='docblock'>Resample this <a href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve"><code>Curve</code></a> to produce a new one that is defined by <a href="../common_traits/trait.StableInterpolate.html" title="trait bevy_math::common_traits::StableInterpolate">automatic interpolation</a> over
|
||
samples taken at the given set of times. The given <code>sample_times</code> are expected to contain at least
|
||
two valid times within the curve’s domain interval. <a href="../curve/trait.Curve.html#method.resample_uneven_auto">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.by_ref" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#875-880">Source</a><a href="#method.by_ref" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.by_ref" class="fn">by_ref</a>(&self) -> &Self<div class="where">where
|
||
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'>Borrow this curve rather than taking ownership of it. This is essentially an alias for a
|
||
prefix <code>&</code>; the point is that intermediate operations can be performed while retaining
|
||
access to the original curve. <a href="../curve/trait.Curve.html#method.by_ref">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.flip" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/curve/mod.rs.html#884-889">Source</a><a href="#method.flip" class="anchor">§</a><h4 class="code-header">fn <a href="../curve/trait.Curve.html#method.flip" class="fn">flip</a><U, V>(self) -> impl <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.tuple.html">(V, U)</a>><div class="where">where
|
||
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> + <a class="trait" href="../curve/trait.Curve.html" title="trait bevy_math::curve::Curve">Curve</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.tuple.html">(U, V)</a>>,</div></h4></section></summary><div class='docblock'>Flip this curve so that its tuple output is arranged the other way.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#impl-Debug-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></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/cubic_splines.rs.html#906">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-Default-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#impl-Default-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#907">Source</a><a href="#impl-Deserialize%3C'de%3E-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<'de, P> <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <a class="trait" href="../../serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,</div></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/cubic_splines.rs.html#907">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-Extend%3CCubicSegment%3CP%3E%3E-for-CubicCurve%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1217-1221">Source</a><a href="#impl-Extend%3CCubicSegment%3CP%3E%3E-for-CubicCurve%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>> for <a class="struct" href="struct.CubicCurve.html" title="struct bevy_math::cubic_splines::CubicCurve">CubicCurve</a><P></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.extend" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1218-1220">Source</a><a href="#method.extend" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html#tymethod.extend" class="fn">extend</a><T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>>>(&mut self, iter: T)</h4></section></summary><div class='docblock'>Extends a collection with the contents of an iterator. <a href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.extend_one" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/iter/traits/collect.rs.html#453">Source</a><a href="#method.extend_one" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html#method.extend_one" class="fn">extend_one</a>(&mut self, item: 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>extend_one</code>)</span></div></span><div class='docblock'>Extends a collection with exactly one element.</div></details><details class="toggle method-toggle" open><summary><section id="method.extend_reserve" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/iter/traits/collect.rs.html#461">Source</a><a href="#method.extend_reserve" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve" class="fn">extend_reserve</a>(&mut self, additional: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</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>extend_one</code>)</span></div></span><div class='docblock'>Reserves capacity in a collection for the given number of additional elements. <a href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CCubicSegment%3CP%3E%3E-for-RationalSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#1562-1570">Source</a><a href="#impl-From%3CCubicSegment%3CP%3E%3E-for-RationalSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>> for <a class="struct" href="struct.RationalSegment.html" title="struct bevy_math::cubic_splines::RationalSegment">RationalSegment</a><P></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/cubic_splines.rs.html#1563-1569">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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>) -> 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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-FromReflect-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</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/cubic_splines.rs.html#908">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-GetTypeRegistration-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-GetTypeRegistration-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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-PartialEq-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#impl-PartialEq-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></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/cubic_splines.rs.html#906">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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>) -> <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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-PartialReflect-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <a class="trait" href="../../bevy_reflect/reflect/trait.PartialReflect.html" title="trait bevy_reflect::reflect::PartialReflect">PartialReflect</a> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-Reflect-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <a class="trait" href="../../bevy_reflect/reflect/trait.Reflect.html" title="trait bevy_reflect::reflect::Reflect">Reflect</a> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#907">Source</a><a href="#impl-Serialize-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,</div></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/cubic_splines.rs.html#907">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-Struct-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-Struct-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <a class="trait" href="../../bevy_reflect/struct_trait/trait.Struct.html" title="trait bevy_reflect::struct_trait::Struct">Struct</a> for <a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</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/cubic_splines.rs.html#908">Source</a><a href="#method.field" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.field" class="fn">field</a>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</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 named <code>name</code> as a <code>&dyn PartialReflect</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/cubic_splines.rs.html#908">Source</a><a href="#method.field_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.field_mut" class="fn">field_mut</a>(&mut self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</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 named <code>name</code> as a
|
||
<code>&mut dyn PartialReflect</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.field_at" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#method.field_at" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.field_at" class="fn">field_at</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 PartialReflect</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.field_at_mut" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#method.field_at_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.field_at_mut" class="fn">field_at_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 PartialReflect</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.name_at" class="method trait-impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#method.name_at" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.name_at" class="fn">name_at</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><&<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 field with index <code>index</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/cubic_splines.rs.html#908">Source</a><a href="#method.field_len" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.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 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/cubic_splines.rs.html#908">Source</a><a href="#method.iter_fields" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.iter_fields" class="fn">iter_fields</a>(&self) -> <a class="struct" href="../../bevy_reflect/struct_trait/struct.FieldIter.html" title="struct bevy_reflect::struct_trait::FieldIter">FieldIter</a><'_></h4></section></summary><div class='docblock'>Returns an iterator over the values of the reflectable fields for this struct.</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/cubic_splines.rs.html#908">Source</a><a href="#method.clone_dynamic" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#tymethod.clone_dynamic" class="fn">clone_dynamic</a>(&self) -> <a class="struct" href="../../bevy_reflect/struct_trait/struct.DynamicStruct.html" title="struct bevy_reflect::struct_trait::DynamicStruct">DynamicStruct</a></h4></section></summary><div class='docblock'>Clones the struct into a <a href="../../bevy_reflect/struct_trait/struct.DynamicStruct.html" title="struct bevy_reflect::struct_trait::DynamicStruct"><code>DynamicStruct</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_represented_struct_info" class="method trait-impl"><a class="src rightside" href="../../src/bevy_reflect/struct_trait.rs.html#78">Source</a><a href="#method.get_represented_struct_info" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.Struct.html#method.get_represented_struct_info" class="fn">get_represented_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/struct_trait/struct.StructInfo.html" title="struct bevy_reflect::struct_trait::StructInfo">StructInfo</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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-TypePath-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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/cubic_splines.rs.html#908">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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#908">Source</a><a href="#impl-Typed-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
<a class="struct" href="struct.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P>: <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>,
|
||
P: <a class="trait" href="../../bevy_reflect/type_path/trait.TypePath.html" title="trait bevy_reflect::type_path::TypePath">TypePath</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>,
|
||
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.array.html">[P; 4]</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/cubic_splines.rs.html#908">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-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#impl-Copy-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></h3></section><section id="impl-StructuralPartialEq-for-CubicSegment%3CP%3E" class="impl"><a class="src rightside" href="../../src/bevy_math/cubic_splines.rs.html#906">Source</a><a href="#impl-StructuralPartialEq-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="../common_traits/trait.VectorSpace.html" title="trait bevy_math::common_traits::VectorSpace">VectorSpace</a>> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P></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-CubicSegment%3CP%3E" class="impl"><a href="#impl-Freeze-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-CubicSegment%3CP%3E" class="impl"><a href="#impl-RefUnwindSafe-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <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>,</div></h3></section><section id="impl-Send-for-CubicSegment%3CP%3E" class="impl"><a href="#impl-Send-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <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-Sync-for-CubicSegment%3CP%3E" class="impl"><a href="#impl-Sync-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <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><section id="impl-Unpin-for-CubicSegment%3CP%3E" class="impl"><a href="#impl-Unpin-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-CubicSegment%3CP%3E" class="impl"><a href="#impl-UnwindSafe-for-CubicSegment%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <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.CubicSegment.html" title="struct bevy_math::cubic_splines::CubicSegment">CubicSegment</a><P><div class="where">where
|
||
P: <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>,</div></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-1" 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-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>(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-GetField-for-S" class="impl"><a class="src rightside" href="../../src/bevy_reflect/struct_trait.rs.html#244">Source</a><a href="#impl-GetField-for-S" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="../../bevy_reflect/struct_trait/trait.GetField.html" title="trait bevy_reflect::struct_trait::GetField">GetField</a> for S<div class="where">where
|
||
S: <a class="trait" href="../../bevy_reflect/struct_trait/trait.Struct.html" title="trait bevy_reflect::struct_trait::Struct">Struct</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/struct_trait.rs.html#245">Source</a><a href="#method.get_field" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.GetField.html#tymethod.get_field" class="fn">get_field</a><T>(&self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</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 named <code>name</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/struct_trait.rs.html#250">Source</a><a href="#method.get_field_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_reflect/struct_trait/trait.GetField.html#tymethod.get_field_mut" class="fn">get_field_mut</a><T>(&mut self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</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 named <code>name</code>,
|
||
downcast to <code>T</code>.</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-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-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-1" 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-1" 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" 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" 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" 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" 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> |