I was looking for the way to create an associative array in the documentation but didn't find anything. So how do I create an associative array in Rust?
What you know as an associative array is also known by some other names, such as a dictionary or a map.
In Rust, it’s called a map, and is epitomised in the HashMap
type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With