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, RangeUnion, Rangetools};

impl<T, Rhs, RhsSet> RangeUnion<Rhs, RhsSet> for EmptyRange<T>
where
    Rhs: Rangetools<Set = RhsSet>,
{
    type Output = Rhs;
    fn union(self, other: Rhs) -> Self::Output {
        other
    }
}