#[non_exhaustive]pub enum CelestialBodyClass {
Luminary,
MajorPlanet,
LunarPoint,
BuiltInAsteroid,
Fictitious,
Custom,
}Expand description
A coarse classification for a celestial body.
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.
Luminary
The Sun or Moon.
MajorPlanet
Mercury through Pluto.
LunarPoint
Lunar nodes and apsides.
BuiltInAsteroid
Ceres, Pallas, Juno, and Vesta.
Fictitious
A hypothetical/fictitious body defined by osculating orbital elements (Uranian planets, Transpluto, Vulcan, historical pre-discovery predictions).
Custom
A structured custom body identifier.
Implementations§
Trait Implementations§
Source§impl Clone for CelestialBodyClass
impl Clone for CelestialBodyClass
impl Copy for CelestialBodyClass
Source§impl Debug for CelestialBodyClass
impl Debug for CelestialBodyClass
Source§impl<'de> Deserialize<'de> for CelestialBodyClass
impl<'de> Deserialize<'de> for CelestialBodyClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CelestialBodyClass
impl Display for CelestialBodyClass
impl Eq for CelestialBodyClass
Source§impl Hash for CelestialBodyClass
impl Hash for CelestialBodyClass
Source§impl PartialEq for CelestialBodyClass
impl PartialEq for CelestialBodyClass
Source§impl Serialize for CelestialBodyClass
impl Serialize for CelestialBodyClass
impl StructuralPartialEq for CelestialBodyClass
Auto Trait Implementations§
impl Freeze for CelestialBodyClass
impl RefUnwindSafe for CelestialBodyClass
impl Send for CelestialBodyClass
impl Sync for CelestialBodyClass
impl Unpin for CelestialBodyClass
impl UnsafeUnpin for CelestialBodyClass
impl UnwindSafe for CelestialBodyClass
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