Struct rustc::ty::SymbolName [−][src]
pub struct SymbolName { pub name: 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?
Fields
name: 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?
Methods
impl SymbolName
[src]
impl SymbolName
pub fn new(name: &str) -> SymbolName
[src]
pub fn new(name: &str) -> SymbolName
🔬 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?
Trait Implementations
impl<'tcx> Value<'tcx> for SymbolName
[src]
impl<'tcx> Value<'tcx> for SymbolName
fn from_cycle_error<'a>(_: TyCtxt<'a, 'tcx, 'tcx>) -> Self
[src]
fn from_cycle_error<'a>(_: TyCtxt<'a, 'tcx, 'tcx>) -> Self
🔬 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 SymbolName
[src]
impl Clone for SymbolName
fn clone(&self) -> SymbolName
[src]
fn clone(&self) -> SymbolName
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 Copy for SymbolName
[src]
impl Copy for SymbolName
impl PartialEq for SymbolName
[src]
impl PartialEq for SymbolName
fn eq(&self, other: &SymbolName) -> bool
[src]
fn eq(&self, other: &SymbolName) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SymbolName) -> bool
[src]
fn ne(&self, other: &SymbolName) -> bool
This method tests for !=
.
impl Eq for SymbolName
[src]
impl Eq for SymbolName
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl PartialOrd for SymbolName
[src]
impl PartialOrd for SymbolName
fn partial_cmp(&self, other: &SymbolName) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SymbolName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &SymbolName) -> bool
[src]
fn lt(&self, other: &SymbolName) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &SymbolName) -> bool
[src]
fn le(&self, other: &SymbolName) -> 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: &SymbolName) -> bool
[src]
fn gt(&self, other: &SymbolName) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &SymbolName) -> bool
[src]
fn ge(&self, other: &SymbolName) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for SymbolName
[src]
impl Ord for SymbolName
fn cmp(&self, other: &SymbolName) -> Ordering
[src]
fn cmp(&self, other: &SymbolName) -> 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 Encodable for SymbolName
[src]
impl Encodable for SymbolName
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 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 Decodable for SymbolName
[src]
impl Decodable for SymbolName
fn decode<__D: Decoder>(d: &mut __D) -> Result<SymbolName, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<SymbolName, __D::Error>
🔬 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<'a, 'tcx> HashStable<StableHashingContext<'a>> for SymbolName
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for SymbolName
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
🔬 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 Display for SymbolName
[src]
impl Display for SymbolName
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for SymbolName
[src]
impl Debug for SymbolName
Auto Trait Implementations
impl !Send for SymbolName
impl !Send for SymbolName
impl !Sync for SymbolName
impl !Sync for SymbolName