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

Text
BlockStart
VarStart
BlockEnd
VarEnd
Name
Value
Operator
Punctuation
InterpolationStart
InterpolationEnd
CommentStart

Methods

impl TokenValue

fn get_english(&self) -> (&'static str, Option<String>)

Return english name and value for token.

Trait Implementations

Derived Implementations

impl Clone for TokenValue

fn clone(&self) -> TokenValue

fn clone_from(&mut self, source: &Self)

impl Debug for TokenValue

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for TokenValue

fn eq(&self, __arg_0: &TokenValue) -> bool

fn ne(&self, __arg_0: &TokenValue) -> bool