Enum twig::error::TemplateError
[−]
[src]
pub enum TemplateError { 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<ExtensionError>), }
Variants
UnexpectedEndOfTemplate
ExpectedTokenTypeButReceived((TokenValue, Received))
UnexpectedTokenValue(TokenValue)
ExpectedOtherTokenValue((TokenValue, TokenValue))
ExpectedArrayElement
ArrayValueMustBeFollowedByComma
ArrayNotClosed
ExpectedHashElement
HashValueMustBeFollowedByComma
InvalidHashKey
Fields of InvalidHashKey
unexpected: TokenValue |
HashKeyMustBeFollowedByColon
HashNotClosed
ExpectedNameOrNumber
ListOfArgumentsMustBeginWithParenthesis
ArgumentsMustBeSeparatedByComma
ListOfArgumentsMustCloseWithParenthesis
Unclosed(String)
UnclosedComment
UnclosedBlock(String)
Unexpected(String)
UnexpectedCharacter(String)
ParenthesisNotClosed
MustStartWithTagName
DefaultValueForArgumentMustBeConstant
ParameterNameMustBeAString
Fields of ParameterNameMustBeAString
given: String |
TemplateNotFound(String)
CustomError(Box<ExtensionError>)
Methods
impl TemplateError
[src]
fn at(self, line: usize) -> At<TemplateError>
Trait Implementations
impl Clone for TemplateError
[src]
fn clone(&self) -> TemplateError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more