[][src]Struct gcode::Word

#[repr(C)]pub struct Word {
    pub letter: char,
    pub value: f32,
    pub span: Span,
}

A char-f32 pair, used for things like arguments (X3.14), command numbers (G90) and line numbers (N10).

Fields

letter: char

The letter part of this Word.

value: f32

The value part.

span: Span

Where the Word lies in the original string.

Methods

impl Word[src]

pub fn new(letter: char, value: f32, span: Span) -> Self[src]

Create a new Word.

Trait Implementations

impl Clone for Word[src]

impl Copy for Word[src]

impl Debug for Word[src]

impl<'de> Deserialize<'de> for Word[src]

impl Display for Word[src]

impl<A: Buffer<Word>> Extend<Word> for GCode<A>[src]

impl PartialEq<Word> for Word[src]

impl Serialize for Word[src]

impl StructuralPartialEq for Word[src]

Auto Trait Implementations

impl RefUnwindSafe for Word

impl Send for Word

impl Sync for Word

impl Unpin for Word

impl UnwindSafe for Word

Blanket Implementations

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

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

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

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

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> ToString for T where
    T: Display + ?Sized
[src]

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.