Struct svg2gcode::Machine[][src]

pub struct Machine<'input> {
    pub tool_on_action: Option<Snippet<'input>>,
    pub tool_off_action: Option<Snippet<'input>>,
    pub program_begin_sequence: Option<Snippet<'input>>,
    pub program_end_sequence: Option<Snippet<'input>>,
    // some fields omitted
}
Expand description

Generic machine state simulation, assuming nothing is known about the machine when initialized. This is used to reduce output GCode verbosity and run repetitive actions.

Fields

tool_on_action: Option<Snippet<'input>>tool_off_action: Option<Snippet<'input>>program_begin_sequence: Option<Snippet<'input>>program_end_sequence: Option<Snippet<'input>>

Implementations

Output gcode to turn the tool on.

Output gcode to turn the tool off.

Output user-defined setup gcode

Output user-defined teardown gcode

Output absolute distance field if mode was relative or unknown.

Output relative distance field if mode was absolute or unknown.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.