summaryrefslogtreecommitdiff
path: root/src/cursor.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 11:38:19 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 11:38:19 +0200
commit04a5a938994ddb95cfaa9a74b180e457d3a2b5d0 (patch)
tree31ce9525ed3f3423678397323b65c910d63eadb1 /src/cursor.rs
parentfe0938b1de0c46fc2afcaa3dcd6a0f4ec870d21a (diff)
implement new lua interface
Diffstat (limited to 'src/cursor.rs')
-rw-r--r--src/cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cursor.rs b/src/cursor.rs
index ad6703e..8ab538b 100644
--- a/src/cursor.rs
+++ b/src/cursor.rs
@@ -30,13 +30,13 @@ impl Cursor {
}
}
- pub fn with_position(mut self, x: isize, y: isize) -> Self {
+ pub const fn with_position(mut self, x: isize, y: isize) -> Self {
self.x = x;
self.y = y;
self
}
- pub fn with_max(mut self, x: isize, y: isize) -> Self {
+ pub const fn with_max(mut self, x: isize, y: isize) -> Self {
self.x_max = x;
self.y_max = y;
self