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 SymbolNamepub 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 SymbolNamefn 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 SymbolNamefn clone(&self) -> SymbolName[src]
fn clone(&self) -> SymbolNameReturns 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 SymbolNameimpl PartialEq for SymbolName[src]
impl PartialEq for SymbolNamefn eq(&self, other: &SymbolName) -> bool[src]
fn eq(&self, other: &SymbolName) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for SymbolName[src]
impl Eq for SymbolNamefn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl PartialOrd for SymbolName[src]
impl PartialOrd for SymbolNamefn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 SymbolNamefn cmp(&self, other: &SymbolName) -> Ordering[src]
fn cmp(&self, other: &SymbolName) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Encodable for SymbolName[src]
impl Encodable for SymbolNamefn 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 SymbolNamefn 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 SymbolNamefn 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 SymbolNamefn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for SymbolName[src]
impl Debug for SymbolNameAuto Trait Implementations
impl !Send for SymbolName
impl !Send for SymbolNameimpl !Sync for SymbolName
impl !Sync for SymbolName