pub enum CelestialBodyClass {
TerrestrialPlanet,
GasGiant,
IceGiant,
DwarfPlanet,
NaturalSatellite,
MinorBodyIrregular,
Star,
CompactRelativistic,
BlackHole,
Megastructure,
FictionalWorld,
}Expand description
Celestial body classification (OCS §2.1).
Variants§
TerrestrialPlanet
GasGiant
IceGiant
DwarfPlanet
NaturalSatellite
MinorBodyIrregular
Star
CompactRelativistic
BlackHole
Megastructure
FictionalWorld
Implementations§
Source§impl CelestialBodyClass
impl CelestialBodyClass
Sourcepub fn has_solid_surface(&self) -> bool
pub fn has_solid_surface(&self) -> bool
Whether this body type has a solid surface.
Sourcepub fn is_relativistic(&self) -> bool
pub fn is_relativistic(&self) -> bool
Whether this body type requires relativistic metric handling.
Trait Implementations§
Source§impl Clone for CelestialBodyClass
impl Clone for CelestialBodyClass
impl Copy for CelestialBodyClass
Source§impl Debug for CelestialBodyClass
impl Debug for CelestialBodyClass
impl Eq for CelestialBodyClass
Source§impl Hash for CelestialBodyClass
impl Hash for CelestialBodyClass
Source§impl PartialEq for CelestialBodyClass
impl PartialEq 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
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.