bevy_render::render_graph

Trait 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;
    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§

Source

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

Clones this RenderLabel.

Source

fn as_dyn_eq(&self) -> &dyn DynEq

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

Source

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

Feeds this value into the given [Hasher].

Provided Methods§

Source

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

Returns an Interned value corresponding to self.

Trait Implementations§

Source§

impl Hash for dyn RenderLabel

Source§

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

Feeds this value into the given Hasher. Read more
Source§

impl Internable for dyn RenderLabel

Source§

fn leak(&self) -> &'static Self

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

fn ref_eq(&self, other: &Self) -> bool

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

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

Feeds the reference to the hasher.
Source§

impl PartialEq for dyn RenderLabel

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl Eq for dyn RenderLabel

Implementations on Foreign Types§

Source§

impl RenderLabel for Interned<dyn RenderLabel>

Source§

fn as_dyn_eq(&self) -> &dyn DynEq

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

Source§

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

Source§

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

Source§

fn intern(&self) -> Self

Implementors§

Source§

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

Source§

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