pub enum TemplateError {
Show 27 variants
UnexpectedEndOfTemplate,
ExpectedTokenTypeButReceived((TokenValue, Received)),
UnexpectedTokenValue(TokenValue),
ExpectedOtherTokenValue((TokenValue, TokenValue)),
ExpectedArrayElement,
ArrayValueMustBeFollowedByComma,
ArrayNotClosed,
ExpectedHashElement,
HashValueMustBeFollowedByComma,
InvalidHashKey {
unexpected: TokenValue,
},
HashKeyMustBeFollowedByColon,
HashNotClosed,
ExpectedNameOrNumber,
ListOfArgumentsMustBeginWithParenthesis,
ArgumentsMustBeSeparatedByComma,
ListOfArgumentsMustCloseWithParenthesis,
Unclosed(String),
UnclosedComment,
UnclosedBlock(String),
Unexpected(String),
UnexpectedCharacter(String),
ParenthesisNotClosed,
MustStartWithTagName,
DefaultValueForArgumentMustBeConstant,
ParameterNameMustBeAString {
given: String,
},
TemplateNotFound(String),
CustomError(Box<dyn ExtensionError>),
}
Variants§
UnexpectedEndOfTemplate
ExpectedTokenTypeButReceived((TokenValue, Received))
UnexpectedTokenValue(TokenValue)
ExpectedOtherTokenValue((TokenValue, TokenValue))
ExpectedArrayElement
ArrayValueMustBeFollowedByComma
ArrayNotClosed
ExpectedHashElement
HashValueMustBeFollowedByComma
InvalidHashKey
Fields
§
unexpected: TokenValue
HashKeyMustBeFollowedByColon
HashNotClosed
ExpectedNameOrNumber
ListOfArgumentsMustBeginWithParenthesis
ArgumentsMustBeSeparatedByComma
ListOfArgumentsMustCloseWithParenthesis
Unclosed(String)
UnclosedComment
UnclosedBlock(String)
Unexpected(String)
UnexpectedCharacter(String)
ParenthesisNotClosed
MustStartWithTagName
DefaultValueForArgumentMustBeConstant
ParameterNameMustBeAString
TemplateNotFound(String)
CustomError(Box<dyn ExtensionError>)
Implementations§
Source§impl TemplateError
impl TemplateError
pub fn at(self, line: usize) -> At<TemplateError>
Trait Implementations§
Source§impl Clone for TemplateError
impl Clone for TemplateError
Source§fn clone(&self) -> TemplateError
fn clone(&self) -> TemplateError
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 Debug for TemplateError
impl Debug for TemplateError
Auto Trait Implementations§
impl Freeze for TemplateError
impl !RefUnwindSafe for TemplateError
impl !Send for TemplateError
impl !Sync for TemplateError
impl Unpin for TemplateError
impl !UnwindSafe for TemplateError
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