summaryrefslogtreecommitdiff
path: root/helix-core/src/range.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-05-20 09:14:51 +0000
committerBlaž Hrastnik2020-05-20 09:14:51 +0000
commit240e5f4e3d27415b792776dd126d15302d53e83b (patch)
tree8579f77ca5d200bafd7df09ab93ceb65e5bdce3b /helix-core/src/range.rs
Initial import.
Diffstat (limited to 'helix-core/src/range.rs')
-rw-r--r--helix-core/src/range.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/helix-core/src/range.rs b/helix-core/src/range.rs
new file mode 100644
index 00000000..46411664
--- /dev/null
+++ b/helix-core/src/range.rs
@@ -0,0 +1,9 @@
+use crate::Position;
+
+#[derive(Clone, Copy, PartialEq, Eq)]
+pub struct Range {
+ pub start: Position,
+ pub end: Position,
+}
+
+// range traversal iters