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

32 lines
533 B
Rust
Raw Normal View History

pub struct User {
2022-12-21 17:36:30 +02:00
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!()
}
}