summaryrefslogtreecommitdiff
path: root/src/location.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/location.rs')
-rw-r--r--src/location.rs11
1 files changed, 11 insertions, 0 deletions
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
+ }
+}