File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 11
11
/// # Translation from `text_unit`
12
12
///
13
13
/// - `TextRange::from_to(from, to)` ⟹ `TextRange(from, to)`
14
- /// - `TextRange::offset_len(offset, size)` ⟹ `TextRange::to (size).offset(offset)`
14
+ /// - `TextRange::offset_len(offset, size)` ⟹ `TextRange::before (size).offset(offset)`
15
15
/// - `range.start()` ⟹ `range.start()`
16
16
/// - `range.end()` ⟹ `range.end()`
17
17
/// - `range.len()` ⟹ `range.len()`
@@ -65,17 +65,6 @@ impl TextRange {
65
65
}
66
66
}
67
67
68
- /// Create a range after the given start (`start..`).
69
- ///
70
- /// This returns a std [`RangeFrom`] rather than `TextRange` because
71
- /// `TextRange` does not support right-unbounded ranges. As such, this
72
- /// should only be used for direct indexing, and bounded ranges should be
73
- /// used for persistent ranges (`TextRange(start, TextSize::of(text))`).
74
- #[ inline]
75
- pub const fn after ( start : TextSize ) -> RangeFrom < usize > {
76
- start. raw as usize ..
77
- }
78
-
79
68
/// Offset this range by some amount.
80
69
///
81
70
/// This is typically used to convert a range from one coordinate space to
You can’t perform that action at this time.
0 commit comments