BuiltinWorkbenchDefinition

Trait BuiltinWorkbenchDefinition 

Source
pub trait BuiltinWorkbenchDefinition {
    // Required methods
    fn id() -> &'static str;
    fn kind() -> BuiltinWorkbenchKind;
    fn workpiece_function() -> &'static BuiltinWorkpieceFn;

    // Provided methods
    fn help() -> Option<&'static str> { ... }
    fn output_type() -> OutputType { ... }
    fn workpiece(creator: Creator) -> BuiltinWorkpiece { ... }
    fn model(creator: Creator) -> Model { ... }
    fn function() -> &'static BuiltinFn { ... }
    fn doc() -> Option<DocBlock> { ... }
    fn parameters() -> ParameterValueList { ... }
    fn symbol() -> Symbol { ... }
}
Expand description

Builtin part definition

Required Methods§

Source

fn id() -> &'static str

Get id of the builtin part

Source

fn kind() -> BuiltinWorkbenchKind

The kind of the built-in workbench.

Source

fn workpiece_function() -> &'static BuiltinWorkpieceFn

The function that generates an output from the workpiece.

Provided Methods§

Source

fn help() -> Option<&'static str>

A help string as markdown.

Source

fn output_type() -> OutputType

The expected output type.

Source

fn workpiece(creator: Creator) -> BuiltinWorkpiece

Construct the workpiece from an argument tuple.

Source

fn model(creator: Creator) -> Model

Create model from workpiece and creator.

Source

fn function() -> &'static BuiltinFn

Workbench function

Source

fn doc() -> Option<DocBlock>

Workbench function

Source

fn parameters() -> ParameterValueList

Part initialization parameters

Source

fn symbol() -> Symbol

Create builtin symbol

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§