Struct syntax::parse::token::InternedStringUnstable
[-] [+]
[src]
pub struct InternedString { // some 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.