pub trait RangeExt<T> {
// Required method
fn compare(&self, other: &Range<T>) -> RangeCmpResult<T>;
}
Expand description
Extension trait for ranges
This trait provides a method to compare two ranges and get the result of the comparison.
Required Methods§
Sourcefn compare(&self, other: &Range<T>) -> RangeCmpResult<T>
fn compare(&self, other: &Range<T>) -> RangeCmpResult<T>
Compare two ranges and get the RangeCmpResult of the comparison
Implementations on Foreign Types§
Source§impl<T> RangeExt<T> for Range<T>
Implementation of the RangeExt trait for all types which implement Ord, Eq and Copy
impl<T> RangeExt<T> for Range<T>
Implementation of the RangeExt trait for all types which implement Ord, Eq and Copy
Source§fn compare(&self, other: &Range<T>) -> RangeCmpResult<T>
fn compare(&self, other: &Range<T>) -> RangeCmpResult<T>
Compare two ranges and get the RangeCmpResult of the comparison