pub enum IORenderError<R> {
Render(R),
IO(Error),
}Expand description
An error while rendering a compiled template string into an io::Write.
The Render variant is emitted by the particular
Manifest implementation which is used to parse the template string
expressions.
It is the associated Manifest::Error type.
For infallible rendering, there is a is a From<IORenderError<Infallible>> implementation for io::Error.
Variants§
Render(R)
A value in an expression could not be rendered.
IO(Error)
An error occured while writing to an io::Write.
Trait Implementations§
Source§impl<R: Debug> Debug for IORenderError<R>
impl<R: Debug> Debug for IORenderError<R>
Source§impl<R> From<Error> for IORenderError<R>
impl<R> From<Error> for IORenderError<R>
Source§impl From<IORenderError<Infallible>> for Error
impl From<IORenderError<Infallible>> for Error
Source§fn from(err: IORenderError<Infallible>) -> Self
fn from(err: IORenderError<Infallible>) -> Self
Converts to this type from the input type.
Source§impl<E, R> From<IORenderError<R>> for Error<E, R>
impl<E, R> From<IORenderError<R>> for Error<E, R>
Source§fn from(err: IORenderError<R>) -> Self
fn from(err: IORenderError<R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for IORenderError<R>where
R: Freeze,
impl<R> !RefUnwindSafe for IORenderError<R>
impl<R> Send for IORenderError<R>where
R: Send,
impl<R> Sync for IORenderError<R>where
R: Sync,
impl<R> Unpin for IORenderError<R>where
R: Unpin,
impl<R> !UnwindSafe for IORenderError<R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more