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

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

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 Show for Lit

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

impl<__S: Writer> Hash<__S> for Lit

fn hash(&self, __arg_0: &mut __S)

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<__D: Decoder<__E>, __E> Decodable<__D, __E> for Lit

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Lit

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

impl Clone for Lit

fn clone(&self) -> Lit

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