pub struct Line<'input> { /* private fields */ }
Expand description
A sequence of g-code that is either followed by a Newline or at the end of a file.
Implementations§
source§impl<'input> Line<'input>
impl<'input> Line<'input>
sourcepub fn iter_fields(&self) -> impl Iterator<Item = &Field<'input>>
pub fn iter_fields(&self) -> impl Iterator<Item = &Field<'input>>
Iterate by Field in a line of g-code.
sourcepub fn iter_flags(&self) -> impl Iterator<Item = &Flag<'input>>
pub fn iter_flags(&self) -> impl Iterator<Item = &Flag<'input>>
Iterate by Flag in a line of g-code.
sourcepub fn iter_inline_comments(
&self,
) -> impl Iterator<Item = &InlineComment<'input>>
pub fn iter_inline_comments( &self, ) -> impl Iterator<Item = &InlineComment<'input>>
Iterate by InlineComment in a line of g-code.
sourcepub fn iter_whitespace(&self) -> impl Iterator<Item = &Whitespace<'input>>
pub fn iter_whitespace(&self) -> impl Iterator<Item = &Whitespace<'input>>
Iterate by Whitespace in a line of g-code.
sourcepub fn iter_emit_tokens<'a>(
&'a self,
) -> impl Iterator<Item = Token<'input>> + 'a
pub fn iter_emit_tokens<'a>( &'a self, ) -> impl Iterator<Item = Token<'input>> + 'a
Iterate by emission Token in a line of g-code.
sourcepub fn compute_checksum(&self) -> u8
pub fn compute_checksum(&self) -> u8
Trait Implementations§
impl<'input> Eq for Line<'input>
impl<'input> StructuralPartialEq for Line<'input>
Auto Trait Implementations§
impl<'input> Freeze for Line<'input>
impl<'input> RefUnwindSafe for Line<'input>
impl<'input> Send for Line<'input>
impl<'input> Sync for Line<'input>
impl<'input> Unpin for Line<'input>
impl<'input> UnwindSafe for Line<'input>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)