pub struct BallisticsError { /* private fields */ }Implementations§
Source§impl BallisticsError
impl BallisticsError
Sourcepub fn atmosphere_error(&self) -> Option<&AtmosphereError>
pub fn atmosphere_error(&self) -> Option<&AtmosphereError>
The atmosphere refusal behind this error, when a solve refused its air: today, air that
cannot exist aloft (crate::AtmosphereErrorReason::AirAloftBelowAbsoluteZero), which a
trajectory kernel finds only in flight. A surface that names its readings states it in its
own words with crate::AtmosphereError::refusal_in; the message is its Display.
Sourcepub fn in_terminal_words(
self,
units: UnitSystem,
temperature_label: &str,
) -> Self
pub fn in_terminal_words( self, units: UnitSystem, temperature_label: &str, ) -> Self
This error as a terminal (the native CLI, the browser terminal) states it, as it states
every refusal of its air (AtmosphericConditions::air_refusal_named): a refusal of air
that cannot exist aloft names the temperature by temperature_label (the flag, saved
profile field or CSV column it came from), in the run’s units, with the height in feet
or metres:
--temperature = -441.67 °F: the air aloft would fall below absolute zero: from this
temperature the standard lapse reaches 0 K at 5049 ft above mean sea level, which this
flight reaches (check the temperature and its unit)Any other error, and one already stated in a terminal’s words, is returned unchanged;
Self::atmosphere_error still carries the refusal.
Trait Implementations§
Source§impl Debug for BallisticsError
impl Debug for BallisticsError
Source§impl Display for BallisticsError
impl Display for BallisticsError
Source§impl Error for BallisticsError
impl Error for BallisticsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<&str> for BallisticsError
impl From<&str> for BallisticsError
Source§impl From<AtmosphereError> for BallisticsError
impl From<AtmosphereError> for BallisticsError
Source§fn from(error: AtmosphereError) -> Self
fn from(error: AtmosphereError) -> Self
Source§impl From<BallisticsError> for LeadError
impl From<BallisticsError> for LeadError
Source§fn from(e: BallisticsError) -> Self
fn from(e: BallisticsError) -> Self
Auto Trait Implementations§
impl Freeze for BallisticsError
impl RefUnwindSafe for BallisticsError
impl Send for BallisticsError
impl Sync for BallisticsError
impl Unpin for BallisticsError
impl UnsafeUnpin for BallisticsError
impl UnwindSafe for BallisticsError
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
Source§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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.