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