Enum hime_redist::errors::ParseError
source · pub enum ParseError {
UnexpectedEndOfInput(ParseErrorEndOfInput),
UnexpectedChar(ParseErrorUnexpectedChar),
UnexpectedToken(ParseErrorUnexpectedToken),
IncorrectUTF16NoLowSurrogate(ParseErrorIncorrectEncodingSequence),
IncorrectUTF16NoHighSurrogate(ParseErrorIncorrectEncodingSequence),
}
Expand description
Represents a lexical or syntactic error
Variants§
UnexpectedEndOfInput(ParseErrorEndOfInput)
Lexical error occurring when the end of input has been encountered while more characters were expected
UnexpectedChar(ParseErrorUnexpectedChar)
Lexical error occurring when an unexpected character is encountered in the input preventing to match tokens
UnexpectedToken(ParseErrorUnexpectedToken)
Syntactic error occurring when an unexpected token is encountered by the parser
IncorrectUTF16NoLowSurrogate(ParseErrorIncorrectEncodingSequence)
Lexical error occurring when the low surrogate encoding point is missing in a UTF-16 encoding sequence with an expected high and low surrogate pair
IncorrectUTF16NoHighSurrogate(ParseErrorIncorrectEncodingSequence)
Lexical error occurring when the high surrogate encoding point is missing in a UTF-16 encoding sequence with an expected high and low surrogate pair
Trait Implementations§
source§impl Clone for ParseError
impl Clone for ParseError
source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for ParseError
impl Display for ParseError
source§impl ParseErrorDataTrait for ParseError
impl ParseErrorDataTrait for ParseError
source§fn get_position(&self) -> TextPosition
fn get_position(&self) -> TextPosition
Gets the error’s position in the input
source§fn get_length(&self) -> usize
fn get_length(&self) -> usize
Gets the error’s length in the input (in number of characters)
source§fn get_message(&self) -> String
fn get_message(&self) -> String
Gets the error’s message