On 01/31/2013 12:49 AM, Simon Sapin wrote:
Le 31/01/2013 09:39, piyush agarwal a écrit :
How can we implement hash table in rust ..or there is any built-in type
for it.
Hi,
Have you looked into the std::map module? If that does not fit your
use case, I think the underlying hash is in core::hash.
http://static.rust-lang.org/doc/std/map.html
http://static.rust-lang.org/doc/core/hash.html
Cheers,
On the Rust master branch the `core::hashmap::linear::LinearMap` type is
the preferred hashmap (it uses `core::hash`). LinearMap is an owned type
that has a more 'Rusty' design than `std::map`.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev