Struct svg2gcode::Machine [−][src]
pub struct Machine<'input> { /* fields omitted */ }
Expand description
Generic machine state simulation, assuming nothing is known about the machine when initialized. This is used to reduce output G-Code verbosity and run repetitive actions.
Implementations
pub fn new(
supported_functionality: SupportedFunctionality,
tool_on_sequence: Option<Snippet<'input>>,
tool_off_sequence: Option<Snippet<'input>>,
program_begin_sequence: Option<Snippet<'input>>,
program_end_sequence: Option<Snippet<'input>>
) -> Self
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.
Trait Implementations
Auto Trait Implementations
impl<'input> RefUnwindSafe for Machine<'input>
impl<'input> UnwindSafe for Machine<'input>
Blanket Implementations
Mutably borrows from an owned value. Read more