[rust-dev] About owned pointer

Niko Matsakis niko at alum.mit.edu
Fri Nov 8 05:31:24 PST 2013


On Fri, Nov 08, 2013 at 07:39:59AM -0500, Daniel Micay wrote:
> By owned box I just mean a type you can pass to `fn foo<T>(x: ~T) { }`
> rather than something that's owned and has a heap allocation.

Once the DST work is done, you will be able to pass a ~[T] to a
function like `fn foo<T>(x: ~T) { }`.


Niko


More information about the Rust-dev mailing list