#[derive(Debug)]
struct SomeDude<'a> {
name: &'a str,
current_role: &'a str,
hobbies: Vec<&'a str>,
}
impl Default for SomeDude<'_> {
fn default() -> Self {
Self {
name: "Fitzypop",
current_role: "Looking for work!",
hobbies: vec![
"coding",
"music and gear",
"craft beer and microbrews",
"weightlifting",
],
}
}
}
fn main() {
println!("Sup, nerds. ๐ค Welcome to my profile!");
let me = SomeDude::default();
println!("{:?}", me);
}
fitzypop / dotfiles Goto Github PK
View Code? Open in Web Editor NEWFitzypop's Dotfile Repo for Pop!_OS and macOS
License: MIT License