pub enum StardateEra {
Tos,
Tng,
Century32,
}Expand description
Stardate era (OCS §12.1).
Variants§
Tos
TOS: 0 ≤ S < 10000, Gregorian(2265.0 + 0.1·S)
Tng
TNG/DS9/VOY: 41000 ≤ S < 60000, Gregorian(2364.0 + (S-41000)/1000)
Century32
32nd Century: S ≥ 860000, Gregorian(3188.0 + (S-860000)/1000)
Implementations§
Trait Implementations§
Source§impl Clone for StardateEra
impl Clone for StardateEra
impl Copy for StardateEra
Source§impl Debug for StardateEra
impl Debug for StardateEra
impl Eq for StardateEra
Source§impl Hash for StardateEra
impl Hash for StardateEra
Source§impl PartialEq for StardateEra
impl PartialEq for StardateEra
impl StructuralPartialEq for StardateEra
Auto Trait Implementations§
impl Freeze for StardateEra
impl RefUnwindSafe for StardateEra
impl Send for StardateEra
impl Sync for StardateEra
impl Unpin for StardateEra
impl UnsafeUnpin for StardateEra
impl UnwindSafe for StardateEra
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.