Enum hairy::HairyParserError
source · pub enum HairyParserError<'a> {
Parser(&'a str),
Expr(CompileErrorDescription<'a>),
Type(&'a str),
Eval(EvalError<'a>),
Other(&'a str),
}
Expand description
The errors that can occur during Hairy template parsing. It can either be a lexer error (so a part of
the input can not be translated to a token), or a parser error (a different token expected).
As Hairy templates can contain expressions, these expressions can also trigger errors. These
can either be in the parsing of the expressions, or during optimizing (which causes
EvalErrors). Other errors are reporting using Other
.
Variants§
Trait Implementations§
source§impl<'a> Clone for HairyParserError<'a>
impl<'a> Clone for HairyParserError<'a>
source§fn clone(&self) -> HairyParserError<'a>
fn clone(&self) -> HairyParserError<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for HairyParserError<'a>
impl<'a> Debug for HairyParserError<'a>
source§impl<'a> Display for HairyParserError<'a>
impl<'a> Display for HairyParserError<'a>
source§impl<'a> From<EncodingError> for HairyParserError<'a>
impl<'a> From<EncodingError> for HairyParserError<'a>
source§fn from(_: EncodingError) -> Self
fn from(_: EncodingError) -> Self
Converts to this type from the input type.
impl<'a> Copy for HairyParserError<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for HairyParserError<'a>
impl<'a> Send for HairyParserError<'a>
impl<'a> Sync for HairyParserError<'a>
impl<'a> Unpin for HairyParserError<'a>
impl<'a> UnwindSafe for HairyParserError<'a>
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