rust/src/libcollections
Alex Crichton ab92ea526d std: Modernize the local_data api
This commit brings the local_data api up to modern rust standards with a few key
improvements:

* The `pop` and `set` methods have been combined into one method, `replace`

* The `get_mut` method has been removed. All interior mutability should be done
  through `RefCell`.

* All functionality is now exposed as a method on the keys themselves. Instead
  of importing std::local_data, you now use "key.replace()" and "key.get()".

* All closures have been removed in favor of RAII functionality. This means that
  get() and get_mut() no long require closures, but rather return
  Option<SmartPointer> where the smart pointer takes care of relinquishing the
  borrow and also implements the necessary Deref traits

* The modify() function was removed to cut the local_data interface down to its
  bare essentials (similarly to how RefCell removed set/get).

[breaking-change]
2014-05-07 23:43:39 -07:00
..
bitv.rs Add documentation for Bitv. 2014-05-06 23:34:19 -04:00
btree.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
deque.rs libtest: rename BenchHarness to Bencher 2014-04-11 17:31:13 +08:00
dlist.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
enum_set.rs collections: replace all ~[T] with Vec<T>. 2014-04-09 09:58:17 +10:00
hashmap.rs std: Modernize the local_data api 2014-05-07 23:43:39 -07:00
lib.rs collections: replace all ~[T] with Vec<T>. 2014-04-09 09:58:17 +10:00
lru_cache.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
priority_queue.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
ringbuf.rs Deprecate the rev_iter pattern in all places where a DoubleEndedIterator is provided (everywhere but treemap) 2014-04-28 16:45:36 -05:00
smallintmap.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
treemap.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
trie.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00