pub trait Operation {
// Provided methods
fn output_type(&self) -> OutputType { ... }
fn process_2d(
&self,
_context: &mut RenderContext,
) -> RenderResult<Geometry2DOutput> { ... }
fn process_3d(
&self,
_context: &mut RenderContext,
) -> RenderResult<Geometry3DOutput> { ... }
}Expand description
Operation trait.
Provided Methods§
Sourcefn output_type(&self) -> OutputType
fn output_type(&self) -> OutputType
The output type of this operation.
By default, the output type is undetermined.
Sourcefn process_2d(
&self,
_context: &mut RenderContext,
) -> RenderResult<Geometry2DOutput>
fn process_2d( &self, _context: &mut RenderContext, ) -> RenderResult<Geometry2DOutput>
Process the model and output a 2D geometry.
Sourcefn process_3d(
&self,
_context: &mut RenderContext,
) -> RenderResult<Geometry3DOutput>
fn process_3d( &self, _context: &mut RenderContext, ) -> RenderResult<Geometry3DOutput>
Process the model and output a 3D geometry.