Skip to content

NullEop

Defined in: mod.rs:181

pub struct NullEop

EOP placeholder that implements none of the EOP parameter traits.

これを受け付けるのは provider-free な API (Epoch<Utc>::to_ut1_naive など) のみで、 EOP trait bound を要求する全ての API では compile error になる。例えば Epoch<Utc>::to_ut1<P: Ut1Offset>Rotation<Gcrs, Cirs>::iau2006(crate::frame::Rotation::iau2006) に NullEop を渡すと 型エラーになる。

NullEop が直接使われる場面は現状ではほぼない。意図的に EOP trait を一つも 実装せず、高精度 API が silent に no-op 相当に degrade することを型レベルで 防ぐ compile-error 誘発装置 として存在する。trybuild compile-fail test で この性質を pin している (arika/tests/trybuild/ 参照)。