Struct syntax::ast::NameExperimental [-]  [+] [src]

pub struct Name(pub u32);

A name is a part of an identifier, representing a string or gensym. It's the result of interning.

Methods

impl Name

fn as_str<'a>(&'a self) -> &'a str

fn uint(&self) -> uint

fn ident(&self) -> Ident

Trait Implementations

impl Show for Name

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

Derived Implementations

impl Copy for Name

impl Clone for Name

fn clone(&self) -> Name

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

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Name

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

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

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

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

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

impl PartialOrd for Name

fn partial_cmp(&self, __arg_0: &Name) -> Option<Ordering>

fn lt(&self, __arg_0: &Name) -> bool

fn le(&self, __arg_0: &Name) -> bool

fn gt(&self, __arg_0: &Name) -> bool

fn ge(&self, __arg_0: &Name) -> bool

impl PartialEq for Name

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

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

impl Ord for Name

fn cmp(&self, __arg_0: &Name) -> Ordering

impl Eq for Name

fn assert_receiver_is_total_eq(&self)