Struct syntax::ast::Name
[−]
[src]
pub struct Name(_);
🔬 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?
A symbol is an interned or gensymed string.
Methods
impl Symbol
[src]
impl Symbol
pub fn from_ident(ident: Ident) -> Symbol
[src]
pub fn from_ident(ident: Ident) -> 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?
pub fn to_ident(self) -> Ident
[src]
pub fn to_ident(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?
impl Symbol
[src]
impl Symbol
pub fn intern(string: &str) -> Symbol
[src]
pub fn intern(string: &str) -> 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?
Maps a string to its interned representation.
pub fn interned(self) -> Symbol
[src]
pub fn interned(self) -> 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?
pub fn gensym(string: &str) -> Symbol
[src]
pub fn gensym(string: &str) -> 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?
gensym's a new usize, using the current interner.
pub fn gensymed(self) -> Symbol
[src]
pub fn gensymed(self) -> 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?
pub fn as_str(self) -> InternedString
[src]
pub fn as_str(self) -> InternedString
🔬 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 as_u32(self) -> u32
[src]
pub fn as_u32(self) -> u32
🔬 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 PartialOrd<Symbol> for Symbol
[src]
impl PartialOrd<Symbol> for Symbol
fn partial_cmp(&self, __arg_0: &Symbol) -> Option<Ordering>
[src]
fn partial_cmp(&self, __arg_0: &Symbol) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Symbol) -> bool
[src]
fn lt(&self, __arg_0: &Symbol) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Symbol) -> bool
[src]
fn le(&self, __arg_0: &Symbol) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Symbol) -> bool
[src]
fn gt(&self, __arg_0: &Symbol) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Symbol) -> bool
[src]
fn ge(&self, __arg_0: &Symbol) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Copy for Symbol
[src]
impl Copy for Symbol
impl Clone for Symbol
[src]
impl Clone for Symbol
fn clone(&self) -> Symbol
[src]
fn clone(&self) -> Symbol
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<'a> From<&'a str> for Symbol
[src]
impl<'a> From<&'a str> for Symbol
impl !Sync for Symbol
[src]
impl !Sync for Symbol
impl Decodable for Symbol
[src]
impl Decodable for Symbol
fn decode<D>(d: &mut D) -> Result<Symbol, <D as Decoder>::Error> where
D: Decoder,
[src]
fn decode<D>(d: &mut D) -> Result<Symbol, <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 Ord for Symbol
[src]
impl Ord for Symbol
fn cmp(&self, __arg_0: &Symbol) -> Ordering
[src]
fn cmp(&self, __arg_0: &Symbol) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Symbol
[src]
impl Hash for Symbol
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 Eq for Symbol
[src]
impl Eq for Symbol
impl PartialEq<Symbol> for Symbol
[src]
impl PartialEq<Symbol> for Symbol
fn eq(&self, __arg_0: &Symbol) -> bool
[src]
fn eq(&self, __arg_0: &Symbol) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Symbol) -> bool
[src]
fn ne(&self, __arg_0: &Symbol) -> bool
This method tests for !=
.
impl<T> PartialEq<T> for Symbol where
T: Deref<Target = str>,
[src]
impl<T> PartialEq<T> for Symbol where
T: Deref<Target = str>,
fn eq(&self, other: &T) -> bool
[src]
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Display for Symbol
[src]
impl Display for Symbol
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 !Send for Symbol
[src]
impl !Send for Symbol
impl Debug for Symbol
[src]
impl Debug for Symbol
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 Symbol
[src]
impl Encodable for Symbol