#[non_exhaustive]pub enum ScaleId {
Glonass,
Gps,
Galileo,
Beidou,
Tai,
Utc,
}Expand description
Runtime time-scale identifier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Glonass
GLONASS time scale.
Gps
GPS time scale.
Galileo
Galileo time scale.
Beidou
BeiDou time scale.
Tai
International Atomic Time.
Utc
Coordinated Universal Time.
Implementations§
Source§impl ScaleId
impl ScaleId
Sourcepub const fn conversion_kind(self, target: ScaleId) -> ConversionKind
pub const fn conversion_kind(self, target: ScaleId) -> ConversionKind
Sourcepub const fn is_fixed(self, target: ScaleId) -> bool
pub const fn is_fixed(self, target: ScaleId) -> bool
Returns true if the conversion self -> target does not require leap
second context.
Sourcepub const fn needs_leap_seconds(self, target: ScaleId) -> bool
pub const fn needs_leap_seconds(self, target: ScaleId) -> bool
Returns true if the conversion requires a LeapSecondsProvider.
Trait Implementations§
impl Copy for ScaleId
impl Eq for ScaleId
impl StructuralPartialEq for ScaleId
Auto Trait Implementations§
impl Freeze for ScaleId
impl RefUnwindSafe for ScaleId
impl Send for ScaleId
impl Sync for ScaleId
impl Unpin for ScaleId
impl UnsafeUnpin for ScaleId
impl UnwindSafe for ScaleId
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