use std::collections::HashMap;
struct Programmer {
name: &'static str,
age: u32,
socials: HashMap<&'static str, &'static str>,
interests: Vec<&'static str>,
languages: Vec<&'static str>,
coffee: bool,
}
fn main() {
let mut socials = HashMap::new();
socials.insert("Discord", "swayamm5342");
let Swayam = Programmer {
name: "Swayam",
age: 19,
socials,
interests: vec![
"Coding", "Astronomy", "Books", "Music",
],
languages: vec![
"Python", "A bit of Rust"
],
coffee: true,
};
println!("Thanks for visiting!");
}
Popular repositories Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.

