1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[derive(Debug)] pub struct Position { pub x: i32, pub y: i32, } impl Position { #[inline] pub fn new(x: i32, y: i32) -> Position { Position { x, y, } } }