rangetools 0.1.4

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

impl<T> RangeComplement<UnboundedSet<T>> for std::ops::RangeInclusive<T>
where
    T: Copy + Ord,
{
    fn complement(self) -> UnboundedSet<T> {
        RangeComplement::complement(self.to_inner())
    }
}