Render

Trait Render 

Source
pub trait Render<T> {
    // Required method
    fn render(&self, context: &mut RenderContext) -> RenderResult<T>;
}
Expand description

The render trait.

Required Methods§

Source

fn render(&self, context: &mut RenderContext) -> RenderResult<T>

Render method.

Implementors§

Source§

impl Render<Option<Rc<Geometry2D>>> for BuiltinWorkpiece

Source§

impl Render<Option<Rc<Geometry2D>>> for Models

Source§

impl Render<Option<Rc<Geometry2D>>> for Model

This implementation renders a Geometry2D out of a Model.

Notes:

  • The impl attaches the output geometry to the model’s render output.
  • It is assumed the model has been pre-rendered.
Source§

impl Render<Option<Rc<Geometry3D>>> for BuiltinWorkpiece

Source§

impl Render<Option<Rc<Geometry3D>>> for Models

Source§

impl Render<Option<Rc<Geometry3D>>> for Model

This implementation renders a Geometry3D out of a Model.

Notes:

  • The impl attaches the output geometry to the model’s render output.
  • It is assumed the model has been pre-rendered.
Source§

impl Render<Model> for Model

Source§

impl Render<Geometries2D> for Models

Source§

impl Render<Geometries3D> for Models