Skip to main content

InfallibleConversionTarget

Trait InfallibleConversionTarget 

Source
pub trait InfallibleConversionTarget<S: Scale>: ConversionTarget<S> + Sealed {
    // Required method
    fn convert(src: Time<S>) -> Self::Output;
}
Expand description

Unified infallible conversion target for Time<S>::to::<T>().

Required Methods§

Source

fn convert(src: Time<S>) -> Self::Output

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.

Implementors§

Source§

impl<S1, S2> InfallibleConversionTarget<S1> for S2
where S1: Scale + InfallibleScaleConvert<S2>, S2: Scale,

Source§

impl<S> InfallibleConversionTarget<S> for GPS
where S: Scale + InfallibleScaleConvert<TAI>,

Source§

impl<S: CoordinateScale> InfallibleConversionTarget<S> for J2000s

Source§

impl<S: CoordinateScale> InfallibleConversionTarget<S> for JD

Source§

impl<S: CoordinateScale> InfallibleConversionTarget<S> for MJD