RangeExt

Trait RangeExt 

Source
pub trait RangeExt<T> {
    // Required methods
    fn exceeds_max(&self, other: &T) -> bool
       where T: PartialOrd<T>;
    fn under_min(&self, item: &T) -> bool
       where T: PartialOrd<T>;
    fn contains(&self, item: &T) -> bool
       where T: PartialOrd<T>;
    fn into_tuple(self) -> (Bound<T>, Bound<T>)
       where T: Copy + Sized;
}

Required Methods§

Source

fn exceeds_max(&self, other: &T) -> bool
where T: PartialOrd<T>,

Source

fn under_min(&self, item: &T) -> bool
where T: PartialOrd<T>,

Source

fn contains(&self, item: &T) -> bool
where T: PartialOrd<T>,

Source

fn into_tuple(self) -> (Bound<T>, Bound<T>)
where T: Copy + Sized,

Implementors§

Source§

impl<T, R: RangeBounds<T>> RangeExt<T> for R