1 2 3 4 5 6 7 8 9 10
pub struct Coordinate { pub x: u32, pub y: u32, } impl Coordinate { pub fn new(x: u32, y: u32) -> Self { Coordinate { x, y } } }