[][src]Struct gcode::Line

pub struct Line<'input> { /* fields omitted */ }

Methods

impl<'input> Line<'input>[src]

pub fn gcodes(&self) -> &[GCode][src]

pub fn comments(&self) -> &[Comment<'input>][src]

pub fn push_gcode(&mut self, gcode: GCode)[src]

pub fn push_comment(&mut self, comment: Comment<'input>)[src]

pub fn is_empty(&self) -> bool[src]

pub fn line_number(&self) -> Option<Word>[src]

pub fn set_line_number<W: Into<Option<Word>>>(&mut self, line_number: W)[src]

pub fn span(&self) -> Span[src]

Trait Implementations

impl<'input> PartialEq<Line<'input>> for Line<'input>[src]

impl<'input> Default for Line<'input>[src]

impl<'input> Clone for Line<'input>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'input> Debug for Line<'input>[src]

impl<'input> Serialize for Line<'input>[src]

impl<'de: 'input, 'input> Deserialize<'de> for Line<'input>[src]

Auto Trait Implementations

impl<'input> Send for Line<'input>

impl<'input> Unpin for Line<'input>

impl<'input> Sync for Line<'input>

impl<'input> UnwindSafe for Line<'input>

impl<'input> RefUnwindSafe for Line<'input>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]