Struct syntax::ast::Ident
[−]
[src]
pub struct Ident { pub name: Symbol, pub ctxt: SyntaxContext, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
name: Symbol
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ctxt: SyntaxContext
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl Ident
[src]
impl Ident
pub const fn with_empty_ctxt(name: Symbol) -> Ident
[src]
pub const fn with_empty_ctxt(name: Symbol) -> Ident
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn from_str(string: &str) -> Ident
[src]
pub fn from_str(string: &str) -> Ident
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps a string to an identifier with an empty syntax context.
pub fn without_first_quote(&self) -> Ident
[src]
pub fn without_first_quote(&self) -> Ident
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn modern(self) -> Ident
[src]
pub fn modern(self) -> Ident
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Copy for Ident
[src]
impl Copy for Ident
impl Clone for Ident
[src]
impl Clone for Ident
fn clone(&self) -> Ident
[src]
fn clone(&self) -> Ident
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Decodable for Ident
[src]
impl Decodable for Ident
fn decode<D>(d: &mut D) -> Result<Ident, <D as Decoder>::Error> where
D: Decoder,
[src]
fn decode<D>(d: &mut D) -> Result<Ident, <D as Decoder>::Error> where
D: Decoder,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Eq for Ident
[src]
impl Eq for Ident
impl Hash for Ident
[src]
impl Hash for Ident
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<Ident> for Ident
[src]
impl PartialEq<Ident> for Ident
fn eq(&self, __arg_0: &Ident) -> bool
[src]
fn eq(&self, __arg_0: &Ident) -> bool
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]
fn ne(&self, __arg_0: &Ident) -> bool
This method tests for !=
.
impl Display for Ident
[src]
impl Display for Ident
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Debug for Ident
[src]
impl Debug for Ident
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Encodable for Ident
[src]
impl Encodable for Ident
fn encode<S>(&self, s: &mut S) -> Result<(), <S as Encoder>::Error> where
S: Encoder,
[src]
fn encode<S>(&self, s: &mut S) -> Result<(), <S as Encoder>::Error> where
S: Encoder,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl ToTokens for Ident
[src]
impl ToTokens for Ident