Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

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);
}
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #map #rust #language
ADD COMMENT
Topic
Name
5+7 =