rangetools 0.1.4

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

impl<B, R: Rangetools<Inner = B>> RangeIntersection<R, B> for UnboundedRange {
    type Output = B;
    fn intersection(self, other: R) -> Self::Output {
        other.to_inner()
    }
}