This commit is contained in:
Antonio Scandurra
2021-05-03 18:58:39 +02:00
parent 4c4657515e
commit 4b38f2850d
3 changed files with 161 additions and 61 deletions
+7
View File
@@ -34,6 +34,13 @@ impl DisplayMap {
}
}
pub fn folds_in_range<T>(&self, range: Range<T>, app: &AppContext) -> Result<&[Range<Anchor>]>
where
T: ToOffset,
{
self.fold_map.folds_in_range(range, app)
}
pub fn fold<T: ToOffset>(
&mut self,
ranges: impl IntoIterator<Item = Range<T>>,