[][src]Trait hime_redist::errors::ParseErrorDataTrait

pub trait ParseErrorDataTrait {
    fn get_position(&self) -> TextPosition;
fn get_length(&self) -> usize;
fn get_message(&self) -> String; }

Common trait for data about an error

Required methods

fn get_position(&self) -> TextPosition

Gets the error's position in the input

fn get_length(&self) -> usize

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

fn get_message(&self) -> String

Gets the error's message

Loading content...

Implementors

impl ParseErrorDataTrait for ParseError[src]

fn get_position(&self) -> TextPosition[src]

Gets the error's position in the input

fn get_length(&self) -> usize[src]

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

fn get_message(&self) -> String[src]

Gets the error's message

impl ParseErrorDataTrait for ParseErrorEndOfInput[src]

fn get_position(&self) -> TextPosition[src]

Gets the error's position in the input

fn get_length(&self) -> usize[src]

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

fn get_message(&self) -> String[src]

Gets the error's message

impl ParseErrorDataTrait for ParseErrorIncorrectEncodingSequence[src]

fn get_position(&self) -> TextPosition[src]

Gets the error's position in the input

fn get_length(&self) -> usize[src]

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

fn get_message(&self) -> String[src]

Gets the error's message

impl ParseErrorDataTrait for ParseErrorUnexpectedChar[src]

fn get_position(&self) -> TextPosition[src]

Gets the error's position in the input

fn get_length(&self) -> usize[src]

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

fn get_message(&self) -> String[src]

Gets the error's message

impl ParseErrorDataTrait for ParseErrorUnexpectedToken[src]

fn get_position(&self) -> TextPosition[src]

Gets the error's position in the input

fn get_length(&self) -> usize[src]

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

fn get_message(&self) -> String[src]

Gets the error's message

Loading content...