diff options
Diffstat (limited to 'src/index.rs')
-rw-r--r-- | src/index.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/index.rs b/src/index.rs index 149fd458..8ac1ab3a 100644 --- a/src/index.rs +++ b/src/index.rs @@ -64,6 +64,12 @@ impl From<Point<isize>> for Point<usize> { } } +impl From<Point> for Point<usize> { + fn from(point: Point) -> Self { + Point::new(point.line.0, point.col) + } +} + /// A line /// /// Newtype to avoid passing values incorrectly |