Enum syntax::parse::token::LitUnstable [-] [+] [src]

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

Variants

Byte
Char
Integer
Float
Str_
StrRaw
Binary
BinaryRaw

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

fn assert_receiver_is_total_eq(&self)

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, Error>

impl Encodable for Lit

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

impl Clone for Lit

fn clone(&self) -> Lit

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