pub enum ApoapsisSetterError {
ApoapsisLessThanPeriapsis,
ApoapsisNegative,
}Expand description
An error to describe why setting the periapsis of an orbit failed.
Variants§
ApoapsisLessThanPeriapsis
§Attempt to set apoapsis to a value less than periapsis.
By definition, an orbit’s apoapsis is the highest point in the orbit,
and its periapsis is the lowest point in the orbit.
Therefore, it doesn’t make sense for the apoapsis to be lower than the periapsis.
ApoapsisNegative
§Attempt to set apoapsis to a negative value.
By definition, the apoapsis is the highest point in the orbit.
You can’t be a negative distance away from the center of mass of the parent body.
Therefore, it doesn’t make sense for the apoapsis to be lower than zero.
Trait Implementations§
Source§impl Clone for ApoapsisSetterError
impl Clone for ApoapsisSetterError
Source§fn clone(&self) -> ApoapsisSetterError
fn clone(&self) -> ApoapsisSetterError
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 ApoapsisSetterError
impl Debug for ApoapsisSetterError
Source§impl PartialEq for ApoapsisSetterError
impl PartialEq for ApoapsisSetterError
impl Copy for ApoapsisSetterError
impl Eq for ApoapsisSetterError
impl StructuralPartialEq for ApoapsisSetterError
Auto Trait Implementations§
impl Freeze for ApoapsisSetterError
impl RefUnwindSafe for ApoapsisSetterError
impl Send for ApoapsisSetterError
impl Sync for ApoapsisSetterError
impl Unpin for ApoapsisSetterError
impl UnwindSafe for ApoapsisSetterError
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