pub trait RangeOperations<Rhs: ?Sized = Self>where
    Self: Sized,{
    // Required methods
    fn intersects(&self, rhs: &Rhs) -> bool;
    fn covering(&self, rhs: &Rhs) -> bool;
    fn covered_by(&self, rhs: &Rhs) -> bool;
    fn union(&self, rhs: &Rhs) -> Option<Self>;
}

Required Methods§

source

fn intersects(&self, rhs: &Rhs) -> bool

source

fn covering(&self, rhs: &Rhs) -> bool

source

fn covered_by(&self, rhs: &Rhs) -> bool

source

fn union(&self, rhs: &Rhs) -> Option<Self>

Implementations on Foreign Types§

source§

impl<Idx> RangeOperations<Range<Idx>> for Range<Idx>where Idx: PartialOrd + Copy,

source§

fn intersects(&self, rhs: &Range<Idx>) -> bool

source§

fn covering(&self, rhs: &Range<Idx>) -> bool

source§

fn covered_by(&self, rhs: &Range<Idx>) -> bool

source§

fn union(&self, rhs: &Range<Idx>) -> Option<Range<Idx>>

Implementors§