ShaderLabel

Trait ShaderLabel 

Source
pub trait ShaderLabel:
    Send
    + Sync
    + Debug
    + DynEq
    + DynHash {
    // Required method
    fn dyn_clone(&self) -> Box<dyn ShaderLabel>;

    // Provided method
    fn intern(&self) -> Interned<dyn ShaderLabel>
       where Self: Sized { ... }
}
Expand description

Labels used to uniquely identify types of material shaders

Required Methods§

Source

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

Clones this ShaderLabel.

Provided Methods§

Source

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

Returns an Interned value corresponding to self.

Trait Implementations§

Source§

impl Hash for dyn ShaderLabel

Source§

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

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

impl Internable for dyn ShaderLabel

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 ShaderLabel

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 ShaderLabel

Implementations on Foreign Types§

Source§

impl ShaderLabel for Interned<dyn ShaderLabel>

Source§

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

Source§

fn intern(&self) -> Self

Implementors§