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§

source

fn get_position(&self) -> TextPosition

Gets the error’s position in the input

source

fn get_length(&self) -> usize

Gets the error’s length in the input (in number of characters)

Implementors§