Struct slr_lexer::Error
[−]
[src]
pub struct Error { pub kind: ErrorKind, pub text: String, }
The error type used throughout this crate.
Fields
kind: ErrorKind
text: String
Methods
impl Error
[src]
fn new(kind: ErrorKind, text: String) -> Error
fn from_span<'l, T>(
span: Span,
source: Option<&Source<'l>>,
kind: ErrorKind,
msg: &str
) -> Error
span: Span,
source: Option<&Source<'l>>,
kind: ErrorKind,
msg: &str
) -> Error
Creates an error from a certain span of the source. The source argument, if set, must be set to the source that was used when the span was created.
Trait Implementations
impl Debug for Error
[src]
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