On 15/04/14 02:25 PM, Ziad Hatahet wrote: > So the new Vec and Str/StrBuf types are all "reference" types, correct? > What happens if we pass around a borrowed or owned pointer to one of > these types? Won't there be an extra level of indirection to get to the > underlying data pointer?
There's close to no reason to store `Vec<T>` or `StrBuf` in an owned box, and very little reason to pass around a reference to them. You can obtain a slice (either &[T] or &mut [T]) into `Vec<T>` and the same goes for strings.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
