1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-17 07:11:27 +02:00
comprehensive-rust/third_party/rust-on-exercism/health-statistics.rs
2022-12-21 16:38:28 +01:00

32 lines
529 B
Rust

struct User {
name: String,
age: u32,
weight: f32,
}
impl User {
pub fn new(name: String, age: u32, weight: f32) -> Self {
unimplemented!()
}
pub fn name(&self) -> &str {
unimplemented!()
}
pub fn age(&self) -> u32 {
unimplemented!()
}
pub fn weight(&self) -> f32 {
unimplemented!()
}
pub fn set_age(&mut self, new_age: u32) {
unimplemented!()
}
pub fn set_weight(&mut self, new_weight: f32) {
unimplemented!()
}
}