[][src]Struct piston_meta::ParseErrorHandler

pub struct ParseErrorHandler<'a> { /* fields omitted */ }

Reports error.

Methods

impl<'a> ParseErrorHandler<'a>[src]

pub fn new(text: &'a str) -> ParseErrorHandler<'a>[src]

Creates a new error handler.

pub fn write_msg<W: Write>(
    &mut self,
    w: &mut W,
    range: Range,
    msg: &str
) -> Result<(), Error>
[src]

Writes message.

pub fn write<W: Write>(
    &mut self,
    w: &mut W,
    range_err: Range<ParseError>
) -> Result<(), Error>
[src]

Writes error message.

pub fn error(&mut self, range_err: Range<ParseError>)[src]

Prints error message to standard error.

Auto Trait Implementations

impl<'a> Send for ParseErrorHandler<'a>

impl<'a> Sync for ParseErrorHandler<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]