pub struct Galileo;Expand description
Galileo — European navigation system (GST)
- Epoch: 1999-08-22 UTC
- Same offset as GPS (TAI − 19 s)
- Equal numeric values represent the same physical instant
- Format:
"GAL 1303:432000.000"
Trait Implementations§
Source§impl IntoScale<Galileo> for Time<Beidou>
impl IntoScale<Galileo> for Time<Beidou>
Source§fn into_scale(self) -> Result<Time<Galileo>, GnssTimeError>
fn into_scale(self) -> Result<Time<Galileo>, GnssTimeError>
BeiDou -> Galileo via TAI.
Source§impl IntoScale<Galileo> for Time<Gps>
impl IntoScale<Galileo> for Time<Gps>
Source§fn into_scale(self) -> Result<Time<Galileo>, GnssTimeError>
fn into_scale(self) -> Result<Time<Galileo>, GnssTimeError>
GPS -> Galileo: identical at nanosecond level (both use TAI − 19s).
GPS and Galileo timestamps with identical nanoseconds represent the same physical instant.
use gnss_time::{Galileo, Gps, IntoScale, Time};
let gps = Time::<Gps>::from_seconds(12_345);
let gal: Time<Galileo> = gps.into_scale().unwrap();
assert_eq!(gps.as_nanos(), gal.as_nanos());Source§impl IntoScaleWith<Galileo> for Time<Glonass>
impl IntoScaleWith<Galileo> for Time<Glonass>
Source§fn into_scale_with<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<Time<Galileo>, GnssTimeError>
fn into_scale_with<P: LeapSecondsProvider>( self, ls: P, ) -> Result<Time<Galileo>, GnssTimeError>
GLONASS -> Galileo via UTC.
Source§fn into_scale_with_checked<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<ConvertResult<Time<Galileo>>, GnssTimeError>
fn into_scale_with_checked<P: LeapSecondsProvider>( self, ls: P, ) -> Result<ConvertResult<Time<Galileo>>, GnssTimeError>
Converts and reports whether the result is ambiguous due to a
leap-second insertion.
Source§impl IntoScaleWith<Galileo> for Time<Utc>
impl IntoScaleWith<Galileo> for Time<Utc>
Source§fn into_scale_with<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<Time<Galileo>, GnssTimeError>
fn into_scale_with<P: LeapSecondsProvider>( self, ls: P, ) -> Result<Time<Galileo>, GnssTimeError>
UTC -> Galileo via GPS.
Source§fn into_scale_with_checked<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<ConvertResult<Time<Galileo>>, GnssTimeError>
fn into_scale_with_checked<P: LeapSecondsProvider>( self, ls: P, ) -> Result<ConvertResult<Time<Galileo>>, GnssTimeError>
Converts and reports whether the result is ambiguous due to a
leap-second insertion.
Source§impl TimeScale for Galileo
impl TimeScale for Galileo
Source§const OFFSET_TO_TAI: OffsetToTai
const OFFSET_TO_TAI: OffsetToTai
Offset relative to TAI: Read more
Source§const EPOCH_CIVIL: CivilDate
const EPOCH_CIVIL: CivilDate
Civil epoch of the scale (where time == 0).
Source§const DISPLAY_STYLE: DisplayStyle = DisplayStyle::WeekTow
const DISPLAY_STYLE: DisplayStyle = DisplayStyle::WeekTow
Formatting style for display output.
impl Copy for Galileo
impl Eq for Galileo
impl StructuralPartialEq for Galileo
Auto Trait Implementations§
impl Freeze for Galileo
impl RefUnwindSafe for Galileo
impl Send for Galileo
impl Sync for Galileo
impl Unpin for Galileo
impl UnsafeUnpin for Galileo
impl UnwindSafe for Galileo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more