Trait hime_redist::errors::ParseErrorDataTrait
source · pub trait ParseErrorDataTrait: Display {
// Required methods
fn get_position(&self) -> TextPosition;
fn get_length(&self) -> usize;
}
Expand description
Common trait for data about an error
Required Methods§
sourcefn get_position(&self) -> TextPosition
fn get_position(&self) -> TextPosition
Gets the error’s position in the input
sourcefn get_length(&self) -> usize
fn get_length(&self) -> usize
Gets the error’s length in the input (in number of characters)