3 ms·
> if String could point to either &'static str or an owned buffer There exists a copy-on-write smart pointer in the standard library that can be used for exact
by kibwen 12y ago
> if String could point to either &'static str or an owned buffer
There exists a copy-on-write smart pointer in the standard library that can be used for exactly this purpose: http://doc.rust-lang.org/std/borrow/enum.Cow.html http://doc.rust-lang.org/std/borrow/enum.Cow.html