rust/src/liballoc
Kevin Ballard 192a8a5db7 Add is_unique(), try_unwrap(), get_mut() to alloc::rc
Add a few new free functions to alloc::rc for manipulating
uniquely-owned Rc values. is_unique() can be used to test if the Rc is
uniquely-owned, try_unwrap() can remove the value from a uniquely-owned
Rc, and get_mut() can return a &mut for a uniquely-owned Rc.

These are all free functions, because smart pointers should avoid having
methods when possible. They can't be static methods because UFCS will
remove that distinction. I think we should probably change downgrade()
and make_unique() into free functions as well, but that's out of scope.
2014-08-01 01:20:20 -07:00
..
arc.rs Elide lifetimes around Arc<T>. 2014-07-29 15:44:31 -07:00
boxed.rs std: Stabilize unit, bool, ty, tuple, arc, any 2014-07-26 13:12:20 -07:00
heap.rs librustc: Remove the fallback to int for integers and f64 for 2014-06-29 11:47:58 -07:00
lib.rs Stabilization for owned (now boxed) and cell 2014-07-13 12:52:51 -07:00
libc_heap.rs alloc: Refactor OOM into a common routine 2014-06-16 18:15:48 -07:00
rc.rs Add is_unique(), try_unwrap(), get_mut() to alloc::rc 2014-08-01 01:20:20 -07:00
util.rs libs: Fix miscellaneous fallout of librustrt 2014-06-06 23:00:01 -07:00