Focus mode

Rust Fundamentals

Collections:HashMap

HashMaps store values by key, whereas vectors store data by integer index. Keys in a HashMap can be booleans, integers, strings, or any other type. Per Rust Official documentation use a hashmap when:

  • You want to associate arbitrary keys with an arbitrary value.
  • You want a cache.
  • You want a map, with no extra functionality.

You can find detailed further information from Rust Official documentation:

https://doc.rust-lang.org/rust-by-example/std/hash.html 

left-disk

Programs to Accelerate Your Progress in a Software Career

Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!

right-cube

Comments

You need to enroll in the course to be able to comment!