Struct hime_redist::errors::ParseErrorUnexpectedChar
source · pub struct ParseErrorUnexpectedChar { /* private fields */ }
Expand description
Represents an unexpected character error in the input stream of a lexer
Implementations§
source§impl ParseErrorUnexpectedChar
impl ParseErrorUnexpectedChar
sourcepub fn new(
position: TextPosition,
unexpected: [Utf16C; 2]
) -> ParseErrorUnexpectedChar
pub fn new(
position: TextPosition,
unexpected: [Utf16C; 2]
) -> ParseErrorUnexpectedChar
Creates a new error
Trait Implementations§
source§impl Clone for ParseErrorUnexpectedChar
impl Clone for ParseErrorUnexpectedChar
source§fn clone(&self) -> ParseErrorUnexpectedChar
fn clone(&self) -> ParseErrorUnexpectedChar
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 ParseErrorDataTrait for ParseErrorUnexpectedChar
impl ParseErrorDataTrait for ParseErrorUnexpectedChar
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