Struct gcode::Gcode[][src]

pub struct Gcode { /* fields omitted */ }

A single command in the gcode programming language.

Methods

impl Gcode
[src]

Create a new Gcode.

Get the Mnemonic used by this Gcode.

Get the location of this Gcode in the original text.

The arguments provided to the Gcode.

Get the line number given to this gode (e.g. the 20 in N20 G04 P100).

Deprecated

The number associated with this Gcode (e.g. the 01 in G01 X123).

The integral part of the Gcode's number field.

The first digit after the decimal point, if there was one.

Note

For all intents and purposes, a gcode like G1.0 doesn't really have a minor number.

Add an argument to this Gcode's argument list.

A builder method for adding an argument to the Gcode.

A builder method for attaching a line number (the 30 in N30 G01 X32) to a command.

Find the value for the desired argument.

Trait Implementations

impl Debug for Gcode
[src]

Formats the value using the given formatter. Read more

impl Default for Gcode
[src]

Returns the "default value" for a type. Read more

impl Clone for Gcode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Gcode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Gcode
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Gcode

impl Sync for Gcode