Enum reproto_lexer::errors::Error
[−]
[src]
pub enum Error { UnterminatedString { start: usize, }, UnterminatedEscape { start: usize, }, InvalidEscape { message: &'static str, pos: usize, }, UnterminatedCodeBlock { start: usize, }, InvalidNumber { message: &'static str, pos: usize, }, Unexpected { pos: usize, }, }
Variants
UnterminatedString
Fields of UnterminatedString
start: usize |
UnterminatedEscape
Fields of UnterminatedEscape
start: usize |
InvalidEscape
Fields of InvalidEscape
message: &'static str | |
pos: usize |
UnterminatedCodeBlock
Fields of UnterminatedCodeBlock
start: usize |
InvalidNumber
Fields of InvalidNumber
message: &'static str | |
pos: usize |
Unexpected
Fields of Unexpected
pos: usize |
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.