Skip to main content

InfallibleConversionTarget

Trait InfallibleConversionTarget 

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

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

Required Methods§

Source

fn convert(src: Time<S, SrcF>) -> 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: Scale + InfallibleScaleConvert<S2>, S2: Scale, SrcF: TimeFormat> InfallibleConversionTarget<S1, SrcF> for S2

Source§

impl<S: CoordinateScale, SrcF: TimeFormat> InfallibleConversionTarget<S, SrcF> for J2000s

Source§

impl<S: CoordinateScale, SrcF: TimeFormat> InfallibleConversionTarget<S, SrcF> for JD

Source§

impl<S: CoordinateScale, SrcF: TimeFormat> InfallibleConversionTarget<S, SrcF> for MJD

Source§

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