Struct ketos::parser::ParseError
[−]
[src]
pub struct ParseError { pub span: Span, pub kind: ParseErrorKind, }
Represents an error in parsing input.
Fields
span: Span
Span of source code which caused the error
kind: ParseErrorKind
Kind of error generated
Methods
impl ParseError
[src]
fn new(span: Span, kind: ParseErrorKind) -> ParseError
Creates a new ParseError
.
Trait Implementations
impl PartialEq for ParseError
[src]
fn eq(&self, __arg_0: &ParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseError) -> bool
This method tests for !=
.
impl Eq for ParseError
[src]
impl Debug for ParseError
[src]
impl Clone for ParseError
[src]
fn clone(&self) -> ParseError
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