pub enum LambertError {
SingularTransfer,
NoSolution,
ConvergenceFailed,
InvalidInput(&'static str),
}Expand description
Errors returned by lambert.
Variants§
SingularTransfer
Transfer angle is exactly 180° — transfer plane undefined.
NoSolution
No solution exists for the given revolution count and time of flight (TOF is below the minimum time for the requested revolution count).
ConvergenceFailed
Householder iteration failed to converge within the iteration limit.
InvalidInput(&'static str)
One or more inputs are invalid (zero radius, non-positive TOF, etc.).
Trait Implementations§
Source§impl Clone for LambertError
impl Clone for LambertError
Source§fn clone(&self) -> LambertError
fn clone(&self) -> LambertError
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 LambertError
impl Debug for LambertError
Source§impl Display for LambertError
impl Display for LambertError
Source§impl Error for LambertError
impl Error for LambertError
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 LambertError
impl PartialEq for LambertError
impl StructuralPartialEq for LambertError
Auto Trait Implementations§
impl Freeze for LambertError
impl RefUnwindSafe for LambertError
impl Send for LambertError
impl Sync for LambertError
impl Unpin for LambertError
impl UnsafeUnpin for LambertError
impl UnwindSafe for LambertError
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