rangetools 0.1.4

Extending the Rust Range structs found in std::ops
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{EmptyRange, RangeIntersection, Rangetools};

impl<T, Rhs, RhsInner> RangeIntersection<Rhs, RhsInner> for EmptyRange<T>
where
    Rhs: Rangetools<Inner = RhsInner>,
{
    type Output = EmptyRange<T>;
    fn intersection(self, _: Rhs) -> Self::Output {
        self
    }
}