Enum twig::TokenValue [] [src]

pub enum TokenValue<'a> {
    Text(&'a str),
    BlockStart,
    VarStart,
    BlockEnd,
    VarEnd,
    Name(&'a str),
    Value(TwigValueRef<'a>),
    Operator(&'a str),
    Punctuation(char),
    InterpolationStart,
    InterpolationEnd,
    CommentStart,
}

Token value.

Variants

Text(&'a str)BlockStartVarStartBlockEndVarEndName(&'a str)Value(TwigValueRef<'a>)Operator(&'a str)Punctuation(char)InterpolationStartInterpolationEndCommentStart

Trait Implementations

impl<'a> Clone for Value<'a>
[src]

fn clone(&self) -> Value<'a>

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

impl<'a> Copy for Value<'a>
[src]

impl<'a> Debug for Value<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> PartialEq for Value<'a>
[src]

fn eq(&self, __arg_0: &Value<'a>) -> bool

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

fn ne(&self, __arg_0: &Value<'a>) -> bool

This method tests for !=.

impl<'a> Into<DebugValue> for Value<'a>
[src]

fn into(self) -> DebugValue

Performs the conversion.