pub trait ModelingCmdVariant: Serialize {
type Output: ModelingCmdOutput;
// Required methods
fn into_enum(self) -> ModelingCmd;
fn name() -> &'static str;
}
Expand description
Some modeling command executed on the KittyCAD engine.
Required Associated Types§
Sourcetype Output: ModelingCmdOutput
type Output: ModelingCmdOutput
What the command responds with
Required Methods§
Sourcefn into_enum(self) -> ModelingCmd
fn into_enum(self) -> ModelingCmd
Take this specific enum variant, and create the general enum.
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.