rangetools/complement.rs
1/// Helper trait for performing range complement.
2///
3/// In most cases, users should import the `Rangetools` trait instead of this one, as it performs
4/// the necessary forwarding. See [`.complement()`](crate::Rangetools::complement) for more information.
5pub trait RangeComplement<Output> {
6 /// Returns a set of all the elements not in `self`.
7 fn complement(self) -> Output;
8}