[][src]Struct ch8alib::error::LexerError

pub struct LexerError { /* fields omitted */ }

Created when a Lexer encounters an error

Methods

impl LexerError[src]

pub fn new(bad_line: u32, bad_col: u32, bad_char: char) -> Self[src]

Constructs a new LexerError instance

Arguments

  • bad_line - The line that the error was triggered on
  • bad_col - The column that the error was triggered on
  • bad_char - The character that triggered th error

Returns

A new LexerError instance with the given properties

Trait Implementations

impl Debug for LexerError[src]

impl Display for LexerError[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> 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.