Struct syntax::ast::NameUnstable [-] [+] [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 usize(&self) -> usize

fn ident(&self) -> Ident

Trait Implementations

impl Debug for Name

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

impl Display 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 Decodable for Name

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

impl Encodable for Name

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

impl Hash for Name

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

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

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)