Struct syntax::symbol::InternedString [−][src]
pub struct InternedString {
symbol: 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?
Represents a string stored in the string interner
Fields
symbol: 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?
Methods
impl InternedString[src]
impl InternedStringpub fn with<F, R>(self, f: F) -> R where
F: FnOnce(&str) -> R, [src]
pub fn with<F, R>(self, f: F) -> R where
F: FnOnce(&str) -> R, 🔬 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_symbol(self) -> Symbol[src]
pub fn as_symbol(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?
Trait Implementations
impl Clone for InternedString[src]
impl Clone for InternedStringfn clone(&self) -> InternedString[src]
fn clone(&self) -> InternedStringReturns 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 Debug for InternedString[src]
impl Debug for InternedStringfn 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 PartialOrd<InternedString> for InternedString[src]
impl PartialOrd<InternedString> for InternedStringfn partial_cmp(&self, other: &InternedString) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &InternedString) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Copy for InternedString[src]
impl Copy for InternedStringimpl Ord for InternedString[src]
impl Ord for InternedStringfn cmp(&self, other: &InternedString) -> Ordering[src]
fn cmp(&self, other: &InternedString) -> 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 Hash for InternedString[src]
impl Hash for InternedStringfn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
fn hash<H>(&self, state: &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 Decodable for InternedString[src]
impl Decodable for InternedStringfn decode<D>(d: &mut D) -> Result<InternedString, <D as Decoder>::Error> where
D: Decoder, [src]
fn decode<D>(d: &mut D) -> Result<InternedString, <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 InternedString[src]
impl Eq for InternedStringfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl From<InternedString> for String[src]
impl From<InternedString> for Stringfn from(val: InternedString) -> String[src]
fn from(val: InternedString) -> StringPerforms the conversion.
impl Encodable for InternedString[src]
impl Encodable for InternedStringfn 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 Display for InternedString[src]
impl Display for InternedStringfn 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<'a> PartialEq<InternedString> for &'a str[src]
impl<'a> PartialEq<InternedString> for &'a strfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<InternedString> for InternedString[src]
impl PartialEq<InternedString> for InternedStringfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<InternedString> for &'a String[src]
impl<'a> PartialEq<InternedString> for &'a Stringfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<T> PartialEq<T> for InternedString where
T: Deref<Target = str>, [src]
impl<T> PartialEq<T> for InternedString where
T: Deref<Target = str>, fn eq(&self, other: &T) -> bool[src]
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<InternedString> for String[src]
impl PartialEq<InternedString> for Stringfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<InternedString> for str[src]
impl PartialEq<InternedString> for strAuto Trait Implementations
impl !Send for InternedString
impl !Send for InternedStringimpl !Sync for InternedString
impl !Sync for InternedString