Enum twig::tokens::TokenValueRef
[−]
[src]
pub enum TokenValueRef<'a> { Text(&'a str), BlockStart, VarStart, BlockEnd, VarEnd, Name(&'a str), Value(ConstRef<'a>), Operator(&'a str), Punctuation(char), InterpolationStart, InterpolationEnd, CommentStart, }
Token value.
Variants
Text(&'a str)
BlockStart
VarStart
BlockEnd
VarEnd
Name(&'a str)
Value(ConstRef<'a>)
Operator(&'a str)
Punctuation(char)
InterpolationStart
InterpolationEnd
CommentStart
Trait Implementations
impl<'a> PartialEq for TokenValueRef<'a>
[src]
fn eq(&self, __arg_0: &TokenValueRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TokenValueRef<'a>) -> bool
This method tests for !=
.
impl<'a> Debug for TokenValueRef<'a>
[src]
impl<'a> Copy for TokenValueRef<'a>
[src]
impl<'a> Clone for TokenValueRef<'a>
[src]
fn clone(&self) -> TokenValueRef<'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> Into<TokenValue> for TokenValueRef<'a>
[src]
fn into(self) -> TokenValue
Performs the conversion.