コンテンツにスキップ

ClampedEop

このコンテンツはまだ日本語訳がありません。

Defined in: table.rs:168

Available on crate feature alloc only.

pub struct ClampedEop\<T\>

An EopTable that answers out-of-range queries with its nearest endpoint.

The EOP capability traits (Ut1Offset and friends) are infallible by design, so they gate the high-precision APIs at compile time (Epoch::<Utc>::to_ut1(crate::epoch::Epoch::to_ut1), Rotation::<Gcrs, Itrs>::iau2006_full_from_utc(crate::frame::Rotation)). An EopTable covers a finite MJD span and therefore cannot honour an infallible contract; it deliberately does not implement those traits, so a caller has to name an out-of-range policy first. This adapter is the “hold the endpoint value” policy, obtained from EopTable::clamped / EopTable::into_clamped.

Clamping means polar motion, dX/dY and LOD are held constant beyond the table, and UT1 - TAI — the continuous part of dUT1 — is held constant while dUT1 itself still follows the leap seconds (see the Ut1Offset impl below). Acceptable for a short overshoot past the end of a prediction file, increasingly wrong the further out the query goes. Use the *_checked accessors when an out-of-range query must be an error instead.

fn table(&self) -> &EopTable

The wrapped table.