]> git.lizzy.rs Git - rust.git/commit
Add `get_mut` methods to the `RefCell` and `Cell`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 5 May 2016 22:39:25 +0000 (00:39 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 5 May 2016 22:40:51 +0000 (00:40 +0200)
commit9370d3a05107bdcac6fb62d3bd5380e1d7c79b5b
tree0e3e17d388edf4a919a963a2da841fb3842c6628
parent413bafdabf5c5716fd823ac9a6232c48e2ba2902
Add `get_mut` methods to the `RefCell` and `Cell`

This is safe since the borrow checker ensures that we have the only
mutable reference to the struct, thus we can safely borrow its interior.

Tracking issue is #33444.
src/libcore/cell.rs