1 2 3 4 5 6 7 8 9 10 11
pub struct Location{ pub x : i32, pub y : i32 } impl Copy for Location {} impl Clone for Location { fn clone(&self) -> Location { *self } }