Struct syntex_syntax::ast::Name [] [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(self) -> InternedString

Trait Implementations

impl Debug for Name

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

impl Display for Name

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

impl Encodable for Name

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl Decodable for Name

fn decode<D: Decoder>(d: &mut D) -> Result<Name, D::Error>

Derived Implementations

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 Ord for Name

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

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 Eq for Name

impl PartialEq for Name

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

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

impl Copy for Name

impl Clone for Name

fn clone(&self) -> Name

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