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
Auto Trait Implementations
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more