Trait bevy::render::render_graph::RenderLabel

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§

fn dyn_clone(&self) -> Box<dyn RenderLabel>

Clones this RenderLabel.

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts this value to a form where it can be compared with other type-erased values.

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given [Hasher].

Provided Methods§

fn intern(&self) -> Interned<dyn RenderLabel>
where Self: Sized,

Returns an Interned value corresponding to self.

Trait Implementations§

§

impl Hash for dyn RenderLabel

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
§

impl Internable for dyn RenderLabel

§

fn leak(&self) -> &'static dyn RenderLabel

Creates a static reference to self, possibly leaking memory.
§

fn ref_eq(&self, other: &(dyn RenderLabel + 'static)) -> bool

Returns true if the two references point to the same value.
§

fn ref_hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds the reference to the hasher.
§

impl PartialEq for dyn RenderLabel

§

fn eq(&self, other: &(dyn RenderLabel + 'static)) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for dyn RenderLabel

Implementors§

§

impl RenderLabel for Node2d
where Node2d: 'static + Send + Sync + Clone + Eq + Debug + Hash,

§

impl RenderLabel for Node3d
where Node3d: 'static + Send + Sync + Clone + Eq + Debug + Hash,

§

impl RenderLabel for NodeMeshlet
where NodeMeshlet: 'static + Send + Sync + Clone + Eq + Debug + Hash,

§

impl RenderLabel for NodePbr
where NodePbr: 'static + Send + Sync + Clone + Eq + Debug + Hash,

§

impl RenderLabel for NodeUi
where NodeUi: 'static + Send + Sync + Clone + Eq + Debug + Hash,

§

impl RenderLabel for Interned<dyn RenderLabel>

§

impl RenderLabel for CameraDriverLabel
where CameraDriverLabel: 'static + Send + Sync + Clone + Eq + Debug + Hash,

§

impl RenderLabel for GraphInput
where GraphInput: 'static + Send + Sync + Clone + Eq + Debug + Hash,