Answers for "how to make map in rust language"

0

how to make map in rust language

fn main() {
    use std::collections::HashMap;

    let mut scores = HashMap::new();

    scores.insert(String::from("Blue"), 10);
    scores.insert(String::from("Yellow"), 50);
}
Posted by: Guest on June-13-2020

Code answers related to "how to make map in rust language"

Browse Popular Code Answers by Language