Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/increment/mod.rs')
| -rw-r--r-- | helix-core/src/increment/mod.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/helix-core/src/increment/mod.rs b/helix-core/src/increment/mod.rs index f1978bde..f5945774 100644 --- a/helix-core/src/increment/mod.rs +++ b/helix-core/src/increment/mod.rs @@ -1,10 +1,8 @@ -mod date_time; -mod integer; +pub mod date_time; +pub mod number; -pub fn integer(selected_text: &str, amount: i64) -> Option<String> { - integer::increment(selected_text, amount) -} +use crate::{Range, Tendril}; -pub fn date_time(selected_text: &str, amount: i64) -> Option<String> { - date_time::increment(selected_text, amount) +pub trait Increment { + fn increment(&self, amount: i64) -> (Range, Tendril); } |