pub enum AstroError {
InvalidElements(String),
DegenerateGeometry(String),
}Expand description
Errors produced by the astrodynamics primitives.
Variants§
InvalidElements(String)
An input failed a physical/mathematical invariant (e.g. a ≤ 0,
e ∉ [0, 1), non-finite angle, or μ ≤ 0).
DegenerateGeometry(String)
The input geometry was degenerate and could not be transformed (e.g. zero position magnitude, zero angular momentum, or a non-elliptical orbit).
Trait Implementations§
Source§impl Clone for AstroError
impl Clone for AstroError
Source§fn clone(&self) -> AstroError
fn clone(&self) -> AstroError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AstroError
impl Debug for AstroError
Source§impl Display for AstroError
impl Display for AstroError
Source§impl Error for AstroError
impl Error for AstroError
1.30.0 · 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 PartialEq for AstroError
impl PartialEq for AstroError
impl StructuralPartialEq for AstroError
Auto Trait Implementations§
impl Freeze for AstroError
impl RefUnwindSafe for AstroError
impl Send for AstroError
impl Sync for AstroError
impl Unpin for AstroError
impl UnsafeUnpin for AstroError
impl UnwindSafe for AstroError
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