Enum syntax::parse::token::Lit   [−][src]
pub enum Lit {
    Byte(Name),
    Char(Name),
    Integer(Name),
    Float(Name),
    Str_(Name),
    StrRaw(Name, u16),
    ByteStr(Name),
    ByteStrRaw(Name, u16),
}Variants
Byte(Name)Char(Name)Integer(Name)Float(Name)Str_(Name)StrRaw(Name, u16)ByteStr(Name)ByteStrRaw(Name, u16)
                    Methods
impl Lit[src] 
impl Litpub fn short_name(&self) -> &'static str[src] 
pub fn short_name(&self) -> &'static strTrait Implementations
impl Clone for Lit[src] 
impl Clone for Litfn clone(&self) -> Lit[src] 
fn clone(&self) -> LitReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for Lit[src] 
impl Encodable for Litimpl Decodable for Lit[src] 
impl Decodable for Litimpl PartialEq for Lit[src] 
impl PartialEq for Litfn eq(&self, other: &Lit) -> bool[src] 
fn eq(&self, other: &Lit) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Lit) -> bool[src] 
fn ne(&self, other: &Lit) -> boolThis method tests for !=.
impl Eq for Lit[src] 
impl Eq for Litimpl Hash for Lit[src] 
impl Hash for Litfn hash<__H: Hasher>(&self, state: &mut __H)[src] 
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Lit[src] 
impl Debug for Litfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Lit[src] 
impl Copy for Lit