RenderSubGraph

Trait RenderSubGraph 

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

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

A strongly-typed class of labels used to identify a [SubGraph] in a render graph.

Required Methods§

Source

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

Clones this RenderSubGraph.

Provided Methods§

Source

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

Returns an Interned value corresponding to self.

Trait Implementations§

Source§

impl Hash for dyn RenderSubGraph

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 RenderSubGraph

Source§

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

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

fn ref_eq(&self, other: &(dyn RenderSubGraph + '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 RenderSubGraph

Source§

fn eq(&self, other: &(dyn RenderSubGraph + 'static)) -> 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 RenderSubGraph

Implementors§