Skip to main content

ConversionTarget

Trait ConversionTarget 

Source
pub trait ConversionTarget<S: Scale, SrcF: TimeFormat = J2000s>: Sealed {
    type Output;

    // Required method
    fn try_convert(src: Time<S, SrcF>) -> Result<Self::Output, ConversionError>;
}
Expand description

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

Required Associated Types§

Required Methods§

Source

fn try_convert(src: Time<S, SrcF>) -> Result<Self::Output, ConversionError>

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> ConversionTarget<S1, SrcF> for S2

Source§

type Output = Time<S2, SrcF>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<S: Scale + InfallibleScaleConvert<UTC>, SrcF: TimeFormat> ConversionTarget<S, SrcF> for Unix

Source§

impl<SrcF: TimeFormat> ConversionTarget<TAI, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<TCB, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<TCG, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<TDB, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<TT, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UT1, SrcF> for TAI

Source§

type Output = Time<TAI, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UT1, SrcF> for TCB

Source§

type Output = Time<TCB, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UT1, SrcF> for TCG

Source§

type Output = Time<TCG, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UT1, SrcF> for TDB

Source§

type Output = Time<TDB, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UT1, SrcF> for TT

Source§

type Output = Time<TT, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UT1, SrcF> for UTC

Source§

type Output = Time<UTC, SrcF>

Source§

impl<SrcF: TimeFormat> ConversionTarget<UTC, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>