[][src]Trait range_ext::intersect::Intersect

pub trait Intersect<T: PartialOrd, U: RangeBounds<T>>: RangeBounds<T> {
    fn intersect(&self, other: &U) -> IntersectionExt;
}

Required methods

fn intersect(&self, other: &U) -> IntersectionExt

Test two ranges for an intersection

Loading content...

Implementations on Foreign Types

impl<T: PartialOrd> Intersect<T, Range<T>> for Range<T>[src]

impl<T: PartialOrd> Intersect<T, RangeFrom<T>> for Range<T>[src]

impl<T: PartialOrd> Intersect<T, RangeFull> for Range<T>[src]

impl<T: PartialOrd> Intersect<T, RangeTo<T>> for Range<T>[src]

Loading content...

Implementors

Loading content...