Trait TimeConvex

Source
pub trait TimeConvex:
    TimeBounds
    + Sized
    + Into<TimeInterval<Self::TimePoint>> { }
Expand description

§A marker of convex (interval) time set

If a time window implements this trait, it is sure that it is a time interval (bounded or not) or an empty set.

Some computations will be optimized for convex windows.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: TimePoint> TimeConvex for Range<T>

Source§

impl<T: TimePoint> TimeConvex for RangeFrom<T>

Source§

impl<T: TimePoint> TimeConvex for RangeInclusive<T>

Source§

impl<T: TimePoint> TimeConvex for RangeTo<T>

Source§

impl<T: TimePoint> TimeConvex for RangeToInclusive<T>

Source§

impl<TW> TimeConvex for ((Instant, Instant), TW)
where TW: TimeConvex<TimePoint = TimeValue>,

Implementors§