use crate::TimePoint;
pub trait FromTimeScale<Scale, Representation, Period> {
fn from_time_scale(time_point: TimePoint<Scale, Representation, Period>) -> Self;
}
pub trait IntoTimeScale<Scale, Representation, Period> {
fn into_time_scale(self) -> TimePoint<Scale, Representation, Period>;
}
impl<S1, R1, P1, S2, R2, P2> IntoTimeScale<S1, R1, P1> for TimePoint<S2, R2, P2>
where
TimePoint<S1, R1, P1>: FromTimeScale<S2, R2, P2>,
{
fn into_time_scale(self) -> TimePoint<S1, R1, P1> {
TimePoint::from_time_scale(self)
}
}