pub struct Beidou;Expand description
BeiDou — Chinese navigation system (BDT)
- Epoch: 2006-01-01 UTC
- BDT = TAI − 33 seconds
- BDT = GPS − 14 seconds
- Format:
"BDT 960:432000.000"
Trait Implementations§
Source§impl IntoScale<Beidou> for Time<Galileo>
impl IntoScale<Beidou> for Time<Galileo>
Source§fn into_scale(self) -> Result<Time<Beidou>, GnssTimeError>
fn into_scale(self) -> Result<Time<Beidou>, GnssTimeError>
Galileo -> BeiDou via TAI.
Source§impl IntoScale<Beidou> for Time<Gps>
impl IntoScale<Beidou> for Time<Gps>
Source§fn into_scale(self) -> Result<Time<Beidou>, GnssTimeError>
fn into_scale(self) -> Result<Time<Beidou>, GnssTimeError>
GPS -> BeiDou: BDT = GPS - 14s.
use gnss_time::{Beidou, Gps, IntoScale, Time};
let gps = Time::<Gps>::from_seconds(100);
let bdt: Time<Beidou> = gps.into_scale().unwrap();
assert_eq!(bdt.as_seconds(), 86); // 100 - 14 = 86Source§impl IntoScaleWith<Beidou> for Time<Glonass>
impl IntoScaleWith<Beidou> for Time<Glonass>
Source§fn into_scale_with<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<Time<Beidou>, GnssTimeError>
fn into_scale_with<P: LeapSecondsProvider>( self, ls: P, ) -> Result<Time<Beidou>, GnssTimeError>
GLONASS -> BeiDou via UTC.
Source§fn into_scale_with_checked<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<ConvertResult<Time<Beidou>>, GnssTimeError>
fn into_scale_with_checked<P: LeapSecondsProvider>( self, ls: P, ) -> Result<ConvertResult<Time<Beidou>>, GnssTimeError>
Converts using the provided leap-second source and reports leap-second
ambiguity when applicable.
Source§impl IntoScaleWith<Beidou> for Time<Utc>
impl IntoScaleWith<Beidou> for Time<Utc>
Source§fn into_scale_with<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<Time<Beidou>, GnssTimeError>
fn into_scale_with<P: LeapSecondsProvider>( self, ls: P, ) -> Result<Time<Beidou>, GnssTimeError>
UTC → BeiDou via GPS.
Source§fn into_scale_with_checked<P: LeapSecondsProvider>(
self,
ls: P,
) -> Result<ConvertResult<Time<Beidou>>, GnssTimeError>
fn into_scale_with_checked<P: LeapSecondsProvider>( self, ls: P, ) -> Result<ConvertResult<Time<Beidou>>, GnssTimeError>
Converts using the provided leap-second source and reports leap-second
ambiguity when applicable.
Source§impl TimeScale for Beidou
impl TimeScale for Beidou
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 date of the scale’s epoch
(where
Time<S>::EPOCH == 0 ns)Source§const DISPLAY_STYLE: DisplayStyle = DisplayStyle::WeekTow
const DISPLAY_STYLE: DisplayStyle = DisplayStyle::WeekTow
Time display format
impl Copy for Beidou
impl Eq for Beidou
impl StructuralPartialEq for Beidou
Auto Trait Implementations§
impl Freeze for Beidou
impl RefUnwindSafe for Beidou
impl Send for Beidou
impl Sync for Beidou
impl Unpin for Beidou
impl UnsafeUnpin for Beidou
impl UnwindSafe for Beidou
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