about summary refs log tree commit diff
path: root/src/libstd/hashmap.rs
AgeCommit message (Collapse)AuthorLines
2013-06-02Add a get_mut method to accompany the get method.gareth-0/+9
2013-06-01Add new function hashmap.insert_or_update_with()Kevin Ballard-0/+15
fn insert_or_update_with<'a>(&'a mut self, k: K, f: &fn(&K, &mut V)) -> &'a V
2013-06-01Refactor some hashmap code into a new private function mangle()Kevin Ballard-37/+21
Add new private hashmap function fn mangle(&mut self, k: K, not_found: &fn(&K) -> V, found: &fn(&K, &mut V)) -> uint Rewrite find_or_insert() and find_or_insert_with() on top of mangle(). Also take the opportunity to change the return type of find_or_insert() and find_or_insert_with() to &'a mut V. This fixes #6394.
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-20/+30
2013-05-30Fix a bug with HashMap::consumeAlex Crichton-3/+19
2013-05-30Require documentation by default for libstdAlex Crichton-0/+12
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+989
This only changes the directory names; it does not change the "real" metadata names.