Struct hime_redist::errors::ParseErrorUnexpectedToken
source · pub struct ParseErrorUnexpectedToken { /* private fields */ }
Expand description
Represents an unexpected token error in a parser
Implementations§
source§impl ParseErrorUnexpectedToken
impl ParseErrorUnexpectedToken
sourcepub fn new(
position: TextPosition,
length: usize,
value: String,
terminal: Symbol,
expected: Vec<Symbol>
) -> ParseErrorUnexpectedToken
pub fn new(
position: TextPosition,
length: usize,
value: String,
terminal: Symbol,
expected: Vec<Symbol>
) -> ParseErrorUnexpectedToken
Initializes this error
Trait Implementations§
source§impl Clone for ParseErrorUnexpectedToken
impl Clone for ParseErrorUnexpectedToken
source§fn clone(&self) -> ParseErrorUnexpectedToken
fn clone(&self) -> ParseErrorUnexpectedToken
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 ParseErrorUnexpectedToken
impl ParseErrorDataTrait for ParseErrorUnexpectedToken
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