#[non_exhaustive]pub enum ConversionKind {
Fixed,
Identity,
EpochShift,
Contextual,
SameScale,
}Expand description
Conversion kind between two time scales.
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.
Fixed
Fixed offset — no context required.
Identity
Identity mapping (GPS <-> Galileo: same nanoseconds).
EpochShift
Constant epoch shift without leap-second context (GLONASS <-> UTC).
Contextual
Requires LeapSecondsProvider.
SameScale
Same scale (no conversion needed).
Trait Implementations§
Source§impl Clone for ConversionKind
impl Clone for ConversionKind
Source§fn clone(&self) -> ConversionKind
fn clone(&self) -> ConversionKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversionKind
impl Debug for ConversionKind
Source§impl PartialEq for ConversionKind
impl PartialEq for ConversionKind
impl Copy for ConversionKind
impl Eq for ConversionKind
impl StructuralPartialEq for ConversionKind
Auto Trait Implementations§
impl Freeze for ConversionKind
impl RefUnwindSafe for ConversionKind
impl Send for ConversionKind
impl Sync for ConversionKind
impl Unpin for ConversionKind
impl UnsafeUnpin for ConversionKind
impl UnwindSafe for ConversionKind
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