pub enum Error {
Format,
InvalidRegex(Error),
InvalidStructex(Error),
InvalidTemplate(Error),
InvalidSuffix,
Io(ErrorKind, String),
Render(RenderError),
UnclosedDelimiter(&'static str, char),
UnexpectedCharacter(char),
UnexpectedEof,
ZeroIndexedLineOrColumn,
}Expand description
Errors that can be returned by the exec engine
Variants§
Format
Format error
InvalidRegex(Error)
Invalid regex
InvalidStructex(Error)
Invalid structex
InvalidTemplate(Error)
Invalid structex template
InvalidSuffix
Invalid suffix
Io(ErrorKind, String)
IO error
Render(RenderError)
Error rendering a structex template
UnclosedDelimiter(&'static str, char)
Unclosed delimiter
UnexpectedCharacter(char)
Unexpected character
UnexpectedEof
Unexpected end of file
ZeroIndexedLineOrColumn
A 0 was provided as a line or column index
Trait Implementations§
Source§impl From<RenderError> for Error
impl From<RenderError> for Error
Source§fn from(err: RenderError) -> Self
fn from(err: RenderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more