Struct ngc::ast::Block

source · []
pub struct Block {
    pub lineno: usize,
    pub blockdel: bool,
    pub words: Vec<Word>,
    pub assignments: Vec<ParAssign>,
}
Expand description

A block (source line), which contains a number of words and parameter assignments.

Fields

lineno: usize

Line number in the original file.

blockdel: bool

True if the line was “block deleted”; i.e. starts with a slash.

Execution of these lines can be switched with a global flag.

words: Vec<Word>

Words (e.g. G0 or X5.2) found in the line. The ordering is irrelevant to G-code.

assignments: Vec<ParAssign>

Assignments (e.g. #1=4.2) found in the line. The ordering, and ordering with respect to words, are irrelevant to G-code.

Trait Implementations

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

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.