Struct syntax::codemap::symbol::Symbol [−][src]
pub struct Symbol(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?
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) -> LocalInternedString
[src]
pub fn as_str(self) -> LocalInternedString
🔬 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_interned_str(self) -> InternedString
[src]
pub fn as_interned_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?
impl Symbol
[src]
impl Symbol
Trait Implementations
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 Eq for Symbol
[src]
impl Eq for Symbol
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl !Sync for Symbol
[src]
impl !Sync for Symbol
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<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
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<Symbol> for Symbol
[src]
impl PartialEq<Symbol> for Symbol
fn eq(&self, other: &Symbol) -> bool
[src]
fn eq(&self, other: &Symbol) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Symbol) -> bool
[src]
fn ne(&self, other: &Symbol) -> bool
This method tests for !=
.
impl !Send for Symbol
[src]
impl !Send 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 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 PartialOrd<Symbol> for Symbol
[src]
impl PartialOrd<Symbol> for Symbol
fn partial_cmp(&self, other: &Symbol) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Symbol) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Symbol) -> bool
[src]
fn lt(&self, other: &Symbol) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Symbol) -> bool
[src]
fn le(&self, other: &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, other: &Symbol) -> bool
[src]
fn gt(&self, other: &Symbol) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Symbol) -> bool
[src]
fn ge(&self, other: &Symbol) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Symbol
[src]
impl Ord for Symbol
fn cmp(&self, other: &Symbol) -> Ordering
[src]
fn cmp(&self, other: &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 Copy for Symbol
[src]
impl Copy for Symbol
impl Encodable for Symbol
[src]
impl Encodable for Symbol
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 Hash for Symbol
[src]
impl Hash for Symbol