Files
phy/bevy_pbr/struct.MaterialBindGroupId.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

286 lines
122 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MaterialBindGroupId` struct in crate `bevy_pbr`."><title>MaterialBindGroupId in bevy_pbr - 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_pbr" 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_pbr/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_pbr/index.html"><img src="https://bevyengine.org/assets/icon.png" alt="logo"></a><h2><a href="../bevy_pbr/index.html">bevy_<wbr>pbr</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Material<wbr>Bind<wbr>Group<wbr>Id</a></h2><h3><a href="#fields">Tuple Fields</a></h3><ul class="block structfield"><li><a href="#structfield.0" title="0">0</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.new" title="new">new</a></li></ul><h3><a href="#deref-methods-Option%3CBindGroupId%3E">Methods from Deref&lt;<wbr>Target=<wbr>Option&lt;<wbr>Bind<wbr>Group<wbr>Id&gt;&gt;</a></h3><ul class="block deref-methods"><li><a href="#method.as_deref" title="as_deref">as_deref</a></li><li><a href="#method.as_deref_mut" title="as_deref_mut">as_deref_mut</a></li><li><a href="#method.as_mut" title="as_mut">as_mut</a></li><li><a href="#method.as_mut_slice" title="as_mut_slice">as_mut_slice</a></li><li><a href="#method.as_pin_mut" title="as_pin_mut">as_pin_mut</a></li><li><a href="#method.as_pin_ref" title="as_pin_ref">as_pin_ref</a></li><li><a href="#method.as_ref" title="as_ref">as_ref</a></li><li><a href="#method.as_slice" title="as_slice">as_slice</a></li><li><a href="#method.get_or_insert" title="get_or_insert">get_or_insert</a></li><li><a href="#method.get_or_insert_default" title="get_or_insert_default">get_or_insert_default</a></li><li><a href="#method.get_or_insert_with" title="get_or_insert_with">get_or_insert_with</a></li><li><a href="#method.insert" title="insert">insert</a></li><li><a href="#method.is_none" title="is_none">is_none</a></li><li><a href="#method.is_some" title="is_some">is_some</a></li><li><a href="#method.iter" title="iter">iter</a></li><li><a href="#method.iter_mut" title="iter_mut">iter_mut</a></li><li><a href="#method.replace" title="replace">replace</a></li><li><a href="#method.take" title="take">take</a></li><li><a href="#method.take_if" title="take_if">take_if</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-MaterialBindGroupId" title="Clone">Clone</a></li><li><a href="#impl-Component-for-MaterialBindGroupId" title="Component">Component</a></li><li><a href="#impl-Copy-for-MaterialBindGroupId" title="Copy">Copy</a></li><li><a href="#impl-Default-for-MaterialBindGroupId" title="Default">Default</a></li><li><a href="#impl-Deref-for-MaterialBindGroupId" title="Deref">Deref</a></li><li><a href="#impl-DerefMut-for-MaterialBindGroupId" title="DerefMut">DerefMut</a></li><li><a href="#impl-Eq-for-MaterialBindGroupId" title="Eq">Eq</a></li><li><a href="#impl-From%3CBindGroup%3E-for-MaterialBindGroupId" title="From&#60;BindGroup&#62;">From&#60;BindGroup&#62;</a></li><li><a href="#impl-PartialEq-for-MaterialBindGroupId" title="PartialEq">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-MaterialBindGroupId" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-MaterialBindGroupId" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-MaterialBindGroupId" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-MaterialBindGroupId" title="Send">Send</a></li><li><a href="#impl-Sync-for-MaterialBindGroupId" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-MaterialBindGroupId" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-MaterialBindGroupId" 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-AsBindGroupShaderType%3CU%3E-for-T" title="AsBindGroupShaderType&#60;U&#62;">AsBindGroupShaderType&#60;U&#62;</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-Bundle-for-C" title="Bundle">Bundle</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-Downcast-for-T" title="Downcast">Downcast</a></li><li><a href="#impl-Downcast%3CT%3E-for-T" title="Downcast&#60;T&#62;">Downcast&#60;T&#62;</a></li><li><a href="#impl-DowncastSync-for-T" title="DowncastSync">DowncastSync</a></li><li><a href="#impl-DynEq-for-T" title="DynEq">DynEq</a></li><li><a href="#impl-DynamicBundle-for-C" title="DynamicBundle">DynamicBundle</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q" title="Equivalent&#60;K&#62;">Equivalent&#60;K&#62;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q-1" title="Equivalent&#60;K&#62;">Equivalent&#60;K&#62;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q-2" title="Equivalent&#60;K&#62;">Equivalent&#60;K&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-FromWorld-for-T" title="FromWorld">FromWorld</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&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-Receiver-for-P" title="Receiver">Receiver</a></li><li><a href="#impl-Settings-for-T" title="Settings">Settings</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&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-TypeData-for-T" title="TypeData">TypeData</a></li><li><a href="#impl-Upcast%3CT%3E-for-T" title="Upcast&#60;T&#62;">Upcast&#60;T&#62;</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip&#60;V&#62;">VZip&#60;V&#62;</a></li><li><a href="#impl-WasmNotSend-for-T" title="WasmNotSend">WasmNotSend</a></li><li><a href="#impl-WasmNotSendSync-for-T" title="WasmNotSendSync">WasmNotSendSync</a></li><li><a href="#impl-WasmNotSync-for-T" title="WasmNotSync">WasmNotSync</a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate bevy_<wbr>pbr</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_pbr</a></span><h1>Struct <span class="struct">MaterialBindGroupId</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_pbr/material.rs.html#1005">Source</a> </span></div><pre class="rust item-decl"><code>pub struct MaterialBindGroupId(pub <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../bevy_render/render_resource/bind_group/struct.BindGroupId.html" title="struct bevy_render::render_resource::bind_group::BindGroupId">BindGroupId</a>&gt;);</code></pre><h2 id="fields" class="fields section-header">Tuple Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.0" class="structfield section-header"><a href="#structfield.0" class="anchor field">§</a><code>0: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../bevy_render/render_resource/bind_group/struct.BindGroupId.html" title="struct bevy_render::render_resource::bind_group::BindGroupId">BindGroupId</a>&gt;</code></span><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-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1007-1011">Source</a><a href="#impl-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></summary><div class="impl-items"><section id="method.new" class="method"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1008-1010">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(id: <a class="struct" href="../bevy_render/render_resource/bind_group/struct.BindGroupId.html" title="struct bevy_render::render_resource::bind_group::BindGroupId">BindGroupId</a>) -&gt; Self</h4></section></div></details></div><details class="toggle big-toggle" open><summary><h2 id="deref-methods-Option%3CBindGroupId%3E" class="section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../bevy_render/render_resource/bind_group/struct.BindGroupId.html" title="struct bevy_render::render_resource::bind_group::BindGroupId">BindGroupId</a>&gt;&gt;</span><a href="#deref-methods-Option%3CBindGroupId%3E" class="anchor">§</a></h2></summary><div id="deref-methods-Option%3CBindGroupId%3E-1" class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is_some" class="method"><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/option.rs.html#607">Source</a></span><h4 class="code-header">pub fn <a href="#method.is_some" class="fn">is_some</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the option is a <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a> value.</p>
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">Some</span>(<span class="number">2</span>);
<span class="macro">assert_eq!</span>(x.is_some(), <span class="bool-val">true</span>);
<span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">None</span>;
<span class="macro">assert_eq!</span>(x.is_some(), <span class="bool-val">false</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_none" class="method"><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/option.rs.html#651">Source</a></span><h4 class="code-header">pub fn <a href="#method.is_none" class="fn">is_none</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the option is a <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> value.</p>
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">Some</span>(<span class="number">2</span>);
<span class="macro">assert_eq!</span>(x.is_none(), <span class="bool-val">false</span>);
<span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">None</span>;
<span class="macro">assert_eq!</span>(x.is_none(), <span class="bool-val">true</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_ref" class="method"><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/option.rs.html#706">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_ref" class="fn">as_ref</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div class="docblock"><p>Converts from <code>&amp;Option&lt;T&gt;</code> to <code>Option&lt;&amp;T&gt;</code>.</p>
<h5 id="examples-2"><a class="doc-anchor" href="#examples-2">§</a>Examples</h5>
<p>Calculates the length of an <code>Option&lt;<a href="../../std/string/struct.String.html" title="String">String</a>&gt;</code> as an <code>Option&lt;<a href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html" title="primitive usize">usize</a>&gt;</code>
without moving the <a href="../../std/string/struct.String.html" title="String"><code>String</code></a>. The <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#method.map" title="method core::option::Option::map"><code>map</code></a> method takes the <code>self</code> argument by value,
consuming the original, so this technique uses <code>as_ref</code> to first take an <code>Option</code> to a
reference to the value inside the original.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>text: <span class="prelude-ty">Option</span>&lt;String&gt; = <span class="prelude-val">Some</span>(<span class="string">"Hello, world!"</span>.to_string());
<span class="comment">// First, cast `Option&lt;String&gt;` to `Option&lt;&amp;String&gt;` with `as_ref`,
// then consume *that* with `map`, leaving `text` on the stack.
</span><span class="kw">let </span>text_length: <span class="prelude-ty">Option</span>&lt;usize&gt; = text.as_ref().map(|s| s.len());
<span class="macro">println!</span>(<span class="string">"still can print text: {text:?}"</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_mut" class="method"><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/option.rs.html#728">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_mut" class="fn">as_mut</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a>&gt;</h4></section></summary><div class="docblock"><p>Converts from <code>&amp;mut Option&lt;T&gt;</code> to <code>Option&lt;&amp;mut T&gt;</code>.</p>
<h5 id="examples-3"><a class="doc-anchor" href="#examples-3">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">Some</span>(<span class="number">2</span>);
<span class="kw">match </span>x.as_mut() {
<span class="prelude-val">Some</span>(v) =&gt; <span class="kw-2">*</span>v = <span class="number">42</span>,
<span class="prelude-val">None </span>=&gt; {},
}
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">42</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_pin_ref" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.33.0">1.33.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#742">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_pin_ref" class="fn">as_pin_ref</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Converts from <code><a href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html" title="shared reference">&amp;</a>Option&lt;T&gt;&gt;</code> to <code>Option&lt;<a href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html" title="shared reference">&amp;</a>T&gt;&gt;</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_pin_mut" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.33.0">1.33.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#759">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_pin_mut" class="fn">as_pin_mut</a>(self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Converts from <code><a href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html" title="mutable reference">&amp;mut</a> Option&lt;T&gt;&gt;</code> to <code>Option&lt;<a href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html" title="mutable reference">&amp;mut</a> T&gt;&gt;</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_slice" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.75.0">1.75.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#806">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_slice" class="fn">as_slice</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html">[T]</a></h4></section></summary><div class="docblock"><p>Returns a slice of the contained value, if any. If this is <code>None</code>, an
empty slice is returned. This can be useful to have a single type of
iterator over an <code>Option</code> or slice.</p>
<p>Note: Should you have an <code>Option&lt;&amp;T&gt;</code> and wish to get a slice of <code>T</code>,
you can unpack it via <code>opt.map_or(&amp;[], std::slice::from_ref)</code>.</p>
<h5 id="examples-4"><a class="doc-anchor" href="#examples-4">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
[<span class="prelude-val">Some</span>(<span class="number">1234</span>).as_slice(), <span class="prelude-val">None</span>.as_slice()],
[<span class="kw-2">&amp;</span>[<span class="number">1234</span>][..], <span class="kw-2">&amp;</span>[][..]],
);</code></pre></div>
<p>The inverse of this function is (discounting
borrowing) <a href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html#method.first" title="method slice::first"><code>[_]::first</code></a>:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">for </span>i <span class="kw">in </span>[<span class="prelude-val">Some</span>(<span class="number">1234_u16</span>), <span class="prelude-val">None</span>] {
<span class="macro">assert_eq!</span>(i.as_ref(), i.as_slice().first());
}</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_mut_slice" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.75.0">1.75.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#861">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_mut_slice" class="fn">as_mut_slice</a>(&amp;mut self) -&gt; &amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html">[T]</a></h4></section></summary><div class="docblock"><p>Returns a mutable slice of the contained value, if any. If this is
<code>None</code>, an empty slice is returned. This can be useful to have a
single type of iterator over an <code>Option</code> or slice.</p>
<p>Note: Should you have an <code>Option&lt;&amp;mut T&gt;</code> instead of a
<code>&amp;mut Option&lt;T&gt;</code>, which this method takes, you can obtain a mutable
slice via <code>opt.map_or(&amp;mut [], std::slice::from_mut)</code>.</p>
<h5 id="examples-5"><a class="doc-anchor" href="#examples-5">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(
[<span class="prelude-val">Some</span>(<span class="number">1234</span>).as_mut_slice(), <span class="prelude-val">None</span>.as_mut_slice()],
[<span class="kw-2">&amp;mut </span>[<span class="number">1234</span>][..], <span class="kw-2">&amp;mut </span>[][..]],
);</code></pre></div>
<p>The result is a mutable slice of zero or one items that points into
our original <code>Option</code>:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">Some</span>(<span class="number">1234</span>);
x.as_mut_slice()[<span class="number">0</span>] += <span class="number">1</span>;
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">1235</span>));</code></pre></div>
<p>The inverse of this method (discounting borrowing)
is <a href="https://doc.rust-lang.org/1.84.0/std/primitive.slice.html#method.first_mut" title="method slice::first_mut"><code>[_]::first_mut</code></a>:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">123</span>).as_mut_slice().first_mut(), <span class="prelude-val">Some</span>(<span class="kw-2">&amp;mut </span><span class="number">123</span>))</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_deref" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.40.0">1.40.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1297-1299">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_deref" class="fn">as_deref</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;&lt;T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,</div></h4></section></summary><div class="docblock"><p>Converts from <code>Option&lt;T&gt;</code> (or <code>&amp;Option&lt;T&gt;</code>) to <code>Option&lt;&amp;T::Target&gt;</code>.</p>
<p>Leaves the original Option in-place, creating a new one with a reference
to the original one, additionally coercing the contents via <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref"><code>Deref</code></a>.</p>
<h5 id="examples-6"><a class="doc-anchor" href="#examples-6">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;String&gt; = <span class="prelude-val">Some</span>(<span class="string">"hey"</span>.to_owned());
<span class="macro">assert_eq!</span>(x.as_deref(), <span class="prelude-val">Some</span>(<span class="string">"hey"</span>));
<span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;String&gt; = <span class="prelude-val">None</span>;
<span class="macro">assert_eq!</span>(x.as_deref(), <span class="prelude-val">None</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_deref_mut" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.40.0">1.40.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1320-1322">Source</a></span><h4 class="code-header">pub fn <a href="#method.as_deref_mut" class="fn">as_deref_mut</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,</div></h4></section></summary><div class="docblock"><p>Converts from <code>Option&lt;T&gt;</code> (or <code>&amp;mut Option&lt;T&gt;</code>) to <code>Option&lt;&amp;mut T::Target&gt;</code>.</p>
<p>Leaves the original <code>Option</code> in-place, creating a new one containing a mutable reference to
the inner types <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="associated type core::ops::deref::Deref::Target"><code>Deref::Target</code></a> type.</p>
<h5 id="examples-7"><a class="doc-anchor" href="#examples-7">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x: <span class="prelude-ty">Option</span>&lt;String&gt; = <span class="prelude-val">Some</span>(<span class="string">"hey"</span>.to_owned());
<span class="macro">assert_eq!</span>(x.as_deref_mut().map(|x| {
x.make_ascii_uppercase();
x
}), <span class="prelude-val">Some</span>(<span class="string">"HEY"</span>.to_owned().as_mut_str()));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.iter" class="method"><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/option.rs.html#1344">Source</a></span><h4 class="code-header">pub fn <a href="#method.iter" class="fn">iter</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/option/struct.Iter.html" title="struct core::option::Iter">Iter</a>&lt;'_, T&gt;</h4></section></summary><div class="docblock"><p>Returns an iterator over the possibly contained value.</p>
<h5 id="examples-8"><a class="doc-anchor" href="#examples-8">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x = <span class="prelude-val">Some</span>(<span class="number">4</span>);
<span class="macro">assert_eq!</span>(x.iter().next(), <span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span><span class="number">4</span>));
<span class="kw">let </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">None</span>;
<span class="macro">assert_eq!</span>(x.iter().next(), <span class="prelude-val">None</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.iter_mut" class="method"><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/option.rs.html#1365">Source</a></span><h4 class="code-header">pub fn <a href="#method.iter_mut" class="fn">iter_mut</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/option/struct.IterMut.html" title="struct core::option::IterMut">IterMut</a>&lt;'_, T&gt;</h4></section></summary><div class="docblock"><p>Returns a mutable iterator over the possibly contained value.</p>
<h5 id="examples-9"><a class="doc-anchor" href="#examples-9">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">Some</span>(<span class="number">4</span>);
<span class="kw">match </span>x.iter_mut().next() {
<span class="prelude-val">Some</span>(v) =&gt; <span class="kw-2">*</span>v = <span class="number">42</span>,
<span class="prelude-val">None </span>=&gt; {},
}
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">42</span>));
<span class="kw">let </span><span class="kw-2">mut </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">None</span>;
<span class="macro">assert_eq!</span>(x.iter_mut().next(), <span class="prelude-val">None</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.insert" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.53.0">1.53.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1607">Source</a></span><h4 class="code-header">pub fn <a href="#method.insert" class="fn">insert</a>(&amp;mut self, value: T) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class="docblock"><p>Inserts <code>value</code> into the option, then returns a mutable reference to it.</p>
<p>If the option already contains a value, the old value is dropped.</p>
<p>See also <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#method.get_or_insert" title="method core::option::Option::get_or_insert"><code>Option::get_or_insert</code></a>, which doesnt update the value if
the option already contains <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a>.</p>
<h5 id="example"><a class="doc-anchor" href="#example">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>opt = <span class="prelude-val">None</span>;
<span class="kw">let </span>val = opt.insert(<span class="number">1</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>val, <span class="number">1</span>);
<span class="macro">assert_eq!</span>(opt.unwrap(), <span class="number">1</span>);
<span class="kw">let </span>val = opt.insert(<span class="number">2</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>val, <span class="number">2</span>);
<span class="kw-2">*</span>val = <span class="number">3</span>;
<span class="macro">assert_eq!</span>(opt.unwrap(), <span class="number">3</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_or_insert" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.20.0">1.20.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1636">Source</a></span><h4 class="code-header">pub fn <a href="#method.get_or_insert" class="fn">get_or_insert</a>(&amp;mut self, value: T) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class="docblock"><p>Inserts <code>value</code> into the option if it is <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>, then
returns a mutable reference to the contained value.</p>
<p>See also <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#method.insert" title="method core::option::Option::insert"><code>Option::insert</code></a>, which updates the value even if
the option already contains <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a>.</p>
<h5 id="examples-10"><a class="doc-anchor" href="#examples-10">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">None</span>;
{
<span class="kw">let </span>y: <span class="kw-2">&amp;mut </span>u32 = x.get_or_insert(<span class="number">5</span>);
<span class="macro">assert_eq!</span>(y, <span class="kw-2">&amp;</span><span class="number">5</span>);
<span class="kw-2">*</span>y = <span class="number">7</span>;
}
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">7</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_or_insert_default" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.83.0">1.83.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1659-1661">Source</a></span><h4 class="code-header">pub fn <a href="#method.get_or_insert_default" class="fn">get_or_insert_default</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a><div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h4></section></summary><div class="docblock"><p>Inserts the default value into the option if it is <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>, then
returns a mutable reference to the contained value.</p>
<h5 id="examples-11"><a class="doc-anchor" href="#examples-11">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">None</span>;
{
<span class="kw">let </span>y: <span class="kw-2">&amp;mut </span>u32 = x.get_or_insert_default();
<span class="macro">assert_eq!</span>(y, <span class="kw-2">&amp;</span><span class="number">0</span>);
<span class="kw-2">*</span>y = <span class="number">7</span>;
}
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">7</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_or_insert_with" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.20.0">1.20.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1685-1687">Source</a></span><h4 class="code-header">pub fn <a href="#method.get_or_insert_with" class="fn">get_or_insert_with</a>&lt;F&gt;(&amp;mut self, f: F) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a><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>() -&gt; T,</div></h4></section></summary><div class="docblock"><p>Inserts a value computed from <code>f</code> into the option if it is <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>,
then returns a mutable reference to the contained value.</p>
<h5 id="examples-12"><a class="doc-anchor" href="#examples-12">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">None</span>;
{
<span class="kw">let </span>y: <span class="kw-2">&amp;mut </span>u32 = x.get_or_insert_with(|| <span class="number">5</span>);
<span class="macro">assert_eq!</span>(y, <span class="kw-2">&amp;</span><span class="number">5</span>);
<span class="kw-2">*</span>y = <span class="number">7</span>;
}
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">7</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.take" class="method"><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/option.rs.html#1720">Source</a></span><h4 class="code-header">pub fn <a href="#method.take" class="fn">take</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div class="docblock"><p>Takes the value out of the option, leaving a <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> in its place.</p>
<h5 id="examples-13"><a class="doc-anchor" href="#examples-13">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">Some</span>(<span class="number">2</span>);
<span class="kw">let </span>y = x.take();
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">None</span>);
<span class="macro">assert_eq!</span>(y, <span class="prelude-val">Some</span>(<span class="number">2</span>));
<span class="kw">let </span><span class="kw-2">mut </span>x: <span class="prelude-ty">Option</span>&lt;u32&gt; = <span class="prelude-val">None</span>;
<span class="kw">let </span>y = x.take();
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">None</span>);
<span class="macro">assert_eq!</span>(y, <span class="prelude-val">None</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.take_if" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.80.0">1.80.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1751-1753">Source</a></span><h4 class="code-header">pub fn <a href="#method.take_if" class="fn">take_if</a>&lt;P&gt;(&amp;mut self, predicate: P) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;<div class="where">where
P: <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>(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a>) -&gt; <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"><p>Takes the value out of the option, but only if the predicate evaluates to
<code>true</code> on a mutable reference to the value.</p>
<p>In other words, replaces <code>self</code> with <code>None</code> if the predicate returns <code>true</code>.
This method operates similar to <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#method.take" title="method core::option::Option::take"><code>Option::take</code></a> but conditional.</p>
<h5 id="examples-14"><a class="doc-anchor" href="#examples-14">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">Some</span>(<span class="number">42</span>);
<span class="kw">let </span>prev = x.take_if(|v| <span class="kw">if </span><span class="kw-2">*</span>v == <span class="number">42 </span>{
<span class="kw-2">*</span>v += <span class="number">1</span>;
<span class="bool-val">false
</span>} <span class="kw">else </span>{
<span class="bool-val">false
</span>});
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">43</span>));
<span class="macro">assert_eq!</span>(prev, <span class="prelude-val">None</span>);
<span class="kw">let </span>prev = x.take_if(|v| <span class="kw-2">*</span>v == <span class="number">43</span>);
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">None</span>);
<span class="macro">assert_eq!</span>(prev, <span class="prelude-val">Some</span>(<span class="number">43</span>));</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.replace" class="method"><span class="rightside"><span class="since" title="Stable since Rust version 1.31.0">1.31.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/option.rs.html#1778">Source</a></span><h4 class="code-header">pub fn <a href="#method.replace" class="fn">replace</a>(&amp;mut self, value: T) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</h4></section></summary><div class="docblock"><p>Replaces the actual value in the option by the value given in parameter,
returning the old value if present,
leaving a <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a> in its place without deinitializing either one.</p>
<h5 id="examples-15"><a class="doc-anchor" href="#examples-15">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">Some</span>(<span class="number">2</span>);
<span class="kw">let </span>old = x.replace(<span class="number">5</span>);
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">5</span>));
<span class="macro">assert_eq!</span>(old, <span class="prelude-val">Some</span>(<span class="number">2</span>));
<span class="kw">let </span><span class="kw-2">mut </span>x = <span class="prelude-val">None</span>;
<span class="kw">let </span>old = x.replace(<span class="number">3</span>);
<span class="macro">assert_eq!</span>(x, <span class="prelude-val">Some</span>(<span class="number">3</span>));
<span class="macro">assert_eq!</span>(old, <span class="prelude-val">None</span>);</code></pre></div>
</div></details></div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-Clone-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">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>(&amp;self) -&gt; <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: &amp;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-Component-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-Component-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../bevy_ecs/component/trait.Component.html" title="trait bevy_ecs::component::Component">Component</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a><div class="where">where
Self: <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> + 'static,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.STORAGE_TYPE" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#associatedconstant.STORAGE_TYPE" class="anchor">§</a><h4 class="code-header">const <a href="../bevy_ecs/component/trait.Component.html#associatedconstant.STORAGE_TYPE" class="constant">STORAGE_TYPE</a>: <a class="enum" href="../bevy_ecs/component/enum.StorageType.html" title="enum bevy_ecs::component::StorageType">StorageType</a> = bevy_ecs::component::StorageType::Table</h4></section></summary><div class='docblock'>A constant indicating the storage type used for this component.</div></details><details class="toggle method-toggle" open><summary><section id="method.register_required_components" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#method.register_required_components" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/component/trait.Component.html#method.register_required_components" class="fn">register_required_components</a>(
requiree: <a class="struct" href="../bevy_ecs/component/struct.ComponentId.html" title="struct bevy_ecs::component::ComponentId">ComponentId</a>,
components: &amp;mut <a class="struct" href="../bevy_ecs/component/struct.Components.html" title="struct bevy_ecs::component::Components">Components</a>,
storages: &amp;mut <a class="struct" href="../bevy_ecs/storage/struct.Storages.html" title="struct bevy_ecs::storage::Storages">Storages</a>,
required_components: &amp;mut <a class="struct" href="../bevy_ecs/component/struct.RequiredComponents.html" title="struct bevy_ecs::component::RequiredComponents">RequiredComponents</a>,
inheritance_depth: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u16.html">u16</a>,
)</h4></section></summary><div class='docblock'>Registers required components.</div></details><details class="toggle method-toggle" open><summary><section id="method.register_component_hooks" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#method.register_component_hooks" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/component/trait.Component.html#method.register_component_hooks" class="fn">register_component_hooks</a>(hooks: &amp;mut <a class="struct" href="../bevy_ecs/component/struct.ComponentHooks.html" title="struct bevy_ecs::component::ComponentHooks">ComponentHooks</a>)</h4></section></summary><div class='docblock'>Called when registering this component, allowing mutable access to its <a href="../bevy_ecs/component/struct.ComponentHooks.html" title="struct bevy_ecs::component::ComponentHooks"><code>ComponentHooks</code></a>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-Default-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <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.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></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_pbr/material.rs.html#1004">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>() -&gt; <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></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-Deref-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-Deref-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target" class="associatedtype trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#associatedtype.Target" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../bevy_render/render_resource/bind_group/struct.BindGroupId.html" title="struct bevy_render::render_resource::bind_group::BindGroupId">BindGroupId</a>&gt;</h4></section></summary><div class='docblock'>The resulting type after dereferencing.</div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#method.deref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fn">deref</a>(&amp;self) -&gt; &amp;Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></section></summary><div class='docblock'>Dereferences the value.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-DerefMut-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-DerefMut-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut" class="fn">deref_mut</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></section></summary><div class='docblock'>Mutably dereferences the value.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CBindGroup%3E-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1013-1017">Source</a><a href="#impl-From%3CBindGroup%3E-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../bevy_render/render_resource/bind_group/struct.BindGroup.html" title="struct bevy_render::render_resource::bind_group::BindGroup">BindGroup</a>&gt; for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1014-1016">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="../bevy_render/render_resource/bind_group/struct.BindGroup.html" title="struct bevy_render::render_resource::bind_group::BindGroup">BindGroup</a>) -&gt; 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-PartialEq-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-PartialEq-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">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>(&amp;self, other: &amp;<a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a>) -&gt; <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>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <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><section id="impl-Copy-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-Copy-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-Eq-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-Eq-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-StructuralPartialEq-for-MaterialBindGroupId" class="impl"><a class="src rightside" href="../src/bevy_pbr/material.rs.html#1004">Source</a><a href="#impl-StructuralPartialEq-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-MaterialBindGroupId" class="impl"><a href="#impl-Freeze-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-RefUnwindSafe-for-MaterialBindGroupId" class="impl"><a href="#impl-RefUnwindSafe-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-Send-for-MaterialBindGroupId" class="impl"><a href="#impl-Send-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-Sync-for-MaterialBindGroupId" class="impl"><a href="#impl-Sync-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-Unpin-for-MaterialBindGroupId" class="impl"><a href="#impl-Unpin-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section><section id="impl-UnwindSafe-for-MaterialBindGroupId" class="impl"><a href="#impl-UnwindSafe-for-MaterialBindGroupId" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.MaterialBindGroupId.html" title="struct bevy_pbr::MaterialBindGroupId">MaterialBindGroupId</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <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>(&amp;self) -&gt; <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-AsBindGroupShaderType%3CU%3E-for-T" class="impl"><a class="src rightside" href="../src/bevy_render/render_resource/bind_group.rs.html#425-427">Source</a><a href="#impl-AsBindGroupShaderType%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="../bevy_render/render_resource/bind_group/trait.AsBindGroupShaderType.html" title="trait bevy_render::render_resource::bind_group::AsBindGroupShaderType">AsBindGroupShaderType</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="../encase/core/traits/trait.ShaderType.html" title="trait encase::core::traits::ShaderType">ShaderType</a>,
<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;'a T</a>: for&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_bind_group_shader_type" class="method trait-impl"><a class="src rightside" href="../src/bevy_render/render_resource/bind_group.rs.html#430">Source</a><a href="#method.as_bind_group_shader_type" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_render/render_resource/bind_group/trait.AsBindGroupShaderType.html#tymethod.as_bind_group_shader_type" class="fn">as_bind_group_shader_type</a>(&amp;self, _images: &amp;<a class="struct" href="../bevy_render/render_asset/struct.RenderAssets.html" title="struct bevy_render::render_asset::RenderAssets">RenderAssets</a>&lt;<a class="struct" href="../bevy_render/texture/gpu_image/struct.GpuImage.html" title="struct bevy_render::texture::gpu_image::GpuImage">GpuImage</a>&gt;) -&gt; U</h4></section></summary><div class='docblock'>Return the <code>T</code> <a href="../encase/core/traits/trait.ShaderType.html" title="trait encase::core::traits::ShaderType"><code>ShaderType</code></a> for <code>self</code>. When used in <a href="../bevy_render/render_resource/bind_group/trait.AsBindGroup.html" title="trait bevy_render::render_resource::bind_group::AsBindGroup"><code>AsBindGroup</code></a>
derives, it is safe to assume that all images in <code>self</code> exist.</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; 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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; 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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;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-Bundle-for-C" class="impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#197">Source</a><a href="#impl-Bundle-for-C" class="anchor">§</a><h3 class="code-header">impl&lt;C&gt; <a class="trait" href="../bevy_ecs/bundle/trait.Bundle.html" title="trait bevy_ecs::bundle::Bundle">Bundle</a> for C<div class="where">where
C: <a class="trait" href="../bevy_ecs/component/trait.Component.html" title="trait bevy_ecs::component::Component">Component</a>,</div></h3></section></summary><div class="impl-items"><section id="method.component_ids" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#198-202">Source</a><a href="#method.component_ids" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/bundle/trait.Bundle.html#tymethod.component_ids" class="fn">component_ids</a>(
components: &amp;mut <a class="struct" href="../bevy_ecs/component/struct.Components.html" title="struct bevy_ecs::component::Components">Components</a>,
storages: &amp;mut <a class="struct" href="../bevy_ecs/storage/struct.Storages.html" title="struct bevy_ecs::storage::Storages">Storages</a>,
ids: &amp;mut impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="struct" href="../bevy_ecs/component/struct.ComponentId.html" title="struct bevy_ecs::component::ComponentId">ComponentId</a>),
)</h4></section><section id="method.from_components" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#206-210">Source</a><a href="#method.from_components" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../bevy_ecs/bundle/trait.Bundle.html#tymethod.from_components" class="fn">from_components</a>&lt;T, F&gt;(ctx: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut T</a>, func: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;mut F</a>) -&gt; C<div class="where">where
F: for&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;'a mut T</a>) -&gt; <a class="struct" href="../bevy_ptr/struct.OwningPtr.html" title="struct bevy_ptr::OwningPtr">OwningPtr</a>&lt;'a&gt;,</div></h4></section><details class="toggle method-toggle" open><summary><section id="method.register_required_components-1" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#217-221">Source</a><a href="#method.register_required_components-1" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/bundle/trait.Bundle.html#tymethod.register_required_components" class="fn">register_required_components</a>(
components: &amp;mut <a class="struct" href="../bevy_ecs/component/struct.Components.html" title="struct bevy_ecs::component::Components">Components</a>,
storages: &amp;mut <a class="struct" href="../bevy_ecs/storage/struct.Storages.html" title="struct bevy_ecs::storage::Storages">Storages</a>,
required_components: &amp;mut <a class="struct" href="../bevy_ecs/component/struct.RequiredComponents.html" title="struct bevy_ecs::component::RequiredComponents">RequiredComponents</a>,
)</h4></section></summary><div class='docblock'>Registers components that are required by the components in this <a href="../bevy_ecs/bundle/trait.Bundle.html" title="trait bevy_ecs::bundle::Bundle"><code>Bundle</code></a>.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_component_ids" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#232">Source</a><a href="#method.get_component_ids" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/bundle/trait.Bundle.html#tymethod.get_component_ids" class="fn">get_component_ids</a>(
components: &amp;<a class="struct" href="../bevy_ecs/component/struct.Components.html" title="struct bevy_ecs::component::Components">Components</a>,
ids: &amp;mut impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</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>&lt;<a class="struct" href="../bevy_ecs/component/struct.ComponentId.html" title="struct bevy_ecs::component::ComponentId">ComponentId</a>&gt;),
)</h4></section></summary><div class='docblock'>Gets this <a href="../bevy_ecs/bundle/trait.Bundle.html" title="trait bevy_ecs::bundle::Bundle"><code>Bundle</code></a>s component ids. This will be <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 the component has not been registered.</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&lt;T&gt; <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>(&amp;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%3CT%3E-for-T" class="impl"><a class="src rightside" href="../src/khronos_egl/lib.rs.html#148">Source</a><a href="#impl-Downcast%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../khronos_egl/trait.Downcast.html" title="trait khronos_egl::Downcast">Downcast</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><section id="method.downcast" class="method trait-impl"><a class="src rightside" href="../src/khronos_egl/lib.rs.html#149">Source</a><a href="#method.downcast" class="anchor">§</a><h4 class="code-header">fn <a href="../khronos_egl/trait.Downcast.html#tymethod.downcast" class="fn">downcast</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a></h4></section></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&lt;T&gt; <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" class="method trait-impl"><a class="src rightside" href="../src/downcast_rs/lib.rs.html#190">Source</a><a href="#method.into_any" 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>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Convert <code>Box&lt;dyn Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Box&lt;dyn Any&gt;</code>. <code>Box&lt;dyn Any&gt;</code> can
then be further <code>downcast</code> into <code>Box&lt;ConcreteType&gt;</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>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Convert <code>Rc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Rc&lt;Any&gt;</code>. <code>Rc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Rc&lt;ConcreteType&gt;</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>(&amp;self) -&gt; &amp;(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>&amp;Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;Any</code>s vtable from <code>&amp;Trait</code>s.</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/downcast_rs/lib.rs.html#193">Source</a><a href="#method.as_any_mut" 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>(&amp;mut self) -&gt; &amp;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>&amp;mut Trait</code> (where <code>Trait: Downcast</code>) to <code>&amp;Any</code>. This is needed since Rust cannot
generate <code>&amp;mut Any</code>s vtable from <code>&amp;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&lt;T&gt; <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>&lt;T&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Convert <code>Arc&lt;Trait&gt;</code> (where <code>Trait: Downcast</code>) to <code>Arc&lt;Any&gt;</code>. <code>Arc&lt;Any&gt;</code> can then be
further <code>downcast</code> into <code>Arc&lt;ConcreteType&gt;</code> where <code>ConcreteType</code> implements <code>Trait</code>.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynEq-for-T" class="impl"><a class="src rightside" href="../src/bevy_ecs/label.rs.html#25-27">Source</a><a href="#impl-DynEq-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../bevy_ecs/label/trait.DynEq.html" title="trait bevy_ecs::label::DynEq">DynEq</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/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_any" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/label.rs.html#29">Source</a><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/label/trait.DynEq.html#tymethod.as_any" class="fn">as_any</a>(&amp;self) -&gt; &amp;(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'>Casts the type to <code>dyn Any</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.dyn_eq" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/label.rs.html#33">Source</a><a href="#method.dyn_eq" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/label/trait.DynEq.html#tymethod.dyn_eq" class="fn">dyn_eq</a>(&amp;self, other: &amp;(dyn <a class="trait" href="../bevy_ecs/label/trait.DynEq.html" title="trait bevy_ecs::label::DynEq">DynEq</a> + 'static)) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal. <a href="../bevy_ecs/label/trait.DynEq.html#tymethod.dyn_eq">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynamicBundle-for-C" class="impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#237">Source</a><a href="#impl-DynamicBundle-for-C" class="anchor">§</a><h3 class="code-header">impl&lt;C&gt; <a class="trait" href="../bevy_ecs/bundle/trait.DynamicBundle.html" title="trait bevy_ecs::bundle::DynamicBundle">DynamicBundle</a> for C<div class="where">where
C: <a class="trait" href="../bevy_ecs/component/trait.Component.html" title="trait bevy_ecs::component::Component">Component</a>,</div></h3></section></summary><div class="impl-items"><section id="method.get_components" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/bundle.rs.html#239">Source</a><a href="#method.get_components" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/bundle/trait.DynamicBundle.html#tymethod.get_components" class="fn">get_components</a>(self, func: &amp;mut impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="enum" href="../bevy_ecs/component/enum.StorageType.html" title="enum bevy_ecs::component::StorageType">StorageType</a>, <a class="struct" href="../bevy_ptr/struct.OwningPtr.html" title="struct bevy_ptr::OwningPtr">OwningPtr</a>&lt;'_&gt;))</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q" class="impl"><a class="src rightside" href="../src/hashbrown/lib.rs.html#166-169">Source</a><a href="#impl-Equivalent%3CK%3E-for-Q" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; <a class="trait" href="../hashbrown/trait.Equivalent.html" title="trait hashbrown::Equivalent">Equivalent</a>&lt;K&gt; for Q<div class="where">where
Q: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</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>,
K: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<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.equivalent" class="method trait-impl"><a class="src rightside" href="../src/hashbrown/lib.rs.html#171">Source</a><a href="#method.equivalent" class="anchor">§</a><h4 class="code-header">fn <a href="../hashbrown/trait.Equivalent.html#tymethod.equivalent" class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this value is equivalent to the given key. <a href="../hashbrown/trait.Equivalent.html#tymethod.equivalent">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q-1" class="impl"><a class="src rightside" href="../src/hashbrown/lib.rs.html#155-158">Source</a><a href="#impl-Equivalent%3CK%3E-for-Q-1" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; <a class="trait" href="../hashbrown/trait.Equivalent.html" title="trait hashbrown::Equivalent">Equivalent</a>&lt;K&gt; for Q<div class="where">where
Q: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</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>,
K: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<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.equivalent-1" class="method trait-impl"><a class="src rightside" href="../src/hashbrown/lib.rs.html#160">Source</a><a href="#method.equivalent-1" class="anchor">§</a><h4 class="code-header">fn <a href="../hashbrown/trait.Equivalent.html#tymethod.equivalent" class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this value is equivalent to the given key. <a href="../hashbrown/trait.Equivalent.html#tymethod.equivalent">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q-2" class="impl"><a class="src rightside" href="../src/equivalent/lib.rs.html#82-85">Source</a><a href="#impl-Equivalent%3CK%3E-for-Q-2" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; <a class="trait" href="../equivalent/trait.Equivalent.html" title="trait equivalent::Equivalent">Equivalent</a>&lt;K&gt; for Q<div class="where">where
Q: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</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>,
K: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<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.equivalent-2" class="method trait-impl"><a class="src rightside" href="../src/equivalent/lib.rs.html#88">Source</a><a href="#method.equivalent-2" class="anchor">§</a><h4 class="code-header">fn <a href="../equivalent/trait.Equivalent.html#tymethod.equivalent" class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Compare self to <code>key</code> and return <code>true</code> if they are equal.</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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) -&gt; 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-FromWorld-for-T" class="impl"><a class="src rightside" href="../src/bevy_ecs/world/mod.rs.html#3782">Source</a><a href="#impl-FromWorld-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../bevy_ecs/world/trait.FromWorld.html" title="trait bevy_ecs::world::FromWorld">FromWorld</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_world" class="method trait-impl"><a class="src rightside" href="../src/bevy_ecs/world/mod.rs.html#3784">Source</a><a href="#method.from_world" class="anchor">§</a><h4 class="code-header">fn <a href="../bevy_ecs/world/trait.FromWorld.html#tymethod.from_world" class="fn">from_world</a>(_world: &amp;mut <a class="struct" href="../bevy_ecs/world/struct.World.html" title="struct bevy_ecs::world::World">World</a>) -&gt; T</h4></section></summary><div class="docblock"><p>Creates <code>Self</code> using <a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html#tymethod.default" title="associated function core::default::Default::default"><code>default()</code></a>.</p>
</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&lt;T&gt; <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>) -&gt; <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</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) -&gt; <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; 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>&lt;T&gt;,</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) -&gt; 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>&lt;T&gt; 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&lt;T&gt; <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>) -&gt; <a class="enum" href="../either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt;</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&lt;Self, Self&gt;</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&lt;Self, Self&gt;</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>&lt;F&gt;(self, into_left: F) -&gt; <a class="enum" href="../either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt;<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>(&amp;Self) -&gt; <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&lt;Self, Self&gt;</code></a>
if <code>into_left(&amp;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&lt;Self, Self&gt;</code></a>
otherwise. <a href="../either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Receiver-for-P" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#374-376">Source</a><a href="#impl-Receiver-for-P" class="anchor">§</a><h3 class="code-header">impl&lt;P, T&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html" title="trait core::ops::deref::Receiver">Receiver</a> for P<div class="where">where
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = T&gt; + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Target-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/ops/deref.rs.html#378">Source</a><a href="#associatedtype.Target-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/ops/deref/trait.Receiver.html#associatedtype.Target" class="associatedtype">Target</a> = T</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>arbitrary_self_types</code>)</span></div></span><div class='docblock'>The target type on which the method may be called.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-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&lt;T&gt; <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>(&amp;self) -&gt; 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>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; 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>&lt;T&gt;,</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) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<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>&gt;</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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; 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>&lt;T&gt;,</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> = &lt;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>&lt;T&gt;&gt;::<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) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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>&gt;</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&lt;T&gt; <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>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="../bevy_reflect/type_registry/trait.TypeData.html" title="trait bevy_reflect::type_registry::TypeData">TypeData</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Upcast%3CT%3E-for-T" class="impl"><a class="src rightside" href="../src/khronos_egl/lib.rs.html#158">Source</a><a href="#impl-Upcast%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../khronos_egl/trait.Upcast.html" title="trait khronos_egl::Upcast">Upcast</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><section id="method.upcast" class="method trait-impl"><a class="src rightside" href="../src/khronos_egl/lib.rs.html#159">Source</a><a href="#method.upcast" class="anchor">§</a><h4 class="code-header">fn <a href="../khronos_egl/trait.Upcast.html#tymethod.upcast" class="fn">upcast</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&amp;T</a>&gt;</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&lt;V, T&gt; <a class="trait" href="../ppv_lite86/types/trait.VZip.html" title="trait ppv_lite86::types::VZip">VZip</a>&lt;V&gt; 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>&lt;T&gt;,</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) -&gt; 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&lt;T&gt; <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>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;<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>&lt;<a class="struct" href="../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>&gt;,</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) -&gt; <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</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&lt;T&gt; <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-Settings-for-T" class="impl"><a class="src rightside" href="../src/bevy_asset/meta.rs.html#167">Source</a><a href="#impl-Settings-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../bevy_asset/meta/trait.Settings.html" title="trait bevy_asset::meta::Settings">Settings</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>,</div></h3></section><section id="impl-WasmNotSend-for-T" class="impl"><a class="src rightside" href="../src/wgpu_types/lib.rs.html#7477">Source</a><a href="#impl-WasmNotSend-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../wgpu_types/send_sync/trait.WasmNotSend.html" title="trait wgpu_types::send_sync::WasmNotSend">WasmNotSend</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-WasmNotSendSync-for-T" class="impl"><a class="src rightside" href="../src/wgpu_types/lib.rs.html#7461">Source</a><a href="#impl-WasmNotSendSync-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../wgpu_types/send_sync/trait.WasmNotSendSync.html" title="trait wgpu_types::send_sync::WasmNotSendSync">WasmNotSendSync</a> for T<div class="where">where
T: <a class="trait" href="../wgpu_types/send_sync/trait.WasmNotSend.html" title="trait wgpu_types::send_sync::WasmNotSend">WasmNotSend</a> + <a class="trait" href="../wgpu_types/send_sync/trait.WasmNotSync.html" title="trait wgpu_types::send_sync::WasmNotSync">WasmNotSync</a>,</div></h3></section><section id="impl-WasmNotSync-for-T" class="impl"><a class="src rightside" href="../src/wgpu_types/lib.rs.html#7510">Source</a><a href="#impl-WasmNotSync-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../wgpu_types/send_sync/trait.WasmNotSync.html" title="trait wgpu_types::send_sync::WasmNotSync">WasmNotSync</a> for T<div class="where">where
T: <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></div></section></div></main></body></html>