[−][src]Struct garando_pos::symbol::InternedString
Represents a string stored in the thread-local interner. Because the interner lives for the life of the thread, this can be safely treated as an immortal string, as long as it never crosses between threads.
FIXME(pcwalton): You must be careful about what you do in the destructors of objects stored in TLS, because they may run after the interner is destroyed. In particular, they must not access string contents. This can be fixed in the future by just leaking all strings until thread death somehow.
Trait Implementations
impl<U: ?Sized> AsRef<U> for InternedString where
str: AsRef<U>,
[src]
str: AsRef<U>,
impl Clone for InternedString
[src]
fn clone(&self) -> InternedString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InternedString
[src]
impl Deref for InternedString
[src]
impl<'de> Deserialize<'de> for InternedString
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for InternedString
[src]
impl Eq for InternedString
[src]
impl Hash for InternedString
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for InternedString
[src]
fn cmp(&self, other: &InternedString) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<InternedString> for str
[src]
fn eq(&self, other: &InternedString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<InternedString> for &'a str
[src]
fn eq(&self, other: &InternedString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<InternedString> for String
[src]
fn eq(&self, other: &InternedString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<InternedString> for &'a String
[src]
fn eq(&self, other: &InternedString) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: Deref<Target = str>> PartialEq<T> for InternedString
[src]
impl PartialOrd<InternedString> for InternedString
[src]
fn partial_cmp(&self, other: &InternedString) -> Option<Ordering>
[src]
fn lt(&self, other: &InternedString) -> bool
[src]
fn le(&self, other: &InternedString) -> bool
[src]
fn gt(&self, other: &InternedString) -> bool
[src]
fn ge(&self, other: &InternedString) -> bool
[src]
impl Serialize for InternedString
[src]
impl StructuralEq for InternedString
[src]
Auto Trait Implementations
impl RefUnwindSafe for InternedString
impl Send for InternedString
impl Sync for InternedString
impl Unpin for InternedString
impl UnwindSafe for InternedString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,