Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-stdx/src/range.rs')
| -rw-r--r-- | helix-stdx/src/range.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-stdx/src/range.rs b/helix-stdx/src/range.rs index 0b241199..dcf7bfc2 100644 --- a/helix-stdx/src/range.rs +++ b/helix-stdx/src/range.rs @@ -1,3 +1,5 @@ +//! Provides [Range] type expanding on [RangeBounds]. + use std::ops::{self, RangeBounds}; /// A range of `char`s within the text. @@ -66,6 +68,7 @@ pub fn is_subset<const ALLOW_EMPTY: bool>( } } +/// Similar to is_subset but requires each element of `super_set` to be matched pub fn is_exact_subset( mut super_set: impl Iterator<Item = Range>, mut sub_set: impl Iterator<Item = Range>, |