stop using any nightly features (ill miss u const traits)

This commit is contained in:
alice pellerin
2026-05-01 00:41:37 -05:00
parent 7eb8c84c6e
commit 35a01b9128
7 changed files with 37 additions and 28 deletions
+11
View File
@@ -0,0 +1,11 @@
use std::ops::RangeInclusive;
pub trait IsOverlapping {
fn is_overlapping(&self, other: &Self) -> bool;
}
impl IsOverlapping for RangeInclusive<usize> {
fn is_overlapping(&self, other: &Self) -> bool {
self.contains(other.start()) || self.contains(other.end())
}
}