Struct syntax::parse::token::InternedStringUnstable
[-] [+]
[src]
pub struct InternedString { // some fields omitted }
Represents a string stored in the task-local interner. Because the interner lives for the life of the task, this can be safely treated as an immortal string, as long as it never crosses between tasks.
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 task death somehow.