Enum twig::tokens::TokenValue [] [src]

pub enum TokenValue {
    Text(String),
    BlockStart,
    VarStart,
    BlockEnd,
    VarEnd,
    Name(String),
    Value(Const),
    Operator(String),
    Punctuation(char),
    InterpolationStart,
    InterpolationEnd,
    CommentStart,
}

Token value.

Variants

Methods

impl TokenValue
[src]

Return english name and value for token.

Trait Implementations

impl PartialEq for TokenValue
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for TokenValue
[src]

Formats the value using the given formatter.

impl Clone for TokenValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more