pub enum KeplerianError {
NegativeEccentricity(NegativeEccentricityError),
InvalidShape {
semi_major_axis: SemiMajorAxis,
eccentricity: Eccentricity,
},
MissingShape,
InvalidInclination(InclinationError),
InvalidLongitudeOfAscendingNode(LongitudeOfAscendingNodeError),
InvalidArgumentOfPeriapsis(ArgumentOfPeriapsisError),
Anomaly(AnomalyError),
}Expand description
Error returned when constructing a Keplerian via the builder.
Variants§
NegativeEccentricity(NegativeEccentricityError)
The eccentricity is negative.
InvalidShape
The semi-major axis sign is inconsistent with the eccentricity.
Fields
§
semi_major_axis: SemiMajorAxisThe invalid semi-major axis.
§
eccentricity: EccentricityThe eccentricity that conflicts with the semi-major axis sign.
MissingShape
No shape parameters were provided.
InvalidInclination(InclinationError)
The inclination is invalid.
InvalidLongitudeOfAscendingNode(LongitudeOfAscendingNodeError)
The longitude of ascending node is invalid.
InvalidArgumentOfPeriapsis(ArgumentOfPeriapsisError)
The argument of periapsis is invalid.
Anomaly(AnomalyError)
The anomaly conversion failed.
Trait Implementations§
Source§impl Clone for KeplerianError
impl Clone for KeplerianError
Source§fn clone(&self) -> KeplerianError
fn clone(&self) -> KeplerianError
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 KeplerianError
impl Debug for KeplerianError
Source§impl Display for KeplerianError
impl Display for KeplerianError
Source§impl Error for KeplerianError
impl Error for KeplerianError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AnomalyError> for KeplerianError
impl From<AnomalyError> for KeplerianError
Source§fn from(source: AnomalyError) -> Self
fn from(source: AnomalyError) -> Self
Converts to this type from the input type.
Source§impl From<ArgumentOfPeriapsisError> for KeplerianError
impl From<ArgumentOfPeriapsisError> for KeplerianError
Source§fn from(source: ArgumentOfPeriapsisError) -> Self
fn from(source: ArgumentOfPeriapsisError) -> Self
Converts to this type from the input type.
Source§impl From<InclinationError> for KeplerianError
impl From<InclinationError> for KeplerianError
Source§fn from(source: InclinationError) -> Self
fn from(source: InclinationError) -> Self
Converts to this type from the input type.
Source§impl From<LongitudeOfAscendingNodeError> for KeplerianError
impl From<LongitudeOfAscendingNodeError> for KeplerianError
Source§fn from(source: LongitudeOfAscendingNodeError) -> Self
fn from(source: LongitudeOfAscendingNodeError) -> Self
Converts to this type from the input type.
Source§impl From<NegativeEccentricityError> for KeplerianError
impl From<NegativeEccentricityError> for KeplerianError
Source§fn from(source: NegativeEccentricityError) -> Self
fn from(source: NegativeEccentricityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeplerianError
impl RefUnwindSafe for KeplerianError
impl Send for KeplerianError
impl Sync for KeplerianError
impl Unpin for KeplerianError
impl UnsafeUnpin for KeplerianError
impl UnwindSafe for KeplerianError
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