Enum twig::tokens::ConstRef [] [src]

pub enum ConstRef<'a> {
    Num(ConstNumberRef<'a>),
    Str(&'a str),
}

Variants

Num
Str

Methods

impl<'a> ConstRef<'a>

fn new_big_num<'c>(num: &'c str) -> ConstRef<'c>

fn new_float<'c>(num: f64) -> ConstRef<'c>

fn new_int<'c>(num: i64) -> ConstRef<'c>

fn new_str<'c>(s: &'c str) -> ConstRef<'c>

Trait Implementations

impl<'a> Into<Const> for ConstRef<'a>

fn into(self) -> Const

Derived Implementations

impl<'a> Clone for ConstRef<'a>

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

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

impl<'a> Copy for ConstRef<'a>

impl<'a> Debug for ConstRef<'a>

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

impl<'a> PartialEq for ConstRef<'a>

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

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