[][src]Struct garando_pos::symbol::InternedString

pub struct InternedString { /* fields omitted */ }

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]

impl Clone for InternedString[src]

impl Debug for InternedString[src]

impl Deref for InternedString[src]

type Target = str

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for InternedString[src]

impl Display for InternedString[src]

impl Eq for InternedString[src]

impl Hash for InternedString[src]

impl Ord for InternedString[src]

impl PartialEq<InternedString> for str[src]

impl<'a> PartialEq<InternedString> for &'a str[src]

impl PartialEq<InternedString> for String[src]

impl<'a> PartialEq<InternedString> for &'a String[src]

impl<T: Deref<Target = str>> PartialEq<T> for InternedString[src]

impl PartialOrd<InternedString> for InternedString[src]

impl Serialize for InternedString[src]

impl StructuralEq for InternedString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.