diff options
author | Norbert Preining <norbert@preining.info> | 2020-05-28 03:03:21 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-05-28 03:03:21 +0000 |
commit | 745892fbddea56040139108277e728b53fd8fc11 (patch) | |
tree | 15e55e299b38fccdabce8364f1fbf4f02ef37994 /support/texlab/src/range.rs | |
parent | 195ca7e0c377d83455867bdd8e409d4e1cf024ea (diff) |
CTAN sync 202005280303
Diffstat (limited to 'support/texlab/src/range.rs')
-rw-r--r-- | support/texlab/src/range.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/support/texlab/src/range.rs b/support/texlab/src/range.rs deleted file mode 100644 index 515ec187a6..0000000000 --- a/support/texlab/src/range.rs +++ /dev/null @@ -1,32 +0,0 @@ -use lsp_types::*; - -pub trait RangeExt { - fn new_simple(start_line: u64, start_character: u64, end_line: u64, end_character: u64) - -> Self; - - fn contains(&self, position: Position) -> bool; - - fn contains_exclusive(&self, position: Position) -> bool; -} - -impl RangeExt for Range { - fn new_simple( - start_line: u64, - start_character: u64, - end_line: u64, - end_character: u64, - ) -> Self { - Range { - start: Position::new(start_line, start_character), - end: Position::new(end_line, end_character), - } - } - - fn contains(&self, position: Position) -> bool { - position >= self.start && position <= self.end - } - - fn contains_exclusive(&self, position: Position) -> bool { - position > self.start && position < self.end - } -} |