Trait TimeOverlapping

Source
pub trait TimeOverlapping<TW> {
    // Required method
    fn overlaps(&self, rhs: &TW) -> bool;
}
Expand description

§A trait for time overlapping

Two time windows overlap if the intersection is not empty.

Required Methods§

Source

fn overlaps(&self, rhs: &TW) -> bool

Implementors§

Source§

impl<T: TimePoint> TimeOverlapping<TimeSet<T>> for TimeSet<T>

Source§

impl<T: TimePoint, TW> TimeOverlapping<TW> for TimeSet<T>
where TW: TimeConvex<TimePoint = T>,

Source§

impl<TW1: TimeConvex, TW2> TimeOverlapping<TW2> for TW1
where TW2: TimeBounds<TimePoint = TW1::TimePoint> + TimeConvex,

Source§

impl<TW: TimeConvex> TimeOverlapping<TimeSet<<TW as TimeBounds>::TimePoint>> for TW