aboutsummaryrefslogtreecommitdiff
path: root/src/index.rs
diff options
context:
space:
mode:
authorJoe Wilm <jwilm@users.noreply.github.com>2018-09-17 08:15:20 -0700
committerGitHub <noreply@github.com>2018-09-17 08:15:20 -0700
commitcff58e9d683c44a34f37e628c7faaea4410ada74 (patch)
treee051a942190247faeab42757dd6a5f08db5a7cca /src/index.rs
parent865727c062810e29fa33b5c04bb05510e7da3ddf (diff)
parent054e38e98d8f150b99b50fec9f679c3d23875a0a (diff)
downloadr-alacritty-cff58e9d683c44a34f37e628c7faaea4410ada74.tar.gz
r-alacritty-cff58e9d683c44a34f37e628c7faaea4410ada74.tar.bz2
r-alacritty-cff58e9d683c44a34f37e628c7faaea4410ada74.zip
Merge pull request #1147 from jwilm/scrollback
Scrollback
Diffstat (limited to 'src/index.rs')
-rw-r--r--src/index.rs8
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 }
}
}