Skip to main content

ConversionTarget

Trait ConversionTarget 

Source
pub trait ConversionTarget<S, SrcF = J2000s>: Sealed
where S: Scale, SrcF: TimeFormat,
{ 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, S2, SrcF> ConversionTarget<S1, SrcF> for S2
where S1: Scale + InfallibleScaleConvert<S2>, S2: Scale, SrcF: TimeFormat,

Source§

type Output = Time<S2, SrcF>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<SrcF> ConversionTarget<BDT, SrcF> for UT1
where SrcF: TimeFormat,

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>

Source§

impl<SrcF> ConversionTarget<UT1, SrcF> for BDT
where SrcF: TimeFormat,

Source§

type Output = Time<BDT, SrcF>

Source§

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

Source§

type Output = Time<ET, SrcF>

Source§

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

Source§

type Output = Time<GPST, SrcF>

Source§

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

Source§

type Output = Time<GST, SrcF>

Source§

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

Source§

type Output = Time<QZSST, SrcF>

Source§

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

Source§

type Output = Time<TAI, SrcF>

Source§

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

Source§

type Output = Time<TCB, SrcF>

Source§

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

Source§

type Output = Time<TCG, SrcF>

Source§

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

Source§

type Output = Time<TDB, SrcF>

Source§

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

Source§

type Output = Time<TT, SrcF>

Source§

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

Source§

type Output = Time<UTC, SrcF>

Source§

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

Source§

type Output = Time<UT1, SrcF>