Trait bevy::render::render_graph::RenderLabel
source · pub trait RenderLabel: 'static + Send + Sync + Debug {
// Required methods
fn dyn_clone(&self) -> Box<dyn RenderLabel>;
fn as_dyn_eq(&self) -> &(dyn DynEq + 'static);
fn dyn_hash(&self, state: &mut dyn Hasher);
// Provided method
fn intern(&self) -> Interned<dyn RenderLabel>
where Self: Sized { ... }
}
Expand description
A strongly-typed class of labels used to identify a Node
in a render graph.
Required Methods§
sourcefn dyn_clone(&self) -> Box<dyn RenderLabel>
fn dyn_clone(&self) -> Box<dyn RenderLabel>
Clones this RenderLabel
.
Provided Methods§
Trait Implementations§
source§impl Hash for dyn RenderLabel
impl Hash for dyn RenderLabel
source§impl Internable for dyn RenderLabel
impl Internable for dyn RenderLabel
source§fn leak(&self) -> &'static dyn RenderLabel
fn leak(&self) -> &'static dyn RenderLabel
Creates a static reference to
self
, possibly leaking memory.source§fn ref_eq(&self, other: &(dyn RenderLabel + 'static)) -> bool
fn ref_eq(&self, other: &(dyn RenderLabel + 'static)) -> bool
Returns
true
if the two references point to the same value.source§impl PartialEq for dyn RenderLabel
impl PartialEq for dyn RenderLabel
source§fn eq(&self, other: &(dyn RenderLabel + 'static)) -> bool
fn eq(&self, other: &(dyn RenderLabel + 'static)) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.