Struct syntax::ast::Ident[src]

pub struct Ident {
    pub name: Name,
    pub ctxt: SyntaxContext,
}

Fields

name
ctxt

Methods

impl Ident

fn new(name: Name) -> Ident

Construct an identifier with the given name and an empty context:

Trait Implementations

impl PartialEq for Ident

fn eq(&self, other: &Ident) -> bool

fn ne(&self, other: &Ident) -> bool

impl<S: Encoder<E>, E> Encodable<S, E> for Ident

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

impl<D: Decoder<E>, E> Decodable<D, E> for Ident

fn decode(d: &mut D) -> Result<Ident, E>

impl ToSource for Ident

fn to_source(&self) -> String

impl ToTokens for Ident

fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

impl Show for Ident

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

impl Ord for Ident

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

impl Eq for Ident

fn assert_receiver_is_total_eq(&self)

impl PartialOrd for Ident

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

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

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

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

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

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

impl Clone for Ident

fn clone(&self) -> Ident

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