impl User {
fn sayhello(&self) {
println!("{},{},{}", self.username, self.age, self.email);
}
fn changer_age(&mut self, mut newage: u32) {
self.age = newage;
}
}
fn sayhello(&self) {
println!("{},{},{}", self.username, self.age, self.email);
}
fn changer_age(&mut self, mut newage: u32) {
self.age = newage;
}
}
2021-03-02