Enum g_code::parse::lexer::LexicalError[][src]

pub enum LexicalError {
    UnexpectedCharacter(usizechar),
    UnexpectedNewline(usizeLexerState),
    UnexpectedEOF(usizeLexerState),
    ParseIntError(ParseIntErrorusizeusize),
    ParseRatioError(ParseRatioErrorusizeusize),
}

Variants

UnexpectedCharacter(usizechar)

This character is not part of the ASCII character set, or its presence does not make sense in the context of GCode (i.e. a stray dollar sign)

UnexpectedNewline(usizeLexerState)

A LexTok::InlineComment started but a LexTok::Newline was encountered before it was finished.

UnexpectedEOF(usizeLexerState)

Input ended prematurely while building a LexTok::String or LexTok::InlineComment both of which require a closing delimiter

ParseIntError(ParseIntErrorusizeusize)

A LexTok::Integer was out of the bounds of a usize.

ParseRatioError(ParseRatioErrorusizeusize)

Trait Implementations

impl Clone for LexicalError[src]

impl Debug for LexicalError[src]

impl PartialEq<LexicalError> for LexicalError[src]

impl StructuralPartialEq for LexicalError[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> 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.