]> git.lizzy.rs Git - rust.git/commit
Update the ways to get a pointer from a box
authorGleb Kozyrev <gleb@gkoz.com>
Thu, 12 Mar 2015 15:09:26 +0000 (17:09 +0200)
committerGleb Kozyrev <gleb@gkoz.com>
Thu, 12 Mar 2015 18:48:04 +0000 (20:48 +0200)
commit5d9ed0bc0e7922fb1fbdc518edc9bacb342fad6e
tree69fbfdbdc1f16ec32e6ac88b3b8963b23befe3fa
parent49f7550a25722fbdb779eef80afa85f6d802f7e8
Update the ways to get a pointer from a box

Show how to get a pointer without destroying the box.
Use `boxed::into_raw` instead of `mem::transmute`.
src/libcore/ptr.rs