Struct piston_meta::ParseErrorHandler [−][src]
Reports error.
Implementations
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]
&mut self,
w: &mut W,
range: Range,
msg: &str
) -> Result<(), Error>
Writes message.
pub fn write<W: Write>(
&mut self,
w: &mut W,
range_err: Range<ParseError>
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
range_err: Range<ParseError>
) -> Result<(), Error>
Writes error message.
pub fn error(&mut self, range_err: Range<ParseError>)
[src]
Prints error message to standard error.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParseErrorHandler<'a>
impl<'a> Send for ParseErrorHandler<'a>
impl<'a> Sync for ParseErrorHandler<'a>
impl<'a> Unpin for ParseErrorHandler<'a>
impl<'a> UnwindSafe for ParseErrorHandler<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,