summary refs log tree commit diff
path: root/src/libstd/hash.rs
AgeCommit message (Collapse)AuthorLines
2013-09-09rename `std::iterator` to `std::iter`Daniel Micay-1/+1
The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general.
2013-08-27Replace HashUtil w/ default method on HashJason Fager-7/+0
2013-08-20rm obsolete integer to_str{,_radix} free functionsDaniel Micay-5/+3
2013-08-18std::hash: Add testcase for colliding hashes of tuplesblake2-ppc-0/+14
Add a testcase that verifies that (s, t) and (u, v) don't collide even if s + t == u + v (concatenation).
2013-08-18std::to_bytes: Delimit sequences &[A] and ~str when hashingblake2-ppc-1/+9
Address issue #5257, for example these values all had the same hash value: ("aaa", "bbb", "ccc") ("aaab", "bb", "ccc") ("aaabbb", "", "ccc") IterBytes for &[A] now includes the length, before calling iter_bytes on each element. IterBytes for &str is now terminated by a byte that does not appear in UTF-8. This way only one more byte is processed when hashing strings.
2013-08-03remove obsolete `foreach` keywordDaniel Micay-2/+2
this has been replaced by `for`
2013-08-01std: Use `do` blocks instead of `for` with .iter_bytes()blake2-ppc-30/+45
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-3/+4
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-3/+4
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-23vec: remove BaseIter implementationDaniel Micay-3/+4
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-8/+8
2013-06-15Add IterBytes impls for float/f32/f64. This allows creatinggareth-0/+11
HashMaps with floats as keys.
2013-05-30Require documentation by default for libstdAlex Crichton-0/+2
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-05-28Silence various warnings throughout test modulesAlex Crichton-1/+1
2013-05-23cleanup warnings from libstdErick Tryzelaar-1/+1
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+557
This only changes the directory names; it does not change the "real" metadata names.