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".

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<BDT, SrcF> for UT1

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

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 BDT

Source§

type Output = Time<BDT, SrcF>

Source§

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

Source§

type Output = Time<ET, SrcF>

Source§

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

Source§

type Output = Time<GPST, SrcF>

Source§

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

Source§

type Output = Time<GST, SrcF>

Source§

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

Source§

type Output = Time<QZSST, 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>