pub trait Render<T> {
// Required method
fn render(&self, context: &mut RenderContext) -> RenderResult<T>;
}
Expand description
The render trait.
Required Methods§
Sourcefn render(&self, context: &mut RenderContext) -> RenderResult<T>
fn render(&self, context: &mut RenderContext) -> RenderResult<T>
Render method.
Implementors§
impl Render<Option<Rc<Geometry2D>>> for BuiltinWorkpiece
impl Render<Option<Rc<Geometry2D>>> for Models
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.
impl Render<Option<Rc<Geometry3D>>> for BuiltinWorkpiece
impl Render<Option<Rc<Geometry3D>>> for Models
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.