pub enum SolarSystem {
Mercury = 0,
Venus = 1,
EMB = 2,
Mars = 3,
Jupiter = 4,
Saturn = 5,
Uranus = 6,
Neptune = 7,
Pluto = 8,
Moon = 9,
Sun = 10,
}Expand description
Solar system bodies
Coordinate origin is the solar system barycenter
§Notes:
- For native JPL Ephemerides function calls: positions for all bodies are natively relative to solar system barycenter, with exception of moon, which is computed in Geocentric system
- EMB (2) is the Earth-Moon barycenter
- The sun position is relative to the solar system barycenter (it will be close to origin)
Variants§
Mercury = 0
Mercury
Venus = 1
Venus
EMB = 2
Earth-Moon Barycenter
Mars = 3
Mars
Jupiter = 4
Jupiter
Saturn = 5
Saturn
Uranus = 6
Uranus
Neptune = 7
Neptune
Pluto = 8
Pluto
Moon = 9
Moon (Geocentric)
Sun = 10
Sun
Trait Implementations§
Source§impl Clone for SolarSystem
impl Clone for SolarSystem
Source§fn clone(&self) -> SolarSystem
fn clone(&self) -> SolarSystem
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 SolarSystem
impl Debug for SolarSystem
Source§impl Display for SolarSystem
impl Display for SolarSystem
Source§impl PartialEq for SolarSystem
impl PartialEq for SolarSystem
Source§impl TryFrom<i32> for SolarSystem
impl TryFrom<i32> for SolarSystem
impl Copy for SolarSystem
impl Eq for SolarSystem
impl StructuralPartialEq for SolarSystem
Auto Trait Implementations§
impl Freeze for SolarSystem
impl RefUnwindSafe for SolarSystem
impl Send for SolarSystem
impl Sync for SolarSystem
impl Unpin for SolarSystem
impl UnsafeUnpin for SolarSystem
impl UnwindSafe for SolarSystem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.