Skip to main content

DefaultOffsetProvider

Struct DefaultOffsetProvider 

Source
pub struct DefaultOffsetProvider;
Expand description

Default offset provider using built-in leap second tables and standard algorithms.

Trait Implementations§

Source§

impl Clone for DefaultOffsetProvider

Source§

fn clone(&self) -> DefaultOffsetProvider

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DefaultOffsetProvider

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DefaultOffsetProvider

Source§

fn default() -> DefaultOffsetProvider

Returns the “default value” for a type. Read more
Source§

impl LeapSecondsProvider for DefaultOffsetProvider

Source§

fn delta_tai_utc(&self, tai: Time<Tai>) -> TimeDelta

The difference in leap seconds between TAI and UTC at the given TAI instant.
Source§

fn delta_utc_tai(&self, utc: Utc) -> TimeDelta

The difference in leap seconds between UTC and TAI at the given UTC instant.
Source§

fn is_leap_second_date(&self, date: Date) -> bool

Returns true if a leap second occurs on date.
Source§

fn is_leap_second(&self, tai: Time<Tai>) -> bool

Returns true if a leap second occurs at tai.
Source§

impl OffsetProvider for DefaultOffsetProvider

Source§

type Error = Infallible

The error type for fallible offset computations (e.g. UT1).
Source§

fn tai_to_ut1(&self, delta: TimeDelta) -> Result<TimeDelta, Self::Error>

Returns the TAI→UT1 offset at the given delta.
Source§

fn ut1_to_tai(&self, delta: TimeDelta) -> Result<TimeDelta, Self::Error>

Returns the UT1→TAI offset at the given delta.
Source§

fn tai_to_tt(&self) -> TimeDelta

Returns the constant TAI→TT offset.
Source§

fn tt_to_tai(&self) -> TimeDelta

Returns the constant TT→TAI offset.
Source§

fn tt_to_tcg(&self, delta: TimeDelta) -> TimeDelta

Returns the TT→TCG offset at the given delta.
Source§

fn tcg_to_tt(&self, delta: TimeDelta) -> TimeDelta

Returns the TCG→TT offset at the given delta.
Source§

fn tdb_to_tcb(&self, delta: TimeDelta) -> TimeDelta

Returns the TDB→TCB offset at the given delta.
Source§

fn tcb_to_tdb(&self, delta: TimeDelta) -> TimeDelta

Returns the TCB→TDB offset at the given delta.
Source§

fn tt_to_tdb(&self, delta: TimeDelta) -> TimeDelta

Returns the TT→TDB offset at the given delta.
Source§

fn tdb_to_tt(&self, delta: TimeDelta) -> TimeDelta

Returns the TDB→TT offset at the given delta.
Source§

impl Copy for DefaultOffsetProvider

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, Origin, Target> Offset<Origin, Target> for T
where Origin: TimeScale, Target: TimeScale, T: TryOffset<Origin, Target, Error = Infallible>,

Source§

fn offset(&self, origin: Origin, target: Target, delta: TimeDelta) -> TimeDelta

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TryOffset<DynTimeScale, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<DynTimeScale, Tai> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: Tai, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<DynTimeScale, Tcb> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: Tcb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<DynTimeScale, Tcg> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: Tcg, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<DynTimeScale, Tdb> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: Tdb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<DynTimeScale, Tt> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: Tt, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<DynTimeScale, Ut1> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: DynTimeScale, target: Ut1, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<DynTimeScale, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tai, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, Tai> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tai, _target: Tai, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, Tcb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tai, target: Tcb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, Tcg> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tai, target: Tcg, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, Tdb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tai, target: Tdb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, Tt> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tai, _target: Tt, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tai, Ut1> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tai, _target: Ut1, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tai, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcb, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, Tai> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcb, target: Tai, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, Tcb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tcb, _target: Tcb, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, Tcg> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcb, target: Tcg, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, Tdb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tcb, _target: Tdb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, Tt> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcb, target: Tt, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcb, Ut1> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tcb, _target: Ut1, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcb, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcg, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, Tai> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcg, target: Tai, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, Tcb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcg, target: Tcb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, Tcg> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tcg, _target: Tcg, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, Tdb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tcg, target: Tdb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, Tt> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tcg, _target: Tt, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tcg, Ut1> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tcg, _target: Ut1, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tcg, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tdb, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, Tai> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tdb, target: Tai, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, Tcb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tdb, _target: Tcb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, Tcg> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tdb, target: Tcg, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, Tdb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tdb, _target: Tdb, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, Tt> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tdb, _target: Tt, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tdb, Ut1> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tdb, _target: Ut1, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tdb, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tt, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, Tai> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tt, _target: Tai, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, Tcb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Tt, target: Tcb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, Tcg> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tt, _target: Tcg, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, Tdb> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tt, _target: Tdb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, Tt> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tt, _target: Tt, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Tt, Ut1> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Tt, _target: Ut1, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Tt, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, DynTimeScale> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, origin: Ut1, target: DynTimeScale, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, DynTimeScale>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, Tai> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Ut1, _target: Tai, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, Tai>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, Tcb> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Ut1, _target: Tcb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, Tcb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, Tcg> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Ut1, _target: Tcg, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, Tcg>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, Tdb> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Ut1, _target: Tdb, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, Tdb>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, Tt> for T
where T: OffsetProvider,

Source§

type Error = <T as OffsetProvider>::Error

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Ut1, _target: Tt, delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, Tt>>::Error>

Computes the offset from origin to target at the given delta since J2000.
Source§

impl<T> TryOffset<Ut1, Ut1> for T
where T: OffsetProvider,

Source§

type Error = Infallible

The error type returned when the offset cannot be computed.
Source§

fn try_offset( &self, _origin: Ut1, _target: Ut1, _delta: TimeDelta, ) -> Result<TimeDelta, <T as TryOffset<Ut1, Ut1>>::Error>

Computes the offset from origin to target at the given delta since J2000.