What I am looking for is a way to have an array like this in Rust. This example is in PHP
:
<?php
$array = [
"key" => "value",
];
?>
As you can see what I'm looking for is an array that has keys and values. But now, how can I do the same thing in rust? I'm new to arrays
in rust, so sorry if this is basic, but I'm not really into arrays.