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.