Enum twig::tokens::ConstRef
[−]
[src]
pub enum ConstRef<'a> { Num(ConstNumberRef<'a>), Str(&'a str), }
Variants
Num(ConstNumberRef<'a>)
Str(&'a str)
Methods
impl<'a> ConstRef<'a>
[src]
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> PartialEq for ConstRef<'a>
[src]
fn eq(&self, __arg_0: &ConstRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConstRef<'a>) -> bool
This method tests for !=
.
impl<'a> Debug for ConstRef<'a>
[src]
impl<'a> Copy for ConstRef<'a>
[src]
impl<'a> Clone for ConstRef<'a>
[src]
fn clone(&self) -> ConstRef<'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