diff options
Diffstat (limited to 'src/index.rs')
-rw-r--r-- | src/index.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.rs b/src/index.rs index c5ae0794..ab8e7416 100644 --- a/src/index.rs +++ b/src/index.rs @@ -28,13 +28,13 @@ pub enum Side { /// Index in the grid using row, column notation #[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Serialize, Deserialize, PartialOrd)] -pub struct Point { - pub line: Line, +pub struct Point<L=Line> { + pub line: L, pub col: Column, } -impl Point { - pub fn new(line: Line, col: Column) -> Point { +impl<L> Point<L> { + pub fn new(line: L, col: Column) -> Point<L> { Point { line, col } } } |