Enum nyx_space::io::EpochFormat
source · pub enum EpochFormat {
GregorianUtc,
GregorianTai,
MjdTai,
MjdTt,
MjdUtc,
JdeEt,
JdeTai,
JdeTt,
JdeUtc,
TaiSecs(f64),
TaiDays(f64),
}
Expand description
Specifies the format of the Epoch during serialization
Variants§
GregorianUtc
Default is GregorianUtc, as defined in hifitime.
GregorianTai
MjdTai
MjdTt
MjdUtc
JdeEt
JdeTai
JdeTt
JdeUtc
TaiSecs(f64)
Seconds past a provided TAI Epoch
TaiDays(f64)
Days past a provided TAI Epoch
Implementations§
Trait Implementations§
source§impl Clone for EpochFormat
impl Clone for EpochFormat
source§fn clone(&self) -> EpochFormat
fn clone(&self) -> EpochFormat
Returns a copy 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 EpochFormat
impl Debug for EpochFormat
source§impl Display for EpochFormat
impl Display for EpochFormat
source§impl FromStr for EpochFormat
impl FromStr for EpochFormat
source§impl PartialEq<EpochFormat> for EpochFormat
impl PartialEq<EpochFormat> for EpochFormat
source§fn eq(&self, other: &EpochFormat) -> bool
fn eq(&self, other: &EpochFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EpochFormat
impl StructuralPartialEq for EpochFormat
Auto Trait Implementations§
impl RefUnwindSafe for EpochFormat
impl Send for EpochFormat
impl Sync for EpochFormat
impl Unpin for EpochFormat
impl UnwindSafe for EpochFormat
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Printing<T> for Twhere
T: Display,
impl<T> Printing<T> for Twhere T: Display,
§fn to_str(self) -> String
fn to_str(self) -> String
Method to serialize.
Decorates Vecs with square brackets and tuples with round ones.
Implementation code is in
printing.rs
. §fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize in minimal form (space separated, no brackets)
Implementation code is in
printing.rs
.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.