Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 answers
573 users
#[derive(Debug)] struct Point{ x: i32, y: i32 } fn main() { let p = Point{ x: 13, y: 26 }; println!("{:?}", p); println!("{:?}", p.x); println!("{:?}", p.y); } /* run: Point { x: 13, y: 26 } 13 26 */