From 1e77601579065df48a9b1d9daa9dba46522842ca Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Mon, 23 Oct 2017 11:57:59 -0500 Subject: -decent starting point, but centering does not seem to be working --- src/location.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/location.rs (limited to 'src/location.rs') diff --git a/src/location.rs b/src/location.rs new file mode 100644 index 0000000..b1b9144 --- /dev/null +++ b/src/location.rs @@ -0,0 +1,11 @@ +pub struct Location{ + pub x : i32, + pub y : i32 +} + +impl Copy for Location {} +impl Clone for Location { + fn clone(&self) -> Location { + *self + } +} -- cgit v1.2.3