&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str. |
||
|---|---|---|
| .. | ||
| interner.rs | ||
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str. |
||
|---|---|---|
| .. | ||
| interner.rs | ||