Skip to main content

DrawFunctionLabel

Trait DrawFunctionLabel 

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

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

Labels used to uniquely identify types of material shaders

Required Methods§

Source

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

Clones this DrawFunctionLabel.

Provided Methods§

Source

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

Returns an Interned value corresponding to self.

Trait Implementations§

Source§

impl Eq for dyn DrawFunctionLabel

Source§

impl Hash for dyn DrawFunctionLabel

Source§

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

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

impl Internable for dyn DrawFunctionLabel

Source§

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

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

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

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

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

Feeds the reference to the hasher.
Source§

impl PartialEq for dyn DrawFunctionLabel

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl DrawFunctionLabel for DeferredAlphaMaskDrawFunction

Source§

impl DrawFunctionLabel for DeferredOpaqueDrawFunction
where DeferredOpaqueDrawFunction: 'static + Send + Sync + Clone + Eq + Debug + Hash,

Source§

impl DrawFunctionLabel for Interned<dyn DrawFunctionLabel>

Source§

impl DrawFunctionLabel for MainPassAlphaMaskDrawFunction

Source§

impl DrawFunctionLabel for MainPassOpaqueDrawFunction
where MainPassOpaqueDrawFunction: 'static + Send + Sync + Clone + Eq + Debug + Hash,

Source§

impl DrawFunctionLabel for MainPassTransmissiveDrawFunction

Source§

impl DrawFunctionLabel for MainPassTransparentDrawFunction

Source§

impl DrawFunctionLabel for PrepassAlphaMaskDrawFunction

Source§

impl DrawFunctionLabel for PrepassOpaqueDepthOnlyDrawFunction

Source§

impl DrawFunctionLabel for PrepassOpaqueDrawFunction
where PrepassOpaqueDrawFunction: 'static + Send + Sync + Clone + Eq + Debug + Hash,

Source§

impl DrawFunctionLabel for ShadowsDepthOnlyDrawFunction

Source§

impl DrawFunctionLabel for ShadowsDrawFunction
where ShadowsDrawFunction: 'static + Send + Sync + Clone + Eq + Debug + Hash,