Answers for "how to make a map rust"

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

Browse Popular Code Answers by Language