Zhang Jian
0
Q:

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);
}
0

New to Communities?

Join the community