[][src]Enum gcode::Mnemonic

#[repr(C)]pub enum Mnemonic {
    General,
    Miscellaneous,
    ProgramNumber,
    ToolChange,
}

The general category for a GCode.

Variants

General

Preparatory commands, often telling the controller what kind of motion or offset is desired.

Miscellaneous

Auxilliary commands.

ProgramNumber

Used to give the current program a unique "name".

ToolChange

Tool selection.

Methods

impl Mnemonic[src]

pub fn for_letter(letter: char) -> Option<Mnemonic>[src]

Try to convert a letter to its Mnemonic equivalent.

Examples

assert_eq!(Mnemonic::for_letter('M'), Some(Mnemonic::Miscellaneous));
assert_eq!(Mnemonic::for_letter('g'), Some(Mnemonic::General));

Trait Implementations

impl Clone for Mnemonic[src]

impl Copy for Mnemonic[src]

impl Debug for Mnemonic[src]

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

impl Display for Mnemonic[src]

impl Eq for Mnemonic[src]

impl Hash for Mnemonic[src]

impl PartialEq<Mnemonic> for Mnemonic[src]

impl Serialize for Mnemonic[src]

impl StructuralEq for Mnemonic[src]

impl StructuralPartialEq for Mnemonic[src]

Auto Trait Implementations

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.