Struct syntax::ast::Ident
[−]
[src]
pub struct Ident { pub name: Symbol, pub ctxt: SyntaxContext, }
Fields
name: Symbol
ctxt: SyntaxContext
Methods
impl Ident
[src]
pub const fn with_empty_ctxt(name: Symbol) -> Ident
[src]
pub fn from_str(string: &str) -> Ident
[src]
Maps a string to an identifier with an empty syntax context.
pub fn without_first_quote(&self) -> Ident
[src]
pub fn modern(self) -> Ident
[src]
Trait Implementations
impl Display for Ident
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Clone for Ident
[src]
fn clone(&self) -> Ident
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Decodable for Ident
[src]
impl Copy for Ident
[src]
impl Hash for Ident
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<Ident> for Ident
[src]
fn eq(&self, __arg_0: &Ident) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Ident) -> bool
[src]
This method tests for !=
.
impl Encodable for Ident
[src]
impl Debug for Ident
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more