Enum syntex_syntax::parse::token::Lit [] [src]

pub enum Lit {
    Byte(Name),
    Char(Name),
    Integer(Name),
    Float(Name),
    Str_(Name),
    StrRaw(Name, usize),
    ByteStr(Name),
    ByteStrRaw(Name, usize),
}

Variants

Byte
Char
Integer
Float
Str_
StrRaw
ByteStr
ByteStrRaw

Methods

impl Lit

fn short_name(&self) -> &'static str

Trait Implementations

Derived Implementations

impl Copy for Lit

impl Debug for Lit

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

impl Hash for Lit

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for Lit

impl PartialEq for Lit

fn eq(&self, __arg_0: &Lit) -> bool

fn ne(&self, __arg_0: &Lit) -> bool

impl Decodable for Lit

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Lit, __D::Error>

impl Encodable for Lit

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for Lit

fn clone(&self) -> Lit

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