struct Human<'a> {
name: String,
sex: String,
age: u8,
skills: Vec<&'a str>,
hobbies: Vec<&'a str>,
}
fn main() {
let myself = Human {
name: String::from("Hangsia Hong"),
sex: String::from("Male"),
age: 19,
skills: vec!["Rust", "Python", "Linux"],
hobbies: vec!["Game", "Anime", "Music"],
};
}
I love connecting with different people so if you want to say hi, I'll be happy to know you more! 😊
🐱 My Github Data todo!