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§

source

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>
where T: Ord + Eq + Copy,

Implementation of the RangeExt trait for all types which implement Ord, Eq and Copy

source§

fn compare(&self, other: &Range<T>) -> RangeCmpResult<T>

Compare two ranges and get the RangeCmpResult of the comparison

Implementors§