pub trait TimePoint: Clone + Copy + Eq + Ord + Neg<Output = Self> {
    const INFINITE: Self;

    fn is_finite(&self) -> bool;
    fn is_future_infinite(&self) -> bool;
    fn is_past_infinite(&self) -> bool;
    fn just_after(&self) -> Self;
    fn just_before(&self) -> Self;
}
Expand description

Required Associated Constants

The infinite time point (∞)

Required Methods

Checks if this value is finite

Checks if this value is +∞

Checks if this value is -∞

Returns a value just after

Returns a value just before

Implementors