Rename AnchorRangeSet::to_point_ranges -> point_ranges
This commit is contained in:
parent
9bc08e446b
commit
a1e576343e
3 changed files with 5 additions and 5 deletions
|
@ -200,14 +200,14 @@ impl AnchorRangeSet {
|
|||
self.0.len()
|
||||
}
|
||||
|
||||
pub fn to_offset_ranges<'a>(
|
||||
pub fn offset_ranges<'a>(
|
||||
&'a self,
|
||||
content: impl Into<Content<'a>> + 'a,
|
||||
) -> impl Iterator<Item = Range<usize>> + 'a {
|
||||
self.0.offset_ranges(content).map(|(range, _)| range)
|
||||
}
|
||||
|
||||
pub fn to_point_ranges<'a>(
|
||||
pub fn point_ranges<'a>(
|
||||
&'a self,
|
||||
content: impl Into<Content<'a>> + 'a,
|
||||
) -> impl Iterator<Item = Range<Point>> + 'a {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue