Struct piston_meta::ParseErrorHandler
source · pub struct ParseErrorHandler<'a> { /* private fields */ }
Expand description
Reports error.
Implementations§
source§impl<'a> ParseErrorHandler<'a>
impl<'a> ParseErrorHandler<'a>
sourcepub fn new(text: &'a str) -> ParseErrorHandler<'a>
pub fn new(text: &'a str) -> ParseErrorHandler<'a>
Creates a new error handler.
sourcepub fn write_msg<W: Write>(
&mut self,
w: &mut W,
range: Range,
msg: &str
) -> Result<(), Error>
pub fn write_msg<W: Write>(
&mut self,
w: &mut W,
range: Range,
msg: &str
) -> Result<(), Error>
Writes message.
sourcepub fn write<W: Write>(
&mut self,
w: &mut W,
range_err: Range<ParseError>
) -> Result<(), Error>
pub fn write<W: Write>(
&mut self,
w: &mut W,
range_err: Range<ParseError>
) -> Result<(), Error>
Writes error message.
sourcepub fn error(&mut self, range_err: Range<ParseError>)
pub fn error(&mut self, range_err: Range<ParseError>)
Prints error message to standard error.