IntoTimeScale

Trait IntoTimeScale 

Source
pub trait IntoTimeScale<Scale: ?Sized> {
    // Required method
    fn into_time_scale(self) -> TimePoint<Scale>;
}
Expand description

Trait representing the ability to convert from one scale into another. Note that this conversion must always succeed: barring arithmetic overflows (on which panics are advised), it must always be possible to relate the time of two scales.

This trait shall generally be derived based on an existing FromScale implementation.

Required Methods§

Source

fn into_time_scale(self) -> TimePoint<Scale>

Constructs a time point from an instant expressed in another scale.

Implementors§

Source§

impl<S1, S2> IntoTimeScale<S1> for TimePoint<S2>
where TimePoint<S1>: FromTimeScale<S2>,