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§
Sourcefn dyn_clone(&self) -> Box<dyn DrawFunctionLabel>
fn dyn_clone(&self) -> Box<dyn DrawFunctionLabel>
Clones this DrawFunctionLabel.
Provided Methods§
Trait Implementations§
impl Eq for dyn DrawFunctionLabel
Source§impl Hash for dyn DrawFunctionLabel
impl Hash for dyn DrawFunctionLabel
Source§impl Internable for dyn DrawFunctionLabel
impl Internable for dyn DrawFunctionLabel
Source§fn leak(&self) -> &'static dyn DrawFunctionLabel
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
fn ref_eq(&self, other: &(dyn DrawFunctionLabel + 'static)) -> bool
Returns
true if the two references point to the same value.Source§impl PartialEq for dyn DrawFunctionLabel
impl PartialEq for dyn DrawFunctionLabel
Source§fn eq(&self, other: &(dyn DrawFunctionLabel + 'static)) -> bool
fn eq(&self, other: &(dyn DrawFunctionLabel + 'static)) -> bool
Tests for
self and other values to be equal, and is used by ==.Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".