struct Point { x: f64, y: f64 } fn display_struct(s: &Point) { println!("s.x: {}; s.y: {}", s.x, s.y); } fn main() { let mut s = Point {x: 5.0, y: 5.0}; display_struct(&mut s); s.x = 2.0; display_struct(&mut s); }