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

Fields of InvalidHashKey

Fields of ParameterNameMustBeAString

Methods

impl TemplateError
[src]

Trait Implementations

impl Clone for TemplateError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TemplateError
[src]

Formats the value using the given formatter.

impl Display for TemplateError
[src]

Formats the value using the given formatter. Read more