24 lines
22 KiB
HTML
24 lines
22 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A strongly-typed class of labels used to identify a `Node` in a render graph."><title>RenderLabel in bevy_render::render_graph - 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_render" 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 trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../bevy_render/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_render/index.html"><img src="https://bevyengine.org/assets/icon.png" alt="logo"></a><h2><a href="../../bevy_render/index.html">bevy_<wbr>render</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Render<wbr>Label</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.as_dyn_eq" title="as_dyn_eq">as_dyn_eq</a></li><li><a href="#tymethod.dyn_clone" title="dyn_clone">dyn_clone</a></li><li><a href="#tymethod.dyn_hash" title="dyn_hash">dyn_hash</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.intern" title="intern">intern</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-RenderLabel-for-Interned%3Cdyn+RenderLabel%3E" title="Interned<dyn RenderLabel>">Interned<dyn RenderLabel></a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Eq-for-dyn+RenderLabel" title="Eq">Eq</a></li><li><a href="#impl-Hash-for-dyn+RenderLabel" title="Hash">Hash</a></li><li><a href="#impl-Internable-for-dyn+RenderLabel" title="Internable">Internable</a></li><li><a href="#impl-PartialEq-for-dyn+RenderLabel" title="PartialEq">PartialEq</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In bevy_<wbr>render::<wbr>render_<wbr>graph</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_render</a>::<wbr><a href="index.html">render_graph</a></span><h1>Trait <span class="trait">RenderLabel</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_render/render_graph/node.rs.html#25-29">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RenderLabel:
|
|
'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/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> {
|
|
// Required methods
|
|
fn <a href="#tymethod.dyn_clone" class="fn">dyn_clone</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a>>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.as_dyn_eq" class="fn">as_dyn_eq</a>(&self) -> &dyn <a class="trait" href="trait.DynEq.html" title="trait bevy_render::render_graph::DynEq">DynEq</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.dyn_hash" class="fn">dyn_hash</a>(&self, state: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>);
|
|
|
|
// Provided method
|
|
fn <a href="#method.intern" class="fn">intern</a>(&self) -> <a class="struct" href="../../bevy_ecs/intern/struct.Interned.html" title="struct bevy_ecs::intern::Interned">Interned</a><dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a>>
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A strongly-typed class of labels used to identify a <a href="trait.Node.html" title="trait bevy_render::render_graph::Node"><code>Node</code></a> in a render graph.</p>
|
|
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.dyn_clone" class="method"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><h4 class="code-header">fn <a href="#tymethod.dyn_clone" class="fn">dyn_clone</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a>></h4></section></summary><div class="docblock"><p>Clones this <code>RenderLabel</code>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.as_dyn_eq" class="method"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><h4 class="code-header">fn <a href="#tymethod.as_dyn_eq" class="fn">as_dyn_eq</a>(&self) -> &dyn <a class="trait" href="trait.DynEq.html" title="trait bevy_render::render_graph::DynEq">DynEq</a></h4></section></summary><div class="docblock"><p>Casts this value to a form where it can be compared with other type-erased values.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dyn_hash" class="method"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><h4 class="code-header">fn <a href="#tymethod.dyn_hash" class="fn">dyn_hash</a>(&self, state: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>)</h4></section></summary><div class="docblock"><p>Feeds this value into the given [<code>Hasher</code>].</p>
|
|
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.intern" class="method"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><h4 class="code-header">fn <a href="#method.intern" class="fn">intern</a>(&self) -> <a class="struct" href="../../bevy_ecs/intern/struct.Interned.html" title="struct bevy_ecs::intern::Interned">Interned</a><dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a>><div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns an <a href="../../bevy_ecs/intern/struct.Interned.html" title="struct bevy_ecs::intern::Interned"><code>Interned</code></a> value corresponding to <code>self</code>.</p>
|
|
</div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-dyn+RenderLabel" class="impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#impl-Hash-for-dyn+RenderLabel" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a><H: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Internable-for-dyn+RenderLabel" class="impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#impl-Internable-for-dyn+RenderLabel" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../bevy_ecs/intern/trait.Internable.html" title="trait bevy_ecs::intern::Internable">Internable</a> for dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.leak" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.leak" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_ecs/intern/trait.Internable.html#tymethod.leak" class="fn">leak</a>(&self) -> &'static Self</h4></section></summary><div class='docblock'>Creates a static reference to <code>self</code>, possibly leaking memory.</div></details><details class="toggle method-toggle" open><summary><section id="method.ref_eq" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.ref_eq" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_ecs/intern/trait.Internable.html#tymethod.ref_eq" class="fn">ref_eq</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Returns <code>true</code> if the two references point to the same value.</div></details><details class="toggle method-toggle" open><summary><section id="method.ref_hash" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.ref_hash" class="anchor">§</a><h4 class="code-header">fn <a href="../../bevy_ecs/intern/trait.Internable.html#tymethod.ref_hash" class="fn">ref_hash</a><H: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut H</a>)</h4></section></summary><div class='docblock'>Feeds the reference to the hasher.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-dyn+RenderLabel" class="impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#impl-PartialEq-for-dyn+RenderLabel" 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 dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</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_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
|
and should not be overridden without very good reason.</div></details></div></details><section id="impl-Eq-for-dyn+RenderLabel" class="impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#impl-Eq-for-dyn+RenderLabel" 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 dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a></h3></section></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-RenderLabel-for-Interned%3Cdyn+RenderLabel%3E" class="impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#impl-RenderLabel-for-Interned%3Cdyn+RenderLabel%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a> for <a class="struct" href="../../bevy_ecs/intern/struct.Interned.html" title="struct bevy_ecs::intern::Interned">Interned</a><dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_dyn_eq" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.as_dyn_eq" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.as_dyn_eq" class="fn">as_dyn_eq</a>(&self) -> &dyn <a class="trait" href="trait.DynEq.html" title="trait bevy_render::render_graph::DynEq">DynEq</a></h4></section></summary><div class="docblock"><p>Casts this value to a form where it can be compared with other type-erased values.</p>
|
|
</div></details><section id="method.dyn_clone" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.dyn_clone" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.dyn_clone" class="fn">dyn_clone</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a>></h4></section><section id="method.dyn_hash" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.dyn_hash" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.dyn_hash" class="fn">dyn_hash</a>(&self, state: &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>)</h4></section><section id="method.intern-1" class="method trait-impl"><a class="src rightside" href="../../src/bevy_render/render_graph/node.rs.html#25-29">Source</a><a href="#method.intern-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.intern" class="fn">intern</a>(&self) -> Self</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-RenderLabel-for-CameraDriverLabel" class="impl"><a class="src rightside" href="../../src/bevy_render/lib.rs.html#238">Source</a><a href="#impl-RenderLabel-for-CameraDriverLabel" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a> for <a class="struct" href="../graph/struct.CameraDriverLabel.html" title="struct bevy_render::graph::CameraDriverLabel">CameraDriverLabel</a><div class="where">where
|
|
Self: '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> + <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/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,</div></h3></section><section id="impl-RenderLabel-for-GraphInput" class="impl"><a class="src rightside" href="../../src/bevy_render/render_graph/graph.rs.html#78">Source</a><a href="#impl-RenderLabel-for-GraphInput" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RenderLabel.html" title="trait bevy_render::render_graph::RenderLabel">RenderLabel</a> for <a class="struct" href="struct.GraphInput.html" title="struct bevy_render::render_graph::GraphInput">GraphInput</a><div class="where">where
|
|
Self: '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> + <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/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,</div></h3></section></div><script src="../../trait.impl/bevy_render/render_graph/node/trait.RenderLabel.js" data-ignore-extern-crates="bevy_ecs" async></script></section></div></main></body></html> |