orbtk_tinyskia

Trait PipelineTrait

Source
pub trait PipelineTrait:
    RenderPipeline
    + Any
    + Send {
    // Required methods
    fn box_eq(&self, other: &dyn Any) -> bool;
    fn as_any(&self) -> &dyn Any;
    fn clone_box(&self) -> Box<dyn PipelineTrait>;

    // Provided method
    fn draw_pipeline(&self, image: &mut RenderTarget) { ... }
}
Expand description

Used to implement a custom render pipeline.

Required Methods§

Source

fn box_eq(&self, other: &dyn Any) -> bool

Equality for two Pipeline objects.

Source

fn as_any(&self) -> &dyn Any

Converts self to an any reference.

Source

fn clone_box(&self) -> Box<dyn PipelineTrait>

Clones self as box.

Provided Methods§

Source

fn draw_pipeline(&self, image: &mut RenderTarget)

Draws the ctx of the pipeline.

Trait Implementations§

Source§

impl Clone for Box<dyn PipelineTrait>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Box<dyn PipelineTrait>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Box<dyn PipelineTrait>

Source§

fn eq(&self, other: &Box<dyn PipelineTrait>) -> 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.

Implementors§