diff options
author | Tom Barrett <tombarrett@siu.edu> | 2017-10-23 11:57:59 -0500 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-10-23 11:57:59 -0500 |
commit | 1e77601579065df48a9b1d9daa9dba46522842ca (patch) | |
tree | b6ad932cd3fb9c838c85b6c918c16769f00d7139 /src/location.rs |
-decent starting point, but centering does not seem to be working
Diffstat (limited to 'src/location.rs')
-rw-r--r-- | src/location.rs | 11 |
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 + } +} |