Struct slr_lexer::Error [] [src]

pub struct Error {
    pub text: String,
}

Fields

text: String

Methods

impl Error
[src]

fn new(text: String) -> Error

fn from_pos<'l, T>(source: &Source<'l>, pos: usize, msg: &str) -> Result<T, Error>

fn from_span<'l, T>(source: &Source<'l>, span: Span, msg: &str) -> Result<T, Error>

Trait Implementations

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.