Enum sise::ParseError [−][src]
pub enum ParseError {
IllegalChr {
pos: BytePos,
chr: char,
},
IllegalChrInString {
pos: BytePos,
chr: char,
},
IllegalChrInComment {
pos: BytePos,
chr: char,
},
UnfinishedString {
pos: BytePos,
},
UnexpectedToken {
pos: BytePos,
token: TokenKind,
},
ExpectedEof {
pos: BytePos,
},
}
Expand description
Represents a parse error.
Variants
There is an invalid character.
There is an invalid character inside a string (enclosed with "
).
There is an invalid character inside a comment.
End-of-file is reached before finding the closing "
.
Fields of UnfinishedString
pos: BytePos
Unexpected token.
Found a token when expecting end-of-file.
Fields of ExpectedEof
pos: BytePos
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
Mutably borrows from an owned value. Read more